![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Telnet is not working properly | deepak_pathania | UNIX for Dummies Questions & Answers | 1 | 10-05-2007 02:59 PM |
| Rlogin not working properly from Linux | frankkahle | UNIX for Advanced & Expert Users | 1 | 10-19-2006 07:02 PM |
| Cron won't run properly | Steeler_fan | UNIX for Dummies Questions & Answers | 2 | 08-31-2006 06:32 AM |
| y is this not working properly? | C|[anti-trust] | High Level Programming | 3 | 05-18-2005 09:55 AM |
| Keyboard not working properly... | timresh | UNIX for Dummies Questions & Answers | 2 | 02-25-2005 04:28 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#15
|
|||
|
|||
|
Why to put $ ???
More over hope u remember the point "script works fine when executed manually" .... My script is just as follows: #!/usr/bin/sh ZIPFILE_PATH=/... MYLOCATION=/... cd MYLOCATION unzip $ZIPFILE FILECOUNT=`ls -l | wc -l` if [ $FILECOUNT -eq 7 ] then do some process else send an error mail So for me, when i schedule the above script in CROn, always i do get the error mail. If i run it manually then "do some process" is happening. what can be done ??? |
| Forum Sponsor | ||
|
|
|
#16
|
||||
|
||||
|
Shouldn't the unzip command read:
unzip $ZIPFILE_PATH # here I am assuming that the ZIPFILE_PATH holds the entire path, including the filename. I don't see you setting $ZIPFILE anywhere in the script. |
|
#17
|
||||
|
||||
|
Quote:
|
|
#18
|
|||
|
|||
|
hi blowtorch,
its was a samll mistake while typing here... its not $ZIPFILE .. it should be unzip $ZIPFILE_PATH |
|
#19
|
|||
|
|||
|
hi andryk,
loading my .profile means ... i dont get you .. just executing that file or not clear .. but one thing . simple jobs scheduled in cron is working fine .. I want to add one more point here .. when i gave : $whereis unzip , its showing unzip : So i think its not able to find the location of the unzip command.. Could this be the reason why cron is not able to execute the unzip command ?? |
|
#20
|
||||
|
||||
|
Quote:
Quote:
Good luck. |
|
#21
|
|||
|
|||
|
Hi andryk,
Great .. thanks a lot .. its working ... But i want to know the reason behind this ... what is the necessity to run the .profile file ?? Kindly give me an explanation .. Thank u so much once again .. |
|||
| Google The UNIX and Linux Forums |