Help!

got error in ftp shell programming in linux

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Linux Fanatics RSS
Next:  the application has crashed. the application will..  
Author Message




User: inactive
Posts:



PostPosted: Sat Jul 22, 2006 10:43 am    Post subject: got error in ftp shell programming in linux

Hi,
i am completely new with linux ,
i have written one script which will transefer a file to linux machine to windows machine ,

this is my script:
echo "$# input perameter"
input=$1
echo "$input list input "
cd /mnt/store
ftp ftp://anonymous:apalaya@myhostname/<<"EOF"
put $name
quit
eof
exit 0



output:
linux:/mnt/store # sh ftp.sh link.txt
1 input perameter
link.txt list input
Connected to myhost name
220 Microsoft FTP Service
331 Anonymous access allowed, send identity (e-mail name) as password.
230 Anonymous user logged in.
Remote system type is Windows_NT.
200 Type set to I.
local: $name remote: $name
ftp: local: $name: No such file or directory
221
linux:/mnt/store #


if i give file name of file instead of variabl than it work ,i can't abel to figure out what is problem?

thanks in advance.
Samir.
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Linux Fanatics All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum