![]() |
|
|
|
|
|||||||
| 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 |
| Automate FTP | borncrazy | Shell Programming and Scripting | 11 | 02-20-2008 08:10 PM |
| automate Telnet ? | tbeghain | Shell Programming and Scripting | 4 | 06-19-2007 03:09 AM |
| How to automate an FTP process? | ksak | Shell Programming and Scripting | 1 | 10-06-2006 09:45 AM |
| How to automate responses | djp | Shell Programming and Scripting | 2 | 06-07-2005 01:00 PM |
| automate an ftp job | flowrats | UNIX for Dummies Questions & Answers | 11 | 07-24-2002 05:47 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Automate FTP
Hi all,
I got this piece of code in this forum and I can't seem to get it work. The thread already closed so I just post a new thread. Code:
#!/usr/bin/ksh ftp -v -n "YOUR.IP.ADD.RESS" << cmd user "user" "passwd" cd /distant/directory lcd /local/directoryget ssh_install get ( or put) your files quit cmd Do I run this script from the Unix side, or the command line (c-prompt) in window side? cd /distant/directory is the directory on the unix server where i want the file ftp to? lcd /local/directoryget ssh_install is the directory on my window pc where i want to get the file from? Thanks CT |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
Code:
ftp -s:ftpscriptfilename Thomas |
|
|||
|
It does connect to the server and everything, but it can't find the file from my share drive to put on the UNIX server. I was just wondering, if you have it automate to run at certain time. How does it know what "lcd" directory of the local machine to find the file from?
CT Last edited by CamTu; 02-25-2005 at 06:20 AM. |
|||
| Google The UNIX and Linux Forums |