Jump to content


Photo

HPR - Ep0507: Cron


  • Please log in to reply
No replies to this topic

#1 BINREV SPYD3R

BINREV SPYD3R

    Live to Hack...Hack to Live.

  • Members
  • 2,443 posts

Posted 27 January 2010 - 07:00 PM

LINKS==============================================https://help.ubuntu.com/community/CronHowtohttp://unixhelp.ed.ac.uk.CGI/man-cgi?crontab+5http://unixgeeks.org/security/newbie/unix/cron-1.htmlhttp://en.wikipedia.org/wiki/Cronhttp://ratholeradio.org/SCRIPT==============================================username@computer:~$ vi /home/username/bin/hello.bashusername@computer:~$ cat /home/username/bin/hello.bash#!/bin/bashecho "hello world"username@computer:~$ /home/username/bin/hello.bashbash: /home/username/bin/hello.bash: Permission deniedusername@computer:~$ chmod +x /home/username/bin/hello.bashusername@computer:~$ /home/username/bin/hello.bashhello worldusername@computer:~$ export |grep EDITORdeclare -x EDITOR="vim"username@computer:~$ crontab -lno crontab for usernameusername@computer:~$ crontab -eno crontab for username - using an empty oneNo modification madeusername@computer:~$ crontab -eno crontab for username - using an empty onecrontab: installing new crontabusername@computer:~$ crontab -l# m h dom mon dow command* * * * * /home/username/bin/hello.bash > /home/username/hello.output 2>&1username@computer:~$ cat /home/username/hello.outputhello world

Go to this episode




BinRev is hosted by the great people at Lunarpages!