FTP send foldes and subfolders


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting FTP send foldes and subfolders
# 1  
Old 02-11-2013
Linux FTP send foldes and subfolders

I need to perform a transfer of many files by FTP, including folders and subfolders is how I do it? Is there a command that needs to perform in FTP? What would be the right routine for this? Thank you.
# 2  
Old 02-11-2013
Turn off the prompting using prompt command and then use mput command with wild cards as argument.

Check the ftp manual for further reference.
# 3  
Old 02-11-2013
bipinajith,

I tested with -i already used -in and not even working. What was wrong?
Very thanks!

---------- Post updated at 10:45 AM ---------- Previous update was at 10:43 AM ----------

my script
Code:
ftp -in <<EOF
passive
open myhost
user myuser mypw
bin

mput *

bye
EOF

---------- Post updated at 10:45 AM ---------- Previous update was at 10:45 AM ----------

log:
Code:
Passive mode off.
AUTH not understood
AUTH not understood
KERBEROS_V4 rejected as an authentication type
daily: not a plain file.
weekly: not a plain file.


Last edited by Franklin52; 02-12-2013 at 03:13 AM.. Reason: Please use code tags for data and code samples
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

FTP to send files using Binary mode

I am using below code to send files into ascii mode.what changes will I have to do to send files into Binary mode ? ftp -in <<FIN open $SAP_UP_SERVER user $SAP_UP_USER $SAP_UP_PASSWORD asc put $PM00_OUTPUTS_DIRECTORY/$SAP_UP_FILE_CSV /SAP_UP_FILE_CSV quit FIN (1 Reply)
Discussion started by: Nitin Varshneya
1 Replies

2. Shell Programming and Scripting

Shell FTP script to send all files to different path

Hello to all in forum I hope you can help me. I want to send via FTP to a linux server the 2 kind of files that are in the same folder, as follow: 1- Send all files that are named verified.SomeString.zz.pttp to path /var/verified 2- Send all files where the name begins with verified.conf... (3 Replies)
Discussion started by: Ophiuchus
3 Replies

3. Shell Programming and Scripting

send files through ftp using proxy in a loop

Hi, I have a problem with sending files to ftp using proxy. When using this script: #!/bin/bash DIR=/dane_wz ftp -n -v 172.30.100.13 << EOF quote USER xxx@172.25.240.45 quote PASS xxxx passive cd $DIR quit EOFit works fine and I get connection with FTP server, but using the same in a... (2 Replies)
Discussion started by: vrolok
2 Replies

4. Shell Programming and Scripting

send a mail whenever a file is updated in certain folder or its subfolders

send a mail to a group of users whenever a file is updated in certain folder or its subfolders on an unix server (3 Replies)
Discussion started by: ashishabhishek
3 Replies

5. UNIX for Dummies Questions & Answers

FTP - need to send error to txt file

I've written a script to FTP files into a directory, perform a diff between the current and the previous and email out the results. Sometimes a machine falls off the network and needs to be rebooted to reconnect. Obviously I don't get the file I want at that time. How do I get the FTP error to be... (1 Reply)
Discussion started by: scanner248
1 Replies

6. Shell Programming and Scripting

FTP - need to send error to txt file

I've written a script to FTP files into a directory, perform a diff between the current and the previous and email out the results. Sometimes a machine falls off the network and needs to be rebooted to reconnect. Obviously I don't get the file I want at that time. How do I get the FTP error to... (0 Replies)
Discussion started by: scanner248
0 Replies

7. Shell Programming and Scripting

How send a file from UNIX to Windows with FTP

Hi I'm new working in UNIX, So, I want to know How I can send a file from UNIX to Windows server with FTP. This is my script. ftp -i -n -v <<** open 199.99.99.99 user user1 password1 lcd C01_07_06 /* source/ cd //199.98.98.98/group1/reports /*destination*/ put file1.sh ... (1 Reply)
Discussion started by: edzela
1 Replies

8. Shell Programming and Scripting

Need to send multiple files during ftp

Hi guys... I'm working on #!/bin/sh script in a Solaris 7 box that should send several files over to another machine via FTP. Here's what the script looks like: # This script will send the daily MSP customer counts # to the Crystal Reports server located at 192.168.2.106 cd... (2 Replies)
Discussion started by: cdunavent
2 Replies

9. Shell Programming and Scripting

send file of size 0 with FTP on AIX

I'm using IBM AIX 5.2 to send file with ftp to other unix machine. The command is into a shell: ... ftp -n > outFtp 2> errFtp <<PARAM open $2 user $3 $4 put $1 $remote bye PARAM ... then i look at the size of errFtp and outFtp to see if there are some error message.... (4 Replies)
Discussion started by: gggarb
4 Replies

10. UNIX for Dummies Questions & Answers

Send a file by ftp

Hello! Is there any chance that this single line command execute properly on aix? I have 0 knowledge on that platform!! echo "User_FTP \nFTP_PASSWORD \nbin \ncd cad \nput /opt/lotus/office/general/Agent.csv \nquit" | ftp abc0.cie.com If not, any other suggestion? A single line command... (4 Replies)
Discussion started by: jr_provost
4 Replies
Login or Register to Ask a Question