poisen
25th March 2008, 15:34
Hey everybody,
I wanna transfer a tar.gz that I've created to a ftp server automatically using a batch script that is run by a cron job. I just can't get it to work, googled around the last 2 days and just couldn't find anything that works. The problem is that when I open a ftp connection, I am asked for a username and password and I just don't know how to automatically get that entered.
What I wanna do:
#!/bin/sh
ftp xx.xx.xxx.xx
username
password
put /tmp/filename.tar.gz
bye
maybe somebody can help me out here. I did get everything working before using scp, but this time the only possiblity is using ftp, sadly.
-Eddie
I wanna transfer a tar.gz that I've created to a ftp server automatically using a batch script that is run by a cron job. I just can't get it to work, googled around the last 2 days and just couldn't find anything that works. The problem is that when I open a ftp connection, I am asked for a username and password and I just don't know how to automatically get that entered.
What I wanna do:
#!/bin/sh
ftp xx.xx.xxx.xx
username
password
put /tmp/filename.tar.gz
bye
maybe somebody can help me out here. I did get everything working before using scp, but this time the only possiblity is using ftp, sadly.
-Eddie