LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-14-2013, 01:04 AM   #1
dsotm
Member
 
Registered: Mar 2012
Distribution: Slackware64-current
Posts: 89

Rep: Reputation: 2
Can anyone help me getting this cron to run?


Code:
1,16,31,46 * * * * jinkle /home/jinkle/Projects/IP-Checker/ip-checker.py 1> /dev/null
I just want it to run every 15 minutes but can't figure out why it's not running
 
Old 05-14-2013, 01:11 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
How are you checking that it's running or not? You are discarding the std output, so instead send output to some other file, as:
Code:
1,16,31,46 * * * * jinkle /home/jinkle/Projects/IP-Checker/ip-checker.py 1> /path/to/output.txt
Also which distro you're using? You can also make an entry like:
Code:
*/15 * * * * jinkle /home/jinkle/Projects/IP-Checker/ip-checker.py 1> /path/to/output.txt
 
Old 05-14-2013, 01:13 AM   #3
dsotm
Member
 
Registered: Mar 2012
Distribution: Slackware64-current
Posts: 89

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by shivaa View Post
How are you checking that it's running or not? You are discarding the std output, so instead send output to some other file, as:
Code:
1,16,31,46 * * * * jinkle /home/jinkle/Projects/IP-Checker/ip-checker.py 1> /path/to/output.txt
Also which distro you're using? You can also make an entry like:
Code:
*/15 * * * * jinkle /home/jinkle/Projects/IP-Checker/ip-checker.py 1> /path/to/output.txt
Slackware,

The script doesn't return any value, rather sends an email when my public IP has changed, would the /path/to/output.txt still provide any inside?
 
Old 05-14-2013, 01:17 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,353
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
Isn't that what /var/log/cron and equivalent are for?
 
Old 05-14-2013, 01:43 AM   #5
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,203

Rep: Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675
noip.com has a ddns service, you can have a stable hostname which will follow your ip address. You can also download and setup their dynamic update client.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Cron run fails at random points, throws: Attempting to re-run cron while.... Nighteyes Linux - Newbie 2 06-22-2012 05:08 AM
script run fine from ./ but when put in cron does not run j-me Linux - Server 6 06-16-2012 10:02 AM
Debian daily cron job won't run, but does run in cron.hourly. sandersch Linux - General 7 05-24-2012 01:50 AM
[SOLVED] Partial list with ls-l in bash script run in cron but full list run from command line redgshost Linux - General 29 01-16-2011 12:14 PM
nothing seems to run from cron cbannister Linux - Newbie 8 04-08-2008 02:09 PM


All times are GMT -5. The time now is 03:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration