Running multiple files

Hello
I am trying to run multiple files with my java app on a Unix server. I compiled with javac, and run it thus:
java SNL *.mef
meaning I want to run all of the files with .mef suffix. Unfortunately it does nothing. If I just run one file at time this way:
java SNL bach.mef
it will work just fine. My main method looks like this:
public static void main(String[] args) throws IOException {
if (args.length != 1) {
System.exit(-1);
} else {
File file = new File(args[0]);
SNL parseSNL = new SNL(file);
Any help would be greatly appreciated.
JM

public static void main(String[] args) throws IOException {
  if (args.length != 1) {
    System.err.println( "Usage: java SNL x.mef y.mef ..." );
    System.exit(-1);
  } else {
    for( int i=0; i<args.length; i++ ) {
      File file = new File( args[i] );
      System.out.println( "Parsing " + file.getAbsolutePath() + " ..." );
      SNL parseSNL = new SNL(file);

Similar Messages

  • How do you run Multiple Files on a single screen?

    Greetings; Please only respond if you've ACTUALLY done this, no opinions requested.
    I'd like to run several /.mov/mp4 files simultaneously on a single screen to simulate a 360deg view.
    If I start 5 cameras filming simultaneously (front, back, left, right,  rover), I'd like to sync the files, then combine the video on a single screen in large crossed  thumbnails/2"X2" format.   For example; Top, Bottom, Left, Right, Center images...
    How can this be done in Premier...?...and then exported to a standard format...?
    Again; Please only respond if you have ACTUALLY done this; no opinions please...
    Thank YOU

    If I start 5 cameras filming simultaneously (front, back, left, right,   rover), I'd like to sync the files, then combine the video on a single  screen in large crossed
    When I did this type of shot before I had to do some tricky stuff....and the hardest part for me was keeping me from shooting the other cameras and those other camera operators, not to mention trying not to see all those reflections of cameras and everything in the car, especially when I flew over the roof on wire !  Eventually I got it done but I had to basiscally use space lights with skirts and diffusion and then tent the car off with silk ( this was in a large football field sized stage )...and then put little holes in the silk for the "lenses"...and then hire a lot of people to walk that silk around as the cameras all dollied on track with the movement of the silk...  took forever to get the shot but it was beautiful if you squinted.
    good luck !
    ps...I when I edited this just like you want to do, with a lot of simutaneous screens within the frame, it looked so 3 dimensional people actually lost their balance watching it !

  • Run multiple SQL*Loader control files from command prompt

    I have written control files for 15 different tables with specific data files for each table. I have build the control files using toad for each one of them at once. Now I want to run the sql loader for all the tables one time. I know I cannot run multiple files from toad and not sure If I can run from the command prompt.
    Please let me know If I can.

    skvaish1 wrote:
    Hi,
    On unix you can create a script to runn all sqlldr at once like as followes.
    1. Create a script load_sqlldr.sh with following content.
    export ORACLE_SID=<YOUR DB_SID>
    export ORACLE_HOME=<Your Oracle Home>
    export PATH=$ORACLE_HOME/bin:$PATH
    sqlldr (Full command with parameter for 1st table) &
    sqlldr (Full command with parameter for 2nd table) &
    sqlldr (Full command with parameter for 3rd table) &
    sqlldr (Full command with parameter for 4th table) &
    sqlldr (Full command with parameter for 15th table) &
    2. Then execute the script.
    Regards1. Can I also write script load_sqlldr.sh with following content
    sqlldr user/psswd@db_name control=controlfile1.ctl
    sqlldr user/psswd@db_name control=controlfile2.ctl
    sqlldr user/psswd@db_name control=controlfile3.ctl
    sqlldr user/psswd@db_name control=controlfile15.ctl
    2. Then execute the script.

  • Illustrator CS6 Running an Action on Multiple files in a folder

    I'm having trouble getting this to work and was hoping someone could shed some light for me.
    I created a action in Illustrator CS6 (on a PC) which opens PNG files, scales them onto a 8.5 x 11 page, saves them as a PDF into a output folder on my desktop and then closes the page. The action works great and does exactly what I had hoped for.
    Here is my issue:
    I now have a need to do this on multiple files at the same time. Using the Illustrator Help menu, I found out about Batch processing. The tutorial says that a batch can be run on a single file or on a folder of files. Bingo! That's what I want. Problem is, I can't get it to work.
    After setting up the batch with the following settings: (note: I didn't use a destination folder because I have the action saving the pdf into an output folder on the desktop).
    According to the help page, it said to use Override Action "Open" commands which Opens the files from the specified folder and ignores any Open commands recorded as part of the original action. I thought this is what I needed to open all the files in the folder, because when recording my action, I had to use the open command to open a png file. It wouldn't just let me choose a folder. If I don't have the open command in the action, nothing happens.
    My main issue is getting multiple files from within my input folder to open when running the action. The only file that opens is the file that I recorded while creating the action. If I remove that file from the folder, nothing happens at all.
    Please help!
    Thank you,

    I need to create a Action in Illustrator CS6 where i have to open set of files from the desired folder and convert the files to eps format. but i need to save as CS5 version instead of CS6.
    I tried creating the Action it works perfectly except the CS6 to CS5 conversion.
    Is there any way to achive converting to CS5 in Action?
    please help.

  • When I run multiple Microsoft powerpoint files at a time on my MacBook Air, it simply gets hotter and generates little noise (most probably fan noise). Will this make any effect on life span of MBAir??

    When I run multiple Microsoft powerpoint files at a time on my MacBook Air, it simply gets hotter and generates little noise (most probably fan noise). Will this make any effect on life span of MBAir??

    Theoretically, yes.
    Heat, and heat cycling certainly do take a toll on even solid state components. I have several "very old" Macintosh computers, and the logic boards exhibit the effects.
    The fan too, running at higher speeds, does eventually cause wear. More than anything, the higher airflow leads to a higher propensity for dust accumulation on the fan, and the heat exchangers.
    In practical terms though, maybe not so much. If you plan on having your computer exhibit a reasonable useful life before you retire it or upgrade, you may never experience any of the detrimental effects. I rarely use a computer longer than 3 years, before I sell, give it away, or just stop using it.
    Personally, I wouldn't worry about it. Your computer is well designed to give you a long life, even in the manner in which you describe. Take care of it, but use it for what you bought it for. Nothing you mention is in any way, abuse.

  • How to run multiple java files concurrently using command line?

    Hi,
    I have to write a script to run multiple java files and c files concurrently. Say, A and C are java files and B is another binary executable file, I have to make sure they are run in the order A-B-C, then I was trying to run by using
    java A & ./B & java C
    But it turned out that B could run before A started... Is there any way that I can ensure that A runs before B, and B runs before C by using the command line?
    Thanks a lot.

    GKY wrote:
    Sorry, I didn't make my question clear enough...
    A has to give some output files that B needs to get started,Then B can start at any time--even before A--and just wait for those files to be written. For instance, A could write to a temp file, then rename it to the real name. However, if there are multiple files, and they all have to exist, even this won't necessarily work. There are other approaches that will though.
    although writing the output takes very short time,Depends on when the OS decides to give A CPU time, what else is going on on that disk controller and/or network, etc.
    B could still run before A finishes the writing, As it can if you sleep for 1, or 10, or 1,000,000 seconds before starting B.
    if B can't find the info it wants, it fails to move on. That's why I need to make sure A starts before B.No, you need to make sure A's data is there before B tries to use that data.
    Edited by: jverd on Jul 29, 2008 1:06 PM

  • Last run date & time & multiple files handling

    Hi frnds,
    i am working on an outbound interface in which i am retrieving data from custom db table,processing it with other db tables and writing  the final output into a file into the application server and updating the custom db table.
    Now i have an issue here when i am giving plant as input in selection screen (select-options), i should also get those plants from my custom table which have no last run date and time.
    How to get that?
    Next part of my question is for multiple plants entry,multiple files have to created in application server.
    Presently, i have concatenated the file path n name.Do i need to loop the same with s_werks.Will it work
    Also i used an internal table for update data storage.When multiple plants are their how to handle the updation.
    Rgds,
    Simran

    Hi.
    In ur reply i did'nt understood two things
    1) this is how i'm doin the selection
        select lt_run_dt
               lt_run_tm
        into table itab1
        from z_table
        where prog_name EQ sy-repid
        AND   plant IN s_werks
    will it give me plants whose last_run_date and last_run_time are not in the z table?
    2)  If you are going with select-option from parameter, then if you have to write a FILE per PLANT. Then you can loop at plant->extract the data-> write to app server-update z table->end loop
    Does that means:
    loop at s_werks
    open dataset
    transfer
    modify
    endloop
    Kindly clarify to solve this issue.
    Rgds,
    Simran

  • Running Multiple Commands From File

    I am trying to create a file with multiple sql stmts in the editor (just a small buffer file). I am separating the commands with / but this doesn't seem to work. How should I do this? Thanks for reply.

    What is it exactly that "doesn't work"?
    Individual SQL or PL/SQL commands in a file can be terminated (a more precise definition than separated) with a '/'. By default there should be no blank lines in a statement, including prior to the '/'. SQL*Plus commands (e.g. SET, DESCRIBE) do not need a '/' terminator.
    You should be able to run this file in SQL*Plus using the START or '@' command.
    [If you want to put blank lines in a SQL statement, use SET SQLBLANKLINES ON. If you use this interactively and can't seem to get out of the statement continuationprompts to start a new statement, then put a single '.' by itself at the start a newline.]
    - CJ
    null

  • Convert multiple files (word docs) to multiple pdf

    Hi,
    Is there a script I can use in batch processing to convert about 1500 word documents into pdf? I know it's possible to convert multiple files into one pdf, but this is no good to me. Doing these conversions one by one is going to take forever!
    I've tried selecting a few documents at a time and then selecting "convert to pdf" from the right-click menu, but each one requires that you tell it where to save, and then opens the file when it is done.
    I need to convert Word files on a regular basis for work, and could really use a batch process for this with so many to do!
    I have Acrobat 7 Pro (version 7.1.0) on XP Pro SP 2 at work, and Acrobat 8 Pro (Version 8.1.2) on XP Pro SP 3 at home.
    If there is anyway it's possible to do this via a batch process I would really appreciate knowing how!!
    Apologies if this has been covered in another thread, I searched but couldn't find anything.
    Thanks in advance :)

    I have Acrobat 9 Pro. I can batch convert Word docs to PDFs by doing this:
    1. Open Acrobat Pro. Click File > Create PDF > Batch Create Multiple Files...
    2. A window will open prompting you to add files. Click Add Files > Add Files... OR Add Folders... If adding a folder, navigate to it, and click OK to add it to the list. You can also select a bunch of files and drag & drop them into the Add Files window.
    3. Once you have all the files listed that you want to convert, click OK. A new window called Output Options will open. In this window, select your preferred settings. For me, I want all the new PDFs to have the same filename and be in the same folder as the Word docs, so I choose these settings:
    4. Click OK, and then the batch process will begin running. You will see Word opening and closing. However, you won't have to click Save or anything. You can run it unattended. The process takes a little while, so I usually set up a batch to run, then go to lunch. Once finished, you should have all your new PDFs:
    Hope that helps someone!

  • Sending multiple files using one socket

    Hi guys
    I'm working on a simple app that sends multiple files over LAN or I-NET. The problem is that the app run seems to be non-deterministic. I keep getting this error on the client side:
    java.io.UTFDataFormatException: malformed input around byte 5
            at java.io.DataInputStream.readUTF(Unknown Source)
            at java.io.DataInputStream.readUTF(Unknown Source)
            at service.DownloadManager.storeRawStream(DownloadManager.java:116)
            at service.DownloadManager.downloadFiles(DownloadManager.java:47)
            at manager.NetworkTransferClient$1.run(NetworkTransferClient.java:104)The byte position changes every time I run a transfer. The error is caused by this line: String fileName = in.readUTF(); Here's the complete code:
    Client
    private void storeRawStream() {                               
            try {
                FileOutputStream fileOut;                       
                int fileCount = in.readInt();           
                for(int i=0; i<fileCount; i++) { 
                    byte data[] = new byte[BUFFER];
                    String fileName = in.readUTF();               
                    fileOut = new FileOutputStream(new File(upload, fileName)); 
                    long fileLength = in.readLong();                                 
                    for(int j=0; j<fileLength / BUFFER; j++) {
                        int totalCount = 0;
                        while(totalCount < BUFFER) {                       
                            int count = in.read(data, totalCount, BUFFER - totalCount);
                            totalCount += count;                 
                        fileOut.write(data, 0, totalCount);
                        fileOut.flush();
                        bytesRecieved += totalCount;                                  
                    // read the remaining bytes               
                    int count = in.read(data, 0, (int) (fileLength % BUFFER));                                        
                    fileOut.write(data, 0, count);              
                    fileOut.flush();
                    fileOut.close();      
                    transferLog.append("File " + fileName + " recieved successfully.\n");  
            } catch (Exception ex) {
                ex.printStackTrace();
        }Server
    public void sendFiles(File[] files) throws Exception {
            byte data[] = new byte[BUFFER];
            FileInputStream fileInput;                                       
            out.writeInt(files.length);              
            for (int i=0; i<files.length; i++) {   
                // send the file name
                out.writeUTF(files.getName());
    // send the file length
    out.writeLong(files[i].length());
    fileInput = new FileInputStream(files[i]);
    int count;
    while((count = fileInput.read(data, 0, BUFFER)) != -1) {
    out.write(data, 0, count);
    bytesSent += count;
    fileInput.close();
    out.flush();
    Does anybody know where's the problem? Thanx for any reply.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Send the length of each file ahead of each file, with DataOutputStream.writeLong().
    When reading, read that long, then stop reading bytes when you've read exactly that length.

  • Unable to load multiple files to Essbase using MaxL and wildcards

    I have multiple data files to load:
    Files:
    Filename.txt
    Filename_1.txt
    Filename_2.txt
    According to the following link, Essbase is able to load multiple files to BSO databases via MaxL by using wildcards:
    http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?launch.html
    However, when I try to run the following I receive the following error:
    MaxL:
    import database MyApp.DB data from server text data_file "../../MyApp/Filename*.txt" using server rules_file "L_MyRule" on error append to "\\Server\Folder\L_MyRule.err";
    Error:
    ERROR - 1003027 - Unable to open file [DB01/oracleEPM/user_projects/epmsystem2/EssbaseServer/essbaseserver1/app/MyApp/DB/../../Filename*.txt].
    ERROR - 1241101 - Unexpected Essbase error 1003027.
    I can run the following fine without any problem, but this only deals with the first of several files, and I’d rather not hard-code multiple files since the number might vary in the future:
    MaxL:
    import database MyApp.DB data from server text data_file "../../MyApp/Filename.txt" using server rules_file "L_MyRule" on error append to "\\Server\Folder\L_MyRule.err";
    Any ideas? And how about ASO databases?

    JamesD wrote:
    According to the following link, Essbase is able to load multiple files to BSO databases via MaxL by using wildcards:
    http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?launch.html
    That is the tech ref for 11.1.2.2, are you on 11.1.2.2?
    Import Data
    11.1.2.2 - http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?maxl_imp_data.html
    11.1.2.1 - http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref_1112100/frameset.htm?maxl_imp_data.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • 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?

  • Running multiple copies of an App on one NetWeaver server

    Hi there,    (V12 with ERP/ECC transactions)
    We are setting up our landscapes/environments for development, beta testing, final QA and production.  I am wondering if we can combine development and beta testing on the same system. 
    The obvious concern is that they will have copies of the "same" transactions.  If we don't do anything special, the data source name is hard coded in the transaction and as we are on the same MII server, they can't point to different data sources unless we edit the transactions.  Is there a way to have a transaction use a configuration of some sort to dynamically specify the actual data source?
    Are there any other issues attempting to do this?
    Thanks,
    --Amy Smith
    --Haworth

    Thanks Jeremy,
    Thanks for the suggestion Jeremy. 
    Our server is not capable of another instance.  It is not easy to get our SAP Basis people to install and configure a new system and we are not allowed to do it ourselves.  I was trying to find a way to use our existing instance of NetWeaver/MII to run multiple copies of the application.  In J2EE apps I have worked on, it is as simple as copying the software, changing the URL, changing the application config files for the data source and deploying the new duplicate app under a different name.
    Seems that in MII the transaction "hard" links the data source name to the data source definition and that link is not dynamically configurable.  Would that be a fair statement?
    Thanks again,
    --Amy Smith
    --Haworth

  • Multiple file copies just randomly miss a few of the files

    This is something that has happened to me on all networks I've used. My home network (gigabit LAN or 802.11n), work network, and any client network I've ever been on while supporting.
    I can select say 10 files on my MBP in finder. And either copy/paste or just drag to copy onto an SMB share (windows 2003 at home for my windows home server, also 2008 and 2008 R2 servers at work and clients). And the file copy goes fine. I see the progress window, it goes and I see the files populating the network share as it progresses. It runs the normal amount of time I'd expect for the speed of the network, and when it's done I get my sound. Then anywhere from three to nine of the files just disappear off the network share as the copy finishes. So it takes the time to copy them but does not complete.
    And it's not an every time thing. And it ONLY happens with multiple files, i NEVER have a problem doing files singularly. The same files that fail in a batch go fine when I copy them one by one in the same session after it failed doing them all at once.
    No errors on the windows side of things in the logs, disks are fine. Never happens with my MBP when I do it from windows either via VMware or booting directly into boot camp.
    No errors on the mac side, for all intents and purposes it completed successfully. Yet almost every time I do group copies, only a couple actually are on that network share when all is said and done.
    No AV or firewall on the server at the moment so it happens whether I have them enabled or uninstalled. No AV on the MBP.
    And no disconnects, etc. I'm watching things in an RDP session while the copy is happening and I never lose the network, it never drops. Downloads that I sometimes have going on are working just fine, everything is just perfect in every respect as far as networking goes, except for those copying of multiple files.
    Saw someone else had disabled write caching on the windows machine to overcome an actual error they had, and i had tried that in this instance long ago to no avail.
    This has happened since I first bought the laptop in July of '09 and it was running leopard, and has continued through every single version update since. Wired or wireless...
    Thanks for any suggestions.

    hey JDThree, i'm having the SAME EXACT PROBLEM!!! i've tried restarting both my server and my MBP, and it does the job a bit, but it's so random. even doing a single file copy doesn't seem to work. i tried copying over one file, then when it finished and was on the server, i copied the next file, and it removed the first file. so strange. anybody have any ideas?

  • How can I upload multiple files in a master detail relationship?

    I would like to be able to upload several files for one record (a one to many relationship). I tried using a master detail form, but the tabular form does not support file browse. I've searched the forum and found several examples asking how to upload multiple files at once. That is not what I'm trying to do. I simply want the user to browse, select a file, provide a file name and description. Then select the next file. When they are done selecting files (it may be one file or many files) I want them to hit the submit button and I'll run a procedure that saves the files to the database.
    How can I do this? Thanks, you guys are the best. Elizabeth

    Elizabeth,
    I had this situation come up once and here's what I did, thought it may not be exactly what you're looking for.
    I created a collection to store the ID's of the files that had been uploaded, along with the key and other information. The file browse input will upload your files into the wwv_flow_files table on submit. I was storing the documents in another application table.
    The after submit process grabs the id from wwv_flow_files where the name is = to your file input.
    After you add that ID and your associated master key in the collection, your final submit process fetches the files from wwv_flow_files and inserts them into your own table.
    I can put an example on apex.oracle.com if that would be helpful.
    Thanks,
    Jeff

Maybe you are looking for

  • How can I get rid of the slide on add window that's making me crazy?

    I updated to the latest version of Firefox for desktops today and all of a sudden I'm getting this slide in ad window that slides in from the left and I can't get rid of it! If this keeps up I'll have to stop using Firefox because I really hate this!

  • Freeze problem on Lumia 925

    How we switch off phone with non removable battery when it freeze.

  • Email Server

    Starting a few days ago my wife has been unable to connect to the Road Runner email server to access her email. We've tried deleting the account and adding it back with no success. All the account info. is correct and no changes were made to the phon

  • Error: unsupported PDF stacks

    After the recent upgrade, I can no longer load vertical scrolling articles into my droid content viewers.  Even when I built a 1-article jpeg folio I recieve, "This folio contains one or more PDF stacks which are not yet supported in content viewer f

  • Outdoor wireless iphone speaker

    hi, im looking for a rugged, good quality wireless outdoor speaker for my iphone 5, any suggestions?