I recently had a Linux exam

 

One of the questions was

 

Make a cron job print the message “hello” to stdout at 4:15 am every day.

 

So I added this line to /etc/crontab

 

15 04 * * * root /bin/echo “hello”

 

 

Is this the right answer?

 

The reason why I ask is because I think of stdout as being the screen

 

If I put

 

01 * * * * root /bin/echo “hello”

 

into /etc/crontab I don’t see the work hello on the screen every minute.

 

 

Why?

 

Am I missing something?

 

 

Regards

 

Stuart Clark

 

 

 

 

Reply via email to