![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem with shell script execution | anju | Shell Programming and Scripting | 2 | 05-08-2008 01:50 AM |
| Sequential execution in shell script? | chengwei | UNIX for Dummies Questions & Answers | 6 | 03-30-2007 12:10 AM |
| Scheduling the execution of a shell script | sumesh.abraham | Shell Programming and Scripting | 1 | 12-06-2006 07:25 AM |
| Logging OWB mapping execution in Shell script | npn | Shell Programming and Scripting | 1 | 11-16-2006 09:25 AM |
| execution of shell script | malaymaru | Shell Programming and Scripting | 5 | 06-13-2005 09:49 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Cron execution of shell script
Hi Guys,
Unable to run this script from the cron,although the same executes perfectly from the command line.Please help. #!/bin/sh #### aprintd alarm creation files ##### file=`date +%m%d%Y` pid=$$ echo "$pid" /u01/app/netboss/bin/aprintd/aprintd > $file & childpid=$! echo "$childpid" while . do time=`date +%H%M%S` if [ $time -eq 050000 ] then kill $childpid echo "if loop" kill $pid fi done |
|
||||
|
Hi there...
Normally when you can't execute a script in cron and manually ok the problem is the envroment variables.... Try to insert in the script: export PATH=......... or if .profile has the correct PATH execute it in the script. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|