The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cron not working manna UNIX for Dummies Questions & Answers 1 01-10-2008 02:04 PM
Cron job not working dkranes UNIX for Dummies Questions & Answers 5 10-26-2007 11:01 AM
cron not working DaleCabell UNIX for Dummies Questions & Answers 1 07-28-2006 07:16 PM
Cron job not working janavenki Shell Programming and Scripting 7 03-10-2004 12:36 PM
CRON - How to tell it's working? jaffy1229 UNIX for Dummies Questions & Answers 7 04-15-2002 12:09 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-06-2007
christo16 christo16 is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 7
Cron not working?

Hello I have a mac os x server machine that I have setup a cron to run a php file using wget and cron doesn't seem to work. I have setup cron on other mac's before and they have all worked. Also I know wget works because I have tested it. Is there anything else I should try?
I do crontab -e and enter this:
"10 1 * * * /usr/bin/wget -q localhost/cron.php"
and I get
crontab: installing new crontab
chris:~ localhost$
So it seems to have been installed correctly. Any ideas?
  #2 (permalink)  
Old 03-08-2007
grumpf grumpf is offline
Registered User
  
 

Join Date: May 2006
Posts: 101
to make sure that your cron is running correcly you can try:
* * * * /bin/date >>/tmp/cron.out

but are you sure about these wget ? on unix/linux wget need an URL and -q simply means quiet.
  #3 (permalink)  
Old 03-09-2007
christo16 christo16 is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 7
Alrighty when I do "* * * * * /bin/date >>/tmp/cron.out" it doesn't output anything. So it appears as though my cron is not working.... is it possible for it to be turned off?
  #4 (permalink)  
Old 03-09-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
cron could be dead. Or it could be hung up somehow. I don't know Macs, but on many versions of unix "ps -ef | grep cron" would tell you if it is running or not.
  #5 (permalink)  
Old 03-09-2007
christo16 christo16 is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 7
Actually scratch that, it is outputting the date. I did see the file cron.out when I did a ls, so I thought it wasn't there but after doing a cat cron.out, it was there. Any ideas?
  #6 (permalink)  
Old 03-09-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
"10 1 * * * /usr/bin/wget -q localhost/cron.php >/tmp/wget.log 2>&1"
and look at wget.log to see if there are any clues.
Sponsored Links
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0