![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| invoking a shell script inside cgi shell script | smriti_shridhar | Shell Programming and Scripting | 2 | 07-08-2008 10:50 PM |
| Accessing variables of one shell script in another shell script | looza | Shell Programming and Scripting | 2 | 06-30-2008 04:13 PM |
| How to pass a parameter from one Shell-script to another Shell-script | subodhbansal | Shell Programming and Scripting | 2 | 09-22-2007 02:19 AM |
| How to Run a shell script from Perl script in Parent shell? | hifake | Shell Programming and Scripting | 16 | 08-28-2007 05:42 PM |
| Accessing variables of one shell script in another shell script | rsendhilmani | Shell Programming and Scripting | 1 | 04-30-2007 05:43 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
FTP in shell script
HI ALL
i am writing a shell script in which i have to use FTP command like. FTP <ip address> cd xyz mget* bye but i am not able to perform any command from shell script. once the control goes to FTP, i again have to type all the things. i just want my shell script to take care of the commands wrritten above. please help me to automate the process |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
If you search the web for example via Google and use the words "ftp shell script" you get tons of hits with examples. You can also look for "Here Scripts".
|
|
#3
|
|||
|
|||
|
Quote:
thanks for your reply. actually ia m looking for how to use mget * command. for every file to get it requires a key press. i am not sure how to do this. plz help. |
|
#4
|
|||
|
|||
|
There is the ftp command "prompt" which will make it non-interactive or there will be also a switch for ftp like -i.
|
|
#5
|
|||
|
|||
|
that was brilliant!!
thanks a lot |
|
#6
|
||||
|
||||
|
Depending on what you're doing using the wget command might be easier.
|
|
#7
|
|||
|
|||
|
an expect script would do the job nicely too.. don't you pass the login and password in the ftp script?
|
|||
| Google The UNIX and Linux Forums |