![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | 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. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Accessing variables of one shell script in another shell script | rsendhilmani | Shell Programming and Scripting | 2 | 03-17-2009 01:17 AM |
| To call/execute a shell script from a shell script | konark | UNIX for Dummies Questions & Answers | 1 | 10-26-2007 05:16 PM |
| How to pass a parameter from one Shell-script to another Shell-script | subodhbansal | Shell Programming and Scripting | 2 | 09-22-2007 05:19 AM |
| How to Run a shell script from Perl script in Parent shell? | hifake | Shell Programming and Scripting | 16 | 08-28-2007 08:42 PM |
| Have a shell script call another shell script and exit | heprox | Shell Programming and Scripting | 2 | 11-20-2006 08:17 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
ftp with shell script
Can I ftp to put file with shell script(as bath file) ?
Plz give the simple code to do that. My script look like that #!/bin/sh echo "Start ftp" ftp temphost <<EOF put file quit EOF # end This code ignore username & password but I need to input. How to input username & password to this code ? Thk Last edited by aungomarin; 05-09-2006 at 03:11 AM.. |
|
||||
|
or get userid/password before starting ftp (not for insecure environments as password is visible):
Code:
#!/bin/sh read uid?"UserId: " read pwd?"Password: " echo "Start ftp" ftp -n temphost <<EOF user $uid $pwd put file quit EOF # end |
|
||||
|
Dear Friends,
Please Let me know which .netrc file should I edit either in my home directory of in the destination home directory. I need to know the idea of .netrc file. I really misunderstand it. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Actually what I'm doing is the following: 1. I have 192.168.30.151 unix server 2. I have 123.123.130.200 unix destination server. 3. I need to ftp auto. from server No. 1 to destination server. How can I make this in detail. please . |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|