Automated FTP of multiple files

What's wrong with this picture:
host='000.000.000.000'
ftp -v $host << EOF
cd backups
lcd /Users/duane/Documents/backups/ftp_uploads
mput *
bye
EOF
It uploads one file then bails out. Main issue is that it keeps asking me:
mput myfile2007_0430.tgz [anpqy?]?
¿Qué? So either I have to find a switch to offset this silly question or I need to list one file at a time with a for i in... statement.
The for statement is an issue because I don't want it to print to the screen but just do the job.
Any help appreciated. :-/

<pre class="command">
ftp -v $host << EOF
cd backups
lcd /Users/duane/Documents/backups/ftp_uploads
prompt
mput *
bye
EOF
</pre>
From the ftp man page:
<pre>
prompt Toggle interactive prompting. Interactive prompting occurs
during multiple file transfers to allow the user to selec-
tively retrieve or store files. If prompting is turned off
(default is on), any mget or mput will transfer all files,
and any mdelete will delete all files.
</pre>
Powerbook G4 1GHz   Mac OS X (10.3.9)  

Similar Messages

  • Why can't I get Automator to open multiple files at once?

    I'm trying to do something relatively simple with Automator: I want it to open (in Photoshop) all RAW files within a certain folder. Here is what I have:
    1. Get folder contents
    2. Filter Finder items: Name Extension Contains "RAW"
    3. Open Finder items: Open with Adobe Photoshop
    When I save this as a Finder plug-in and apply it to a folder, it only opens the first RAW image in PS. It is possible to open multiple RAW images at once in Photoshop, so that's not the problem. Somehow I can't tell get Automator to open ALL the RAW images in the folder, not just the first one. I've tried substituting "Find Finder Items" for "Filter Finder Items" but the result is the same.
    What am I missing? A million thanks to anyone who can give me a solution!

    If your using PSCS2 I assume you also have Adobe Bridge.
    The best I can come up with is a workflow that filters RAW files out of a mixed file folder into their own folder, then opens that folder in Bridge, from where, with a command-a (to select all) and command-o (to open), you get all of your RAW files up in the RAW converter.
    1. Get Specified Finder Items (Make this source folder)
    2. Get folder contents
    3. Filter finder items
    4. New Folder (Target for filtered results)
    5. Open finder items (Open with Bridge)
    I've tried adding an Open with Photoshop as a last step and for some reason it bypasses the RAW converter and pops them straight into PS.
    IMHO, it's just as easy to use the Adobe Bridge, and open the files you want direct from there.

  • Hadeling multiple files in sender and receiver adapter

    Hi ,
    In my sender FTP server multiple files gets created at a same time i want to send this same files to the target FTP server am not doing any file content conversion. Just pick this multiple files at a single poll and drop it in the target FTP system.
    I gave . in the as file name parameter in the sender file adapter..PI system picks all the files as separate message but if i give . in the receiver adapter itu2019s not creating the file and its giving Java exception..
    Is there any other method to do this without having File content conversion... ?
    Regards
    Shakfie

    I gave *.* in the as file name parameter in the sender file adapter..PI system picks all the files as separate message but if i give *.* in the receiver adapter itu2019s not creating the file and its giving Java exception..
    For receiver adapter you have to give some file name, '.' will not work for receiver adapter. So give any temporary name just to satisfy the mandatory field. And when you selet the ASMA settings in both SENDER & RECEIVER adapter then your Receiver File adapter will write the same file name which it has picked up and NOT the one which you have written in your receiver adapter.
    Note: Set ASMA setting in both else you will not get the same file name at receiver. You can see the same in blog given by Siva. You need not to create any UDF since you are not using any mapping. Just use the ASMA settings.. that's it.
    > Is there any other method to do this without having File content conversion... ?
    You can go through this blog for the same...
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
    Regards,
    Sarvesh

  • Creating zipped file which contain multiple files

    hi all,
    i have a problem which i would like some advice about:
    i need to recieve from a FTP server multiple files and then zip them all in one big zip file.
    now i checked the forums and all i found is using PayloadZipBean which in all the examples create a zip file with one .txt in it.
    is it possible to create multiple files in the zip using this module?
    another problem if the one big zip file is what if each of the files inside the zip file has it's own mapping...
    i think a BPM is a must here and a parallel one also with a correlation...
    i would like if it's possible to do something different as the correlation between the files is a bit complicated?
    regards and thanks a lot,
    Roi Grosfeld

    First,
    I would like to understand your requirement. Is it to only download and zip the files in to one file? XI is not the solution. A OS level script or some C program is what I would use for that which calls some FTP APIs.
    If you requirement is to get different files with different format but want to send them to one desintation which accepts files in only one format, I would not consider zipping them into one file and again unzipping then and executing a mapping XI. Instead, I would have different file adapter for each type of the file and use as many sender agreements with diffrent mappings.
    Hope it made some sense..!!
    VJ

  • How to send multiple files in parallel using ftp with single connection

    Hi.
    i have written code for file upload manager using ftp..
    it perfectly working with sequence file uploading in single connection..
    And i tried to upload multiple files with parallel processing in a single connection.... but it is not working properly.. i also used thread concept
    but single file only transfered and connection refused...
    my code here...
    //////////////////// main class //////////////////////////////////////////
    ftp.connect();
    ftp.login();
    String [] archivos = new  String[100];
                                      File dir = new File("C:\\Files Uploading\\");
                                       archivos = dir.list();
                                       for (int s=0; s<archivos.length;s++)
         //Start Data Transfer Here
         new DataTransfer(archivos[s]).start();
                                       Thread.sleep(1000);
    /////////////////////// thread class ////////////////////////////////
    class DataTransfer extends Thread
          String FileName="";
          String LocalPath="",RemotePath="";
           public DataTransfer(String fname)
         FileName = fname;
         LocalPath = "C:\\Files Uploading\\" + FileName;
         RemotePath = FileName;
         System.out.println(LocalPath);          
            public void run()
                        System.out.println("DataTransfer Started");
         /File Transfer Here
         try
               FileInputStream input = new FileInputStream(LocalPath);
                               Ftp_Client.storeFile(RemotePath,input);
         System.out.println("Successfully sent : " + RemotePath);
         catch (Exception exc)
              System.out.println(exc.getMessage());
              System.out.println("DataTransfer Ended");
         }otherwise tell me any other alternate way

    And i tried to upload multiple files with
    parallel processing in a single connection....
    but it is not working properly.FTP isn't a multiplexing protocol. How could it work at all?

  • Polling of the current file from multiple files in the FTP Server

    Hello Experts
    I am working on a file to file scenario.We have to poll the file from the FTP server which may contain multiple files with different creation dates.The requirement is to poll only the file created in the current date.Could anyone throw some light on this.
    Thanks & Regards
    Sabyasachi

    Hi Sabyasachi,
        You can archive the files that you do not need into another folder manually for the first time.
    Later you can schedule the file adapter to poll the folder only once in a day (Poll INterval = 86400 secs)
    Do not forget to set the option to archive/delete the file that are already processed.
    Regards,
    Ravi Kanth Talagana

  • Unable to upload multiple files on FTP server.

    m trying to upload files present in one directory..
    its storing the first file properly...but from second file its giving error.
    my code is pasted below:
    ftp1.setFileType(FTPClient.BINARY_FILE_TYPE);
    ftp2.setFileType(FTPClient.BINARY_FILE_TYPE);
                 String filename="";
                FTPFile[] files = ftp1.listFiles();
                if ( files.length == 0 )
                    System.out.println("  No results.");
                } else
                     for (int i = 0; i < files.length; i++)
                          FTPFile f = files;
              filename = f.getName();      
              System.out.println(" > " + filename );
              ftp2.enterRemotePassiveMode();
         ftp1.enterRemoteActiveMode(InetAddress.getByName(ftp2.getPassiveHost()),
              if (ftp1.remoteRetrieve(filename) && ftp2.remoteStore(filename))
                   System.out.println("Successfull >" + filename);
              else
                   System.err.println(
                   "Couldn't initiate transfer. Check that filenames are valid.");
                   break __main;
         }//end of for
         ftp1.completePendingCommand();
         ftp2.completePendingCommand();
    }// end of else
    my code is actually trying to list files from FTP Server1 and copy this to FTP Server2.
    I think the problem is
    ftp2.enterRemotePassiveMode();
         ftp1.enterRemoteActiveMode(InetAddress.getByName(ftp2.getPassiveHost()),
    please can any one figure out the problem...
    any help suggestion is welcome....

    What about connecting to the remote server with cfftp. Then
    using
    cfdirectory to get a listing of the files. Loop over the
    listing using cfftp
    to grab each file.
    Bryan Ashcraft (remove brain to reply)
    Web Application Developer
    Wright Medical Technology, Inc.
    Macromedia Certified Dreamweaver Developer
    Adobe Community Expert (DW) ::
    http://www.adobe.com/communities/experts/
    "Dusty Carr" <[email protected]> wrote in message
    news:f59tue$731$[email protected]..
    >I need to get files from a remote server using cfftp, the
    problem is that
    > the files are not zipped into one file, there are
    multiple files with
    > different file names that change daily, all are .jpg
    extensions. I
    > thought
    > I could just use something like this:
    > <cfftp action = "getFile"
    > stopOnError = "Yes"
    > remotefile = "/*.jpg"
    > localfile = " my dir"
    > connection = "ftp_IDX"
    > failIfExists = "false"
    > passive="yes">
    >
    > But just using the * wildcard does not work. what am I
    missing here?
    >
    >

  • FTP - FCC - GUILDFTPd - Unable to pick up multiple files with Wildcard char

    Hi All, 
    I am not sure if my issue is strange or i may be missing something here. I am using FTP - FCC and using GUILDFTPd to connect to my local machine. This is working perfect if i don't use wildcard characters in file name but if i use them it is not picking up files. I have green in Channel monitoring and polling as mentioned for every 60 Seconds.
    I have tried both using/without using 'Advanced selection for source file'  and also checked 'Adapter specific message attributes'. The same is working if i specify exact file name. By the way, i have tried using '*' and '?' as wildcard character.
    Any idea or help in this regard is appreciated.

    I have tried with just basic. I mean, it works fine if i specify exact file name. The problem is only when i want to pick up multiple files using any wildcard character. No error in communication channel or in archive settings as the scenario working for one file without any wildcard.
    However, i have changed to NFS and it is working good even with wildcard characters.
    It seems there is a problem with GUILDFTPd which is not picking up files but no errror.
    Any ideas are welcome. Thank you both for the responses.

  • FTP Adapter to poll multiple files (different formats)

    Hi,
    We have a requirement to poll and process multiple files from a given FTP location(either process all or reject all - reject if there is any failure in one of the files).
    Using FTP Adapter's Get File operation(Schema Opaque), we are able to read three different file formats and can get the file name(Using header variable FileName).
    And we are hoping to process the file contents based on the File Name that we get from the above step.
    1) How do we convert the file contents from Opaque to specific Schema (ex: file1.csv, file2.csv and file3.csv with different formats)?
    2) As the requirement is to process all the files at the same time, Can we use correlation in the poller process to route to single controller process(One instance of Controller process for all the files)?
    Any help would be much appreciated.
    Thanks...

    Thanks a lot for the quick answers.
    I've used the Java embed to convert Base64 content to String. And using 'translateFromNative' extension, I could convert it to the desired XML content.
    But I still have trouble in polling and processing all the files(file1.csv, file2.csv and file3.csv) at the same time using a single controller process.
    My requirement is to process all the three files at the same time(for any failures I have to compensate any/all of inserted records).
    I tried using Pick(with different OnMessage branches), but as they are polling the same location I could see only one OnMessage branch is getting fired resulting in multiple instances.
    May be I didn't understand your suggestion correctly, could you please elaborate on the possibility of processing multiple files at the same time?
    Thanks

  • BPEL Process with multiple file types using one FTP adapter is not working

    i created a bpel process which will fetch the files from remote location using FTP adapter.
    Now the process works for only one format or file type like *.xls.
    How can i use more than one file format in one FTP adapter.
    OR
    is there any other way to do it.
    file type assignation is 5th step in FTP adapter configuration.
    i have tried *.xls,*.csv and *.xls;*.csv and *.xls:*.csv by seperating with comman, colon, space... still not working.
    i read the documentation *.* will not work.. for one file format it's working fine.
    looking forward for reply as soon as possible.

    Are you positive that it is not working? I'm not sure how you can use one FTP adapter for multiple file types unless the underlying data is exactly the same format or you are processing it as opaque data. Sometimes when a FTP adapter chokes on a file with a bad structure it doesn't create a BPEL instance, it simply moves the bad file to a separate folder.
    So I assume you are using opaque as the data type instead of using an XSD element?
    That said, I don't think you can put two separate file types in the filter. Is it possible for you to do something like: CommonFileName*.* or do you have similar files with other extensions?
    I know the above probably isn't of much help, but I had so many problems with the FTP adapter and its lack of features that I am writing my own. Unfortunately that is a large undertaking and there isn't any good documentation of JCA resource adapter / BPEL PM integration.

  • In FTP server same file name with multiple vesions

    Hi All,
    My source system is UNIX. in that FTP server they have multiple files with same name  example " abc.dat"; with different versions example"abc.dat;43" "abc.dat;44", "abc.dat;45". . so how to read latest version file like "abc.dat;45"   from sender communication channel with file adapter.
    suggestions please..Thanks in advance.
    Edited by: venkataraonandigam on Jul 15, 2011 3:12 PM

    Hi VenkatRao,
    Sender file adapter configuration has an option "Processing Sequence". In the that select by"Date" or Name .
    If you used placeholders when specifying the file name, define the processing sequence of the files:
    ○       By Name: Files are processed alphabetically by file name.
    ○       By Date: Files are processed according to their time stamp in the file system, starting with the oldest file.
    Otherwise you have to write shellscrit to move the latest version file to a different folder and pick it up from that folder.
    Or
    write adapter module.

  • FTP Adapter to read multiple files from a directory. Not through polling.

    Dear Friends,
    I would like to know is it possible to configure the FTP adapter in Oracle BPEL 10.1.3.4 to read multiple files (different names, same structure) from a given directory. I do not want the BPEL to do a polling. Instead when I submit the BPEL process it should read all files from the directory.
    I was looking at the option of Synchronous read but I am not able to specify wild card in the file name field. I do not know the file names at the time of reading.
    Thanks for your help!

    Hi,
    While you read the file, you can configure an adapter property in 'Receive'. This will store the filename, this filename can be used for sync read as the input parameter.
    1. Create a message type variable called 'fileheader'. This should be of type Inboundheader_msg (whatever relevant Receive activity).
    2. This variable will contain three parts - filename, FTPhost, FTPPort
    3. Copy this fileheader to 'Syncheader'.
    4. syncheader can be passed as an adapter proerty during sync read of the file.
    During Receive and Invoke, you need to navigate to 'Adapter' tab to choose the created message type variable.
    Let me know if you have further questions.
    regards,
    Rev

  • Is it possible to download multiple files from FTP

    Hi,
    Is it possible to download the multiple zip files from FTP.I need to download multiple files from FTP into temporary folder in my local machine. Please help me.
    Regards,
    ahamad

    Of course it is. Try it. Or, asked differently, what did you try that did not work?

  • FTP Activity - mget multiple files with dynamic names

    Hello All
    Hope all is well.
    I was wondering if there was a way to configure FTP activity to transfer multiple files with dynamic names from source location at daily intervals.
    For example, my source files are affixed with date values (source_filename_<mmddyyyy>_<hh>.txt):
    source_filename_12252009_00.txt
    source_filename_12252009_06.txt
    source_filename_12252009_12.txt
    source_filename_12252009_18.txt
    What I would like my process flow to do would be to download just these 4 files once daily based on a dynamic ftp script as follows:
    open ${Remote.Host}
    ${Remote.User}
    ${Remote.Password}
    cd ${Remote.RootPath}
    prompt off
    mget ????????
    quit
    In DOS batch script you would have the mget command with a wildcard as:
    mget source_filename_%DATE:~0,2%%DATE:~2,2%%DATE:~4,4%*.txt
    How does one go about implementing this in OWB? Does it require a user defined substitution varilable of some sort?
    FYI, I am using version 10gR2.
    Cheers.

    Hi ,
    If you are able to achieve your objective from a DOS batch script then you can call that script for an User Defined Activity in OWB process flow .
    Hope this helps.
    Thanks,
    Sutirtha

  • Automator can't locate multiple files?

    I have started a workflow for finder to do the following:
    get selected finder items
    filter the items
    this is the problem you can only enter one item at a time !!!
    could anyone offer advice on how to make automator find and label multiple files within a folder and what format should i use for separating the file names requested.
    thanks,
    tina.

    Hey Tina,
    You should explain more in detail as to what you want to accomplish.
    There are automator actions that allow you to filter finder items one at a time, so as the Dispense Items Incrementally. There is also a Finder action that allows you to Get Folder Contents. Then there is a Finder Action that allows you to loop.
    I can help you, if you can explain in more detail what you are trying to accomplish.
    Regards,
    Phil

Maybe you are looking for

  • Why can't I open pdf files in my browser even though I have Adobe Reader 9.4.1 downloaded?

    This is an irregular problem. Sometimes pdf files open; sometimes not. The message is always that this type of file is not supported by my browser.

  • How do I move the spotlight search window out of the freaking way in Yosemite??????????

    The spotlight search window is Yosemite is obtrusive. How can I get the old spotlight behavior back in Yosemite? Spotlight windows used to be on the side and out of the way. Now spotlight is completely worthless, if it is going block what I am workin

  • + 0 in the where clause

    What is the difference between these two conditions? select * from table1 WHERE coulm1 + 0 = '75';And select * from table1 WHERE coulm1 = '75';I have see the explain plan for these two. The first one is taking full table scan and the second query is

  • Issue opening pdf on mouse click

    I have build a swing app which makes search over lucene index and fetches the pdf file from derbydb saves in HDD and let me opens the pdf from the selected row. public void mouseClicked(MouseEvent e){             JTable table = (JTable)e.getSource();

  • Possible migration(Heterogeneous system copy) combination

    Dear all Currently we're planning to do Heterogeneous system copy from the following source(current system) and target. Source : R/3 4.6C + Oracle 8.1.7 on AIX 4.3.3 Target : R/3 4.6C + Oracle 10.2 on Windows 2003 For the target system, i checked the