Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


hpr0507 :: Cron with Ken Fallon

Ken Fallon discusses cron and crontab

<< First, < Previous, , Latest >>

Thumbnail of finux
Hosted by finux on Thursday, 2010-01-28 is flagged as Explicit and is released under a CC-BY-NC-SA license.
cron, cron history, crontab. (Be the first).
The show is available on the Internet Archive at: https://archive.org/details/hpr0507

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:21:50

general.

LINKS
==============================================
https://help.ubuntu.com/community/CronHowto
https://unixhelp.ed.ac.uk.CGI/man-cgi?crontab+5
https://unixgeeks.org/security/newbie/unix/cron-1.html
https://en.wikipedia.org/wiki/Cron
https://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

Comments

Subscribe to the comments RSS feed.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?
Are you a spammer?
Who is the host of this show?
What does HPR mean to you?