The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

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 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

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-12-2007
Registered User
 

Join Date: Jun 2007
Location: Mumbai,India
Posts: 96
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
  #2 (permalink)  
Old 09-12-2007
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 2,999
pls don't start multiple threads on the same subject - thread closed!

Last edited by vgersh99; 09-12-2007 at 05:20 AM.
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0