Sponsored Content
Full Discussion: cron does not appear to run
Top Forums UNIX for Dummies Questions & Answers cron does not appear to run Post 302220306 by atomicbits on Thursday 31st of July 2008 11:11:38 AM
Old 07-31-2008
matrixmadhan - I set the cron as:
Code:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/bin/php /var/apache2/htdocs/test/test.php >> /usr/local/test/log 2>&1

After the cron should run there is no file, I tried touching file first, then after cron should run file is empty. User test home directory = /usr/local/test. I looked in /var/cron/log and saw other crons output from when they ran, but nothing from test.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

cron fail to run

Hi, Does anyone know why the cron job fail to run automatically ? We have the problem with some Solaris 2.5.1 Machine ! The cron seemd to fail to submit the jobs defined at the defined time !! Why ? Sometime it runs OK,but sometime it fail . We are very sure the problem is due to... (6 Replies)
Discussion started by: kerwin_hsu
6 Replies

2. Shell Programming and Scripting

Why does cron run this differently?

test.ksh =================== #!/usr/bin/ksh APPLICATION=hr_app APPLICATION_UPPER=`echo $APPLICATION | tr ` echo $APPLICATION_UPPER > /tmp/test.txt echo $APPLICATION >> /tmp/test.txt which tr >> /tmp/test.txt =================== When I run this from the shell: /home/natter> more... (6 Replies)
Discussion started by: natter
6 Replies

3. UNIX for Dummies Questions & Answers

Where does cron run from?

I have a script in the same directory as some files and directories im trying to tar up and I have it run in cron. Well it runs but says it can't find the directories, you need to be in the directory where the script is for it to work. Here is my cron and script its crappy but it does the trick =).... (3 Replies)
Discussion started by: kingdbag
3 Replies

4. Linux

cron jobs not run

hi, I am newbie, I had set cron jobs to update something on one time very day, I had tested the script, it run fine, but the cron jobs seem never run. some help? Thanks. (4 Replies)
Discussion started by: robertsnoog
4 Replies

5. Shell Programming and Scripting

Does not run via cron job

I have a perl script, when I ran manually it works perfect. I check the permissions which are fine. How can I find out why it is not running? how can I setup a log to check. I am running it on solaris 9. It compares multiple files, SCP and then send out an e-mail. As I said when I ran it... (2 Replies)
Discussion started by: amir07
2 Replies

6. Shell Programming and Scripting

which one is better Run by Cron or Shell

Dear Experts, I have a script defined in Cron which runs every 1 minute. * * * * * /export/home/myscript.sh >/dev/null 2>&1 Now the issue is executing that myscript.sh sometime will take 2/3 or more minutes to finish execution. But after 1 minute cron will invoke another... (4 Replies)
Discussion started by: thepurple
4 Replies

7. UNIX for Dummies Questions & Answers

Need to run a command from cron

How can I run the following command from cron? tar -cvf /email_backup/email_bu_062110.tar /prod/email (2 Replies)
Discussion started by: nim73
2 Replies

8. Shell Programming and Scripting

Run cron on every second Saturday ??

Hi, Can anyone help in editing CRON (OR) write a script to run another script every second saturday?? I tried to make use of DATE command to find the day but couldnt proceed further. your help is highly appreciated! Thanks, Mahi (11 Replies)
Discussion started by: mahi_mayu069
11 Replies

9. Shell Programming and Scripting

Who -u gives different output if run from cron than if run from terminal?

If I run 'who -u' interactively or from a script invoked through bash in a tty on my Ubuntu 12LTS box I get an output like this: testuser pts/0 Dec 9 02:32 . 2163 (host.xx.yy) running the same through cron I get: testuser pts/0 2012-12-09 02:32 00:05 2163... (2 Replies)
Discussion started by: latimer
2 Replies

10. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies
MAKEWHATIS.LOCAL(8)					    BSD System Manager's Manual 				       MAKEWHATIS.LOCAL(8)

NAME
makewhatis.local, catman.local -- start makewhatis or catman for local file systems SYNOPSIS
/usr/libexec/makewhatis.local [options] directories ... /usr/libexec/catman.local [options] directories ... DESCRIPTION
The makewhatis.local utility starts makewhatis(1) only for file systems physically mounted on the system where the makewhatis.local is being executed. Running makewhatis by periodic weekly for rw nfs-mounted /usr may kill your NFS server -- all NFS clients start makewhatis at the same time! So use this wrapper for cron(8) instead of calling makewhatis directly. The catman.local utility is using for same purposes as makewhatis.local but for catman(1). FILES
/etc/periodic/weekly/320.whatis run makewhatis.local every week /etc/periodic/weekly/330.catman run catman.local every week SEE ALSO
catman(1), find(1), makewhatis(1), cron(8), periodic(8) HISTORY
The makewhatis.local utility appeared in FreeBSD 2.2. BSD
April 26, 1996 BSD
All times are GMT -4. The time now is 09:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy