Jan 4, 2006 #1 cmancre Programmer Joined Jan 30, 2005 Messages 35 Location 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 Joined Sep 2, 2003 Messages 2,043 Location US a start: #!/bin/bash ... so the question is? Chacal, Inc. Upvote 0 Downvote
Jan 4, 2006 Thread starter #3 cmancre Programmer Joined Jan 30, 2005 Messages 35 Location PT lol #!/bin/bash #ok! now i need to send a file via FTP Upvote 0 Downvote
Jan 4, 2006 #4 Chacalinc Vendor Joined Sep 2, 2003 Messages 2,043 Location 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 Joined Feb 27, 2005 Messages 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.
Feb 6, 2006 #6 adrstan1 Programmer Joined Apr 16, 2004 Messages 38 Location GB Or use curl in your script Upvote 0 Downvote