|
|
|
|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
FTP question
HI
In my script its like this ------------ echo "Enter filename" read fname ftp -v -n abcd.efh.kk.com << EOF user userid pwd bin mget $fname.tar--not working if i give "$fname", works only as "demo.tar" bye ------------ My target is to get a $fname.tar from a remote host.How ever ftp is not recognizing that unless i give the exact filename itself.Is there any work around to get that file from that remote host. Appreciate your help. |
| Sponsored Links |
|
|
|
|||
|
BubbaJoe--Thanks
Scott--Valid point...Yes it has EOF at the end.. echo "Enter filename" read fname ftp -v -n abcd.efh.kk.com << EOF user userid pwd bin mget $fname.tar--not working if i give "$fname", works only as "demo.tar" bye EOF |
|
||||
|
!!
I know it does (that's why it was a silly question), otherwise it wouldn't work at all! As for the { } around the variable, it's interesting that that should make a difference, because in "normal shell", it would not be nessessary. |
| Sponsored Links |
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|