![]() |
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 Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Automate FTP | borncrazy | Shell Programming and Scripting | 11 | 02-21-2008 12:10 AM |
| automate Telnet ? | tbeghain | Shell Programming and Scripting | 4 | 06-19-2007 06:09 AM |
| How to automate an FTP process? | ksak | Shell Programming and Scripting | 1 | 10-06-2006 12:45 PM |
| How to automate responses | djp | Shell Programming and Scripting | 2 | 06-07-2005 04:00 PM |
| automate an ftp job | flowrats | UNIX for Dummies Questions & Answers | 11 | 07-24-2002 08:47 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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 |
|
||||
|
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 10:20 AM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|