Massive ftp


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Massive ftp
# 8  
Old 02-21-2019
Did you try this?

Code:
cat <<!EOF
open caburga
user ephfact ephfact
cd /users/efactura/docONE/entrada
bin
mput EPH`date +%Y%m%d`XXFF_cc_01.REC  EPH`date +%Y%m%d`XXFF_cc_01.CTR
`xargs printf "put %s\n" < file_1.tmp`
quit
!EOF

I just noticed a rogue quotation mark in it which may have stopped it from working, so try again

Last edited by Corona688; 02-21-2019 at 07:00 PM..
This User Gave Thanks to Corona688 For This Post:
# 9  
Old 02-21-2019
RudiC pointed out an error in my code. Note "put %s\n" instead of "put %s". Another typo was also fixed.
This User Gave Thanks to Corona688 For This Post:
# 10  
Old 02-21-2019
Ftp Masive

Hello Goodnight

I forgot to put my code, the truth I thought it would be easy but so far I have not been able to solve the solution ...

--- Post updated at 08:12 PM ---

I need to transfer multiple files, by FTP and I have the list in a file, like this

Code:
#example
# archive : Arch_Ftp.tmp.Tmp
#
#Data archive
#test_1.txt
#test_2txt
#test_3.txt
#test_4.txt
#test_5.txt
NodoDES3=192.168.80.15
USERftp3=Fxxxxxxx
PASSftp3=Fyyyyyyy

ftp -n 192.168.80.15
quote USER $USERftp3
quote PASS $PASSftp3
ascii
prompt

# INI :  this command does not work for me
mput Arch_Ftp.tmp.Tmp
#FIN this command does not work for me

quit

That code does not work for me, and I'm a bit complicated already ...

Last edited by RudiC; 02-22-2019 at 05:02 AM.. Reason: Obfuscated authentication info
# 11  
Old 02-22-2019
Quote:
Originally Posted by tricampeon81
...
That code does not work for me, ...

Now that is a bit sparse. Please show WHAT and HOW "does not work", so we can analyse (and hopefully counteract).


Aside - this new post seems to be different from what you requested in post #1.
This User Gave Thanks to RudiC For This Post:
# 12  
Old 02-22-2019
if you're right excuse me, I'll try my code again .. and thanks for the help
# 13  
Old 02-22-2019
implement this code and the console is waiting for you to enter the key missing some parameter ??

Code:
echo 'open '$HOST''    >  mc_comando2.lst
       echo 'user '$USER' '$PASSWD''     >> mc_comando2.lst
      # echo 'cd '$repositorio_destino  >> mc_comando2.lst
       echo 'prompt off' >> mc_comando2.lst
       echo 'mput '$FILTRO''     >> mc_comando2.lst
       ftp -n < mc_comando2.lst

# 14  
Old 02-22-2019
For the third time in a row:

Code:
ftp -n <<!EOF
open caburga
user ephfact ephfact
cd /users/efactura/docONE/entrada
bin
mput EPH`date +%Y%m%d`XXFF_cc_01.REC  EPH`date +%Y%m%d`XXFF_cc_01.CTR
`xargs printf "put %s\n" < file_1.tmp`
quit
!EOF

This time I have done the onerous task of substituting ftp -n for cat, for you. Try the above code and get back to me.

Ignore suggested solutions a third time and I will lock your thread.
These 3 Users Gave Thanks to Corona688 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 massive SMF log file

I found that there was a SMF log file: /var/svc/log/milestone-multi-user-server:default.log.0 which occupied around 19G bytes. Please help me how to purge this massive file. Can I just use cat /dev/null > /var/svc/log/milesto..... to this file without any interruption to a non-stop system?... (11 Replies)
Discussion started by: AlexLi
11 Replies

2. Shell Programming and Scripting

Massive Copy With Base Directory

I have a script that I am using to copy around 40-70k files to a NFS NAS. I have posted my code below in hopes that someone can help me figure out a faster way of achieving this. At the end of the script i need to have all the files in the list, copied over to the nas with source directory... (8 Replies)
Discussion started by: nitrobass24
8 Replies

3. Homework & Coursework Questions

having massive trouble with 5 questions about egrep!

Hi all! I need help to do a few things with a .txt file using egrep. 1. I need to list all sequences where the vowel letters 'a, e, i, o, u' occur in that order, possibly separated by characters other than a, e, i, o, u; consisting of one or more complete words, possibly including punctuation. ... (1 Reply)
Discussion started by: dindiqotu
1 Replies

4. Shell Programming and Scripting

Unix Shell basic loop massive n00b

hey guys I would really appreciate some help, i need to do a project for a job that requires minimal UNIX scripting and im REALLY stuck basically Im stuck at what i believe is something really simple but i just dont have a clue how to do it efficiently and properly and i REALLY appreciate some... (16 Replies)
Discussion started by: thurft
16 Replies

5. UNIX for Dummies Questions & Answers

massive tarred grib files totally unacceptable

Hi, I have 7 terabytes of tar files, one for every single day since 1980. Inside these tar files are GRIB files, each with 100+ variables. There's 8 GRIBs in each tar, corresponding to different times of the day. I need 6 friggin variables..., and it takes TWO WEEKS TO EXTRACT ALL THE TAR FILES... (3 Replies)
Discussion started by: sammysoil
3 Replies

6. UNIX for Advanced & Expert Users

Solution for the Massive Comparison Operation

Hi We have 50 million records in mainframes DB2. We have a requirement to Record the Change Data Capture(CDC) records. i.e New Records or Updated Records that were added into the DB2. Unfortunately we dont have any column indicators to give the details of the changes made to the records. ... (8 Replies)
Discussion started by: raghav288
8 Replies

7. UNIX for Dummies Questions & Answers

Send a massive message to the connected users

How can I send a message for all the users connected into the system at the same time? Let's say I need to reboot the server and I ask the users to save their jobs becasue the server will be rebooted? (5 Replies)
Discussion started by: agasamapetilon
5 Replies
Login or Register to Ask a Question