Re: Cron and Anacron for newbies (noffle also)
On Sun, Nov 28, 2004 at 01:45:51PM -0500, Scotty Fitzgerald wrote:
> Well, I hope no news is good news, because I might have a problem elsways.
>
> I have my mail forwarded to a user account, which I check with kmail.
> Since I am receiving no daily reports, does this mean that none of my daily
> jobs are running?
Instead of cron you can use `at' for one time tasks. You can test your
basic setup using that. If at does't work, cron quite probably does't
work either. Make a shell script and make it executable, e.g.:
$ echo "#! /bin/sh
> echo Hello world" > tmp.sh
$ chmod +x tmp.sh
Then tell `at' to run the commands in that shell script now:
$ at -f tmp.sh now
warning: commands will be executed using /bin/sh
job 91 at 2004-11-28 23:53
You should now get a mail saying "Hello World".
Instead of `now' you can specify a time like 0:30.
HTH,
--
Maurits van Rees | http://maurits.vanrees.org/ [Dutch/Nederlands]
"Let your advance worrying become advance thinking and planning."
- Winston Churchill
Reply to: