Scripting FTP Help
I am trying to script FTP so I can take a .tar file that I created and ftp it through to a Windows FTP server.
I have the following line in the script I created to create the tar file: Code:
FTP < /scripts/ftpscript Code:
open xxx.xxx.xxx.xxx Any ideas? Thanks. |
scripted ftp........
Include ftp commands within the script, and process them with ftp -n for example: HOST='site.domain.com' USER='username' PASSWD='secret' ftp -n $HOST quote USER $USER quote PASS $PASSWD include all that in a shell script, and then execute your put $FILE command. don't try to run the script through FTP |
Thanks. Have now got the following just in my shell script:
Code:
FTP_HOST=172.xxx.xxx.xxx Code:
2200 <FTPSERVER> Microsoft FTP Service (Version 5.0). Pete. |
Code:
#!/bin/sh |
Cheers nx5000, that worked fine :)
|
All times are GMT -5. The time now is 01:23 AM. |