![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
ftp question???
Hi
Look at the below: ftp -i novellftp user $LOGIN pass $PASSWORD bin cd //stecnv16/data/shared/public2/gui/webhelp mget help.zip bye unzip help.zip rm help.zip mv help WebHelp exit;; know i want to write the above commands in script. but when my first command execute it is asking LOGIN and Passowrd, it was not taking though i have defined in variables, can someone look at tell me waht was the wrong i am doing... when i execute the above i get the below Connected to stecnv08.bjuhealth.com. 220 Service Ready for new User Name (novellftp:g_gkc): what way i can write the script so that, i can go with out entering my userid and password Last edited by gkrishnag; 09-18-2006 at 03:49 AM. |
| Forum Sponsor | ||
|
|
|
#3
|
|||
|
|||
|
Not working???
#!/bin/sh
# USERNAME=.gg900079.irock.symbosis PASSWORD=hello!23 ftp -i novellftp << EOF user $USERNAME $PASSWORD bin cd //stecnv16/data/shared/public2/gui/webhelp mget help.zip bye EOF when i run the abo/home/cvs ->ftp.sh Password:Name (novellftp:g_gopala): Login Failed for User user Login failed. Cmd Failed - Login using User and Pass Cmd Failed - Login using User and Pass Cmd Failed - Login using User and Pass can't find list of remote files: No such file or directoryve i get the below error: can you please correct the below... |
|
#4
|
|||
|
|||
|
Quote:
ftp ftp://$user:$pass@$host/path_to_file where user, pass and host -- your variables |
|
#5
|
|||
|
|||
|
Hi
i have the ftp as
/home/cvs ->nslookup novellftp Using /etc/hosts on: gort looking up FILES Trying DNS Name: stecnv08.gamesbsi.com Address: 192.18.15.17 Aliases: novellftp.gamesbsi.com how can i put the above, i am trying as below and that is throwing error!!! ftp ftp://.gg900079.gamesbsi.tech:hello!23@novellftp.gamesbsi.com //stecnv16/data/shared/public2/gui/webhelp i am getting the error as below usage: ftp host-name [port] .. can you please correct me |
|
#6
|
|||
|
|||
|
Ok.
Which OS do you use? (command syntax may be different in several OSes. My example was to FreeBSD) |
|
#7
|
|||
|
|||
|
Hi
we use solaris
|
|||
| Google The UNIX and Linux Forums |