Jan 4, 2006 #1 cmancre Programmer Jan 30, 2005 35 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.
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.
Jan 4, 2006 #2 Chacalinc Vendor Sep 2, 2003 2,043 US a start: #!/bin/bash ... so the question is? Chacal, Inc. Upvote 0 Downvote
Jan 4, 2006 Thread starter #3 cmancre Programmer Jan 30, 2005 35 PT lol #!/bin/bash #ok! now i need to send a file via FTP Upvote 0 Downvote
Jan 4, 2006 #4 Chacalinc Vendor Sep 2, 2003 2,043 US 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. Upvote 0 Downvote
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.
Feb 3, 2006 #5 Kozusnik Programmer Feb 27, 2005 620 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. Upvote 0 Downvote
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.