* V Vasant <[EMAIL PROTECTED]> writes:

>       Can someone please tell me how does one automate tasks using the
> crontab . I did write a cron file , but I don't seem to get any
> output.Why?

> The file was just this

> 01 * * * * vasant echo "hi"

It might have worked, although I don't know what you mean by 'vascant'
in the cron line.  You didn't see any output because you didn't tell
it where to send the output.

Try this...

0-59/2 * * * * echo "Mr Crontab wrote this at `date`" >> ~/cron.out

This will echo that line along with the output of the date command to
a file called 'cron.out' in you home directory every two minutes.

To see that it is working...

touch ~/cron.out 
tail -f ~/cron.out 

For some good examples look at man crontab



===========================
Want to really learn Linux?
   ... Install Slackware
===========================

-- 
|---<Regards, Steve Youngs>-----------[GnuPG KeyID: EFD82ED2]---|
|                    Genius is the ability to                   |
|              reduce the complicated to the simple             |
|-----------------------------<mailto:[EMAIL PROTECTED]>---|

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to