![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I want to know how we can give alias entry in cron | naree | SUN Solaris | 1 | 03-12-2008 05:46 AM |
| meaning of columns in the result of executing 'ls -l' | cy163 | UNIX for Dummies Questions & Answers | 5 | 09-22-2007 11:16 AM |
| executing a cron | ragha81 | Shell Programming and Scripting | 8 | 03-30-2007 01:00 PM |
| executing shell script from the cron | abNORMal | HP-UX | 2 | 06-15-2006 11:54 AM |
| why doesnt my script work!!! | Heedunk | Shell Programming and Scripting | 7 | 03-01-2004 01:03 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
executing script by cron doesnt give me expected result
Hi frnds...
I m facing very irritating problem already waisted my 2 days.. I have a following script..( i am pasting only the main code) ftp -ivn 213.194.40.77 <<FTP user $user $password binary cd $FileDir/out lcd $localpath get $file rename $FileDir/out/$file $FileDir/tmp/$file bye FTP if [ -f "$localpath/$file" ] then gzip -dcf $localpath/$file > $localpath/$TELEXISTable.dat else ErrorMessage="E2E - uploaded $TELEXISTable file $file is empty" echo "$ToolName : $ErrorMessage" fi now the problem is.. when i execute this manually i got the expected .dat file .. but when its executed by cron I got the .dat file of zero KB. pl tell me what cud be the reason.... pl help anchal |
| Forum Sponsor | ||
|
|