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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 07-04-2009
scottn scottn is offline Forum Advisor  
VIP Member
  
 

Join Date: Jun 2009
Location: Zürich, CH
Posts: 1,042
Quote:
Ok. For a cron job the required profile must be set so that the script executes.
Now how do we tell cron that it has to execute the script with this profile
Is not true.

Not loading the .profile does not "stop" a cronjob from executing. It may be that without it the job will not work, but that's not the same thing.

If your script produces output it will (normally) go to your mailbox if it's set up. Check your mail to see if there are any errors.

A common cause (apart from the daemon not running) of cronjobs not running is that too many jobs are running and new jobs are queued up and the daemon can't start them
Code:
/var/log/cron
or
/var/adm/log/cron
or
somewhere else depending on your OS
should report if this is the case.