![]() |
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 |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| 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 09:46 AM |
| meaning of columns in the result of executing 'ls -l' | cy163 | UNIX for Dummies Questions & Answers | 5 | 09-22-2007 02:16 PM |
| executing a cron | ragha81 | Shell Programming and Scripting | 8 | 03-30-2007 04:00 PM |
| executing shell script from the cron | abNORMal | HP-UX | 2 | 06-15-2006 02:54 PM |
| why doesnt my script work!!! | Heedunk | Shell Programming and Scripting | 7 | 03-01-2004 05:03 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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 |