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.