![]() |
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 |
| crontab entry | Sowser | UNIX for Advanced & Expert Users | 4 | 01-08-2007 05:34 PM |
| remove an entry in crontab | melanie_pfefer | SUN Solaris | 1 | 12-18-2006 05:45 AM |
| amending crontab entry | hcclnoodles | Shell Programming and Scripting | 1 | 10-26-2006 08:32 AM |
| Crontab entry | bestbuyernc | Shell Programming and Scripting | 1 | 09-12-2005 04:13 PM |
| crontab entry | matrixmadhan | UNIX for Dummies Questions & Answers | 3 | 06-07-2005 09:57 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi Everyone , have a nice day
given below is the line i have added in crontab * * * * * /Rauf/script2.sh intended to run this script after every minute , when i run this script manually it runs fine and produces output , but after adding it to crontab ( like given above ) , it doesnt work can anyone help attributes of this script are -rwxr-xr-x 1 root other 162 Feb 8 19:51 script2.sh* Regards and Waiting |
|
||||
|
We might have some ideas if you show us the script.
But some options are: - You say the script produces output, where is this output send? To a file or to the screen? If it is the screen the script will not work because there is no tty attached to t. - A cron job runs by default with a very limited PATH environment variable. So if you don't define PATH inisde your script correctly, or use all commands with their full pah name, it could be that 1 or more commands cannot be located and therefore result in an error, which cause your script to terminate. |
|
||||
|
#!/bin/sh
sleep 10 echo > /opt/scripts/air01axml.txt echo >> /opt/scripts/air01axml.txt rsh air01a tail -1 /var/opt/fds/statistics/FSC-AirXmlRpc_2.0_A_1-`date +%Y-%m-%d`-0000.stat >> /opt/scripts/air01axml.txt This is the script .. ![]() |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|