Code:
# which svc
/usr/local/bin/svc
# cat > /etc/cron.d/restart-imap
3 0-23/2 * * *{TAB}/usr/local/bin/svc -t /service/imap*
^D
ok i want to turn that into a cron job, but i have not the fogiest clue when it comes to coding or even were or how to save something like this.
*note* when it states {TAB} that is to hit the tab key
i got this off a site that should help me resolve one of the hickups my whitebox q-mail server is having with IMAP.
A. what path do i save the file in once it is created?
B. what extention and file name format do i give it so cron knows what to do.
yes i read man cron, but it confused the daylights out of me. from what little i could gather it gets its info from /etc/init.d, but that is just a list of services, nothing i can edit to add the above code.
help...
thanks.