ep0507 :: Cron with Ken Fallon

Hosted by finux on 2010-01-28
Filed under Episode | Comments (0)

LINKS
==============================================
https://help.ubuntu.com/community/CronHowto
http://unixhelp.ed.ac.uk.CGI/man-cgi?crontab+5
http://unixgeeks.org/security/newbie/unix/cron-1.html
http://en.wikipedia.org/wiki/Cron
http://ratholeradio.org/

SCRIPT
==============================================
username@computer:~$ vi /home/username/bin/hello.bash

username@computer:~$ cat /home/username/bin/hello.bash
#!/bin/bash
echo "hello world"

username@computer:~$ /home/username/bin/hello.bash
bash: /home/username/bin/hello.bash: Permission denied

username@computer:~$ chmod +x /home/username/bin/hello.bash

username@computer:~$ /home/username/bin/hello.bash
hello world

username@computer:~$ export |grep EDITOR
declare -x EDITOR="vim"

username@computer:~$ crontab -l
no crontab for username

username@computer:~$ crontab -e
no crontab for username - using an empty one
No modification made

username@computer:~$ crontab -e
no crontab for username - using an empty one
crontab: installing new crontab

username@computer:~$ crontab -l
# m h  dom mon dow   command
* * * * * /home/username/bin/hello.bash > /home/username/hello.output 2>&1

username@computer:~$ cat /home/username/hello.output
hello world


Comment Script

Post this page to: del.icio.us Yahoo! MyWeb Digg reddit Furl Blinklist Spurl

Name
E-mail (Will not appear online)
Website
Title
Comment
To prevent automated Bots form spamming, please enter the text you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.



Powered by Comment Script











linkboxes

Affiliates:


Hosting for HPR is provided by...








l