Monday, July 09, 2007

Automated FTP-Put in Shell-Script

If you want to make an automated FTP-Put just use the next few lines in your Shell-Script.

#!/bin/sh
echo -e "open ftp.example.com\nuser ftpuser ftppasswd\nbin\ncd toDirectory\nput file.example" |ftp -n

No comments: