![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cronjob inside the script | namishtiwari | Shell Programming and Scripting | 3 | 02-04-2008 04:35 AM |
| Nested loop not running using cronjob | bihani4u | Shell Programming and Scripting | 9 | 09-26-2007 08:19 AM |
| help help cronjob problem with script | bucci | Shell Programming and Scripting | 4 | 02-10-2007 12:38 AM |
| Shell script not running thru Cronjob | gauravshrinivas | Shell Programming and Scripting | 8 | 11-03-2006 06:17 AM |
| Environment variables causing cronjob to fail | new2ss | Shell Programming and Scripting | 2 | 05-31-2006 08:58 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
| Forum Sponsor | ||
|
|
|
||||
|
actually the file and the o/p is like this
$ cat crt-offline-chkpnt.sh P4_COUNTER=`p4 -u cm -P cmpswd counters | grep journal | awk '{print $3}'` echo "$P4_COUNTER" >aa.log $ ./crt-offline-chkpnt.sh $ cat aa.log 1157 No output when I have it in cronjob :-( Last edited by csaha; 02-20-2006 at 02:21 AM. |
|
||||
|
SORRY for the typo error in my previous post.
Yes I saw aa.log, its coming blank when its running by cronjob This is cron settings When running the script in cron-job ================================== user@server:~$ crontab -l 00 22 * * * $HOME/crt-offline-chkpnt.sh |
|
|||
|
you may want to consider using explicit paths instead of paths with variables in them. quite honestly, i've never seen variables used in a cron table before.
if anything, you may want to check to see if: 1. your script is running at all (check your local mailbox for cron errors( and 2. put in the full path to your 'p4' command. |