![]() |
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 |
| 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help me in sending parameters from sqlplus script to unix shell script | Hara | Shell Programming and Scripting | 2 | 01-29-2008 03:31 PM |
| Shell Script: want to insert values in database when update script runs | ring | Shell Programming and Scripting | 1 | 10-25-2007 03:06 AM |
| here document to automate perl script that call script | hogger84 | Shell Programming and Scripting | 3 | 10-22-2007 10:15 AM |
| returning to the parent shell after invoking a script within a script | gurukottur | Shell Programming and Scripting | 5 | 09-26-2006 07:05 AM |
| return valuse from child script to parent script | borncrazy | Shell Programming and Scripting | 1 | 08-20-2004 03:39 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
FTP thru script
Hi, could anyone please tell me how can i write an interactive script so that i can connect to an FTP and pass the username and password when prompted.
i thought of using expect. but its not installed on my system and i got the following error msg when i tried uncompress the .tar.z file after downloading: insize:489 posbits:0 inbuf:00 F1 69 5C 9F (0) uncompress: corrupt input. i there any way tht i can store the usid n psswd in a file and use tht to pass the parameters to the script? i am workin on TC shell. |
|
|||||
|
Quote:
Quote:
|
|
||||
|
Here is a script that I use sometimes. You can comment/remove some of the options such as the log or debug...
cat goftp2 #!/bin/sh #set -v echo NOTE: check ftplog for connection info DATE=`date` echo Current time is $DATE rm ftplog date >>ftplog HOST='192.168.0.01 5021' USER='user01' PASSWD='user01' #FILE='/home/user01/file.txt' ftp -v -n $HOST >>/home/user01/ftplog 2>&1 <<EOJ quote USER $USER quote PASS $PASSWD debug pwd passive mput aaa* ls close bye DATE=`date` echo Current time is $DATE EOJ exit 0 |
|
||||
|
Hello Guys ..
I am new to Unix . can anyone help me in ftp scripts i need to connect to a server get an object and put the object in the different server The issue is it has to prompt from which server it has to get .. and which unix box it needs to put .. can anyone help me on this .. please help me on this Thanks!! |
| Sponsored Links | ||
|
|