Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

send file into an FTP

Status
Not open for further replies.

cmancre

Programmer
Jan 30, 2005
35
0
0
PT
Hello, im doing a bash script and in the middle of that script a need to send a file into a FTP.
I dont know where to start.
 
lol

#!/bin/bash

#ok! now i need to send a file via FTP
 
hmm...

ftp your_host <<< END
user
password
bin (or asc)
cd /path/destiny
put /path/file
bye
END

should work in the script..

can you use scp instead?

Chacal, Inc.[wavey]
 
I like ncftp. One command. I use it in several bash scripts.

Mark

There are 10 types of people in this world, those who understand binary and those who don't.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top