Sign in to follow this  
Followers 0
BINREV SPYD3R

HPR - Ep0507: Cron

1 post in this topic

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

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0