How to run multiple DOS commands from a single Webutil Client_Host session?

Hello all,
I have a requirement where I need to create an interface with SVN from Forms for basic checkin-checkout of files.
So, I've been trying to use webutil client_host to open a command line session and issue svn commands.
For svn, sometimes I need to give multiple commands like change to a particular directory and then run an svn command.
But client_host takes in only one command at a time and I'm unable to issue a series of DOS commands to perform
a particular task.
Is there a way to do this?
Pls suggest.
Regards,
Sam

First your original question... You can put more than one DOS command on a single line, simply separate each command with an ampersand (&). For example:
mkdir c:\abc & cd abc & dir*
Regarding your concerns about performance, well that would depend on exactly what you mean. Using CLIENT_HOST (or HOST on the server) simply opens a shell (DOS in this case) then passes your command to it. The performance of performing this action really isn't measurable. Basically you are just pressing a button and you should get a near immediate action. As for the performance of executing each command, that has nothing to do with Forms. Once the command is passed to the shell, the rest is a function of the shell and whatever command you passed.
Having said that, if you were to write something sloppy like a loop (in pl/sql) which called CLIENT_HOST lots of times repeatedly, then yes there would be a performance problem because the pushing of the button will cause an exchange to and from the server and each cycle in the loop will do the same.
So the answer to how performance is impacted will depend on what exactly you need to accomplish. If it is a single call to CLIENT_HOST, this should be fine.

Similar Messages

  • How to run a DOS command from an Oracle form.

    How can I run a DOS command from an Oracle form (i.e. open the calculator located at c:\windows\system32\calc.exe)?

    first of all get the environment variable for the c:\windows\system32 direcotry for any of the windows
    you can use get variable from the ora env package
    now cancat the system32 variable with the calc.exe string
    now pass the string with host command as parameters
    this process will work for all type of windows.

  • How to run a openssl command from a java program

    Hi All
    Please suggest on how to run a openssl command from a java program.
    I am using this
    Runtime runtime = Runtime.getRuntime();
    runtime.exec("openssl pkcs8 -inform der -nocrypt test.der result.pem");
    This is suppose to take test.der as input and create result.pem.
    There are no errors but the file result.pem isnt created.
    Thanks in Advance

    First off is that openssl command correct? Should it be this instead:
    openssl pkcs8 -inform der -nocrypt -in test.der -out result.pem
    Try out your openssl command within a command prompt so that you know that it works ok. I think the command line you specified waits on stdin (well it does for me).
    After that.....
    runtime.exec creates a Process object. If you do this:
    Process openssl = runtime.exec("....")
    then you can examine the return code from openssl to see the exit code - for instance if the input file does not exist then exit = 1. You can test for this with Java
    Alternatively you could get the stderr from the process and look inside it - if it is 0 length then all is good, if it has some text in there then it has likely failed. You could then throw an exception and include the stderr output in the exception messgae. You may need to experiment with this, runnig it first when openssl is happy then running it again when openssl is upset.
    M

  • How can I run a dos command from java on windows 98, 95?

    The usage of cmd.exe in the java program to run a dos command on windows 98. 95 doesn't work as the equivalent command is command.exe
    But using the command.exe in the java program makes my program to hang.

    hi,
    As u mentioned, u cannot use the cmd.exe in win9x environment as cmd.exe is specific to windows NT, you can use the command.exe without any hitches.
    for eg
    java.lang.Runtime.getRuntime().exec("start command /K a.bat"); should run the batch file a.bat..
    if the problem persists, try posting the snippet of code that you are using.
    cheerz
    ynkrish

  • Run multiple unix commands from ODI procedure

    I want to run a series of unix commands from ODI procedure. I dont want to use Unix shell scripts. (I know that works).I am just trying to place the contents of the shell scripts in ODI procedure with Operating system as technology. But I am unable to execute the proecedure.
    For example below is a very small 3 line commands I would execute
    filename="/var/test.txt"
    ls -l $filename > /var/anotherfile.txt
    chmod 777 $filename
    I am not sure if there is any specific syntax that I have to follow for executing unix commands. Also I dont want to write a Jython and use os.system command as well.
    Appreciate any help on this

    First your original question... You can put more than one DOS command on a single line, simply separate each command with an ampersand (&). For example:
    mkdir c:\abc & cd abc & dir*
    Regarding your concerns about performance, well that would depend on exactly what you mean. Using CLIENT_HOST (or HOST on the server) simply opens a shell (DOS in this case) then passes your command to it. The performance of performing this action really isn't measurable. Basically you are just pressing a button and you should get a near immediate action. As for the performance of executing each command, that has nothing to do with Forms. Once the command is passed to the shell, the rest is a function of the shell and whatever command you passed.
    Having said that, if you were to write something sloppy like a loop (in pl/sql) which called CLIENT_HOST lots of times repeatedly, then yes there would be a performance problem because the pushing of the button will cause an exchange to and from the server and each cycle in the loop will do the same.
    So the answer to how performance is impacted will depend on what exactly you need to accomplish. If it is a single call to CLIENT_HOST, this should be fine.

  • How to run a Dos batch from SSIS based on SQL table content

    Hi,
    I have a very simple package with an execute sql task. This task checks if a certain record is present in the DWH or not. This record is always a row in a table where the task checks if the time of the latest data import equals today's date. I would like
    to extend tis package so that if that record exists,so the latest data imoprt was succesfull in the DWH then package runs a .BAT file from the file system, if the reocrd is not present do nothing.
    Is there a TSQL command to run a .BAT file from my file system? I did  not really find my answers on the net so any help is appreciated
    Thanks

    Hi Vaibhav,
    Thanks, but variable still does not want to pick up the value from the SQL query.
     I changed the SQL statement (it counts how many values with 4 days lag are in the FTDA column):
    and changed the Result set:
    Created a variable:
    Set precedence constraint:
    and still the variable takes value 0,which is the default.
    Any ideas?
    Thanks
    Check if mapping is proper and datatypes of resultset vs variable is same.
    Then it will work fine
    You can also put a breakpoint on post execute of execute sql task and check the variable value once it reaches there.
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to run a HOST command from Report 2.5

    Hello everybody,
    I want to pass an unix command from a Report. I am running the report (Report 2.5) on an Unix server and I want to pass a unix host command inside the Before Report Trigger of the report. But Report2.5 is not recognising the HOST built-in. Is there is any way around?
    Thank in advance.
    Samujjwal Basu

    First off is that openssl command correct? Should it be this instead:
    openssl pkcs8 -inform der -nocrypt -in test.der -out result.pem
    Try out your openssl command within a command prompt so that you know that it works ok. I think the command line you specified waits on stdin (well it does for me).
    After that.....
    runtime.exec creates a Process object. If you do this:
    Process openssl = runtime.exec("....")
    then you can examine the return code from openssl to see the exit code - for instance if the input file does not exist then exit = 1. You can test for this with Java
    Alternatively you could get the stderr from the process and look inside it - if it is 0 length then all is good, if it has some text in there then it has likely failed. You could then throw an exception and include the stderr output in the exception messgae. You may need to experiment with this, runnig it first when openssl is happy then running it again when openssl is upset.
    M

  • How to run O/S command from SQL * Plus.

    Hi,
    Can i run O/S commands, say copy or move, from SQL * Plus prompt? If yes, what is the command.
    Thanks.

    hi,
    or you can try the following
    slq > !
    and then your command
    rgds
    Alan

  • Running a dos command from a java application

    hello,
    I'm trying to execute a batch file from a java application. I tried with:
    try
    Process proc=Runtime.getRuntime().exec("fop -fo "+iXmlFoFile+" -
    svg "+SvgFileName);
    }catch (IOException e){System.err.println("Error in conversion of
                               the Xml FO file into Svg file: "+e);}
    and with:
    try
    Process proc=Runtime.getRuntime().exec("cmd ./c fop
    -fo "+iXmlFoFile+" -svg "+SvgFileName);
    }catch (IOException e){System.err.println("Error in conversion of
                the Xml FO file into Svg file: "+e);}
    but i have a IOException: CreateProcess: .... error=2
    When I try these line to launch a .exe file it works but not with a .bat file.
    I also tried:
    String execstr = "fop -fo "+iXmlFoFile+" -svg "+SvgFileName;
    String [] commandArray = { execstr };
    try {
    Runtime.getRuntime().exec(commandArray);
    } // end try
    catch ( Exception e ) {
    System.out.println( e.getMessage() );
    e.printStackTrace();
    }// end catch
    but i got the same exception in java.lang.Win32Process.create
    What did i do wrong?

    Your execution string is a bit more that I want to figure out, but here are a couple ideas:
    Is the working directory of any importance? If so you'll need to set that when you do your exec()
    I think I remember reading something about batch files that couldn't be kicked off via this method. Perhaps you need to execute the string "start mybatchfile.bat". Seems like you need to do something like that to get a command interpreter to run your batch file.

  • Running multiple java commands from a script

    Hi, I am running Cygwin on windows XP professional.
    I keep recompiling some files with javac as I change them very often. To save some time, I made a script "tout.txt" including the three following commands :
    javac JpanColl.java
    javac AppliTest.java
    java AppliTest
    There is no problem with the java command that launches a JFrame but it launches the old version since the two java commands don't compute.
    This is the message I get :
    javac Invalid flag: Jpancoll.java
    etc.
    Thanks

    You guys didnt play enough Highlights for Kids covers
    as a kid, lol.
    javac JpanColl.java
    javac Invalid flag: Jpancoll.java
    all things java are cAsE sEnSiTiVe.Yes thanks for the input. I did note the incorrect name, however, Windows doesn't actually care, it matters at runtime but not compile time. Also invalid flag is not the type of error message one would see with that sort of error anyway.
    Bottom line: nice guess but you're wrong.

  • How to run Unix Host commands from Database Triggers?

    Hi
    I need to create few directories in the Unix O/s under a specific directory (From a Database Trigger). And the directory names will be determined in the DB Trigger based on the data.
    I hope someone would have come across a requirement like this and will be able to help me out.
    Thanks.
    Mohan

    Hi Christopher
    How is it possible to use System calls from Triggers. Is it possible to use Runtime Libraries in DB Triggers.
    Thanks
    Mohan
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Christopher Racicot ([email protected]):
    Try using the system calls available in
    the C runtime library by calling an external
    C procedure from the trigger. We will be
    enhancing the support in UTL_FILE to address
    issues like this in an upcoming release,
    but for now an external procedure should
    do the trick.<HR></BLOCKQUOTE>
    null

  • How To Send Multiple Spool Lists  from a Single Step in SM37

    We have converted all of our output reports to ALV and now instead of one big spool that contains all the reports generated in a single step we now have multiple spools.  We run the program as a Batch Job in SM37 and have created an entry in the SPOOL LIST RECIPIENT for the job.  The problem is that it only sends one of our lists.  Is there a way to make it send all of the ists?

    You need to write areport program with fm 'RSPO_RETURN_ABAP_SPOOLJOB'  and collect all spools and send it and make this as precedent job after your ALV spool jobs

  • How to create multiple WIP jobs from a single Sales Order Line

    Hi all,
    I want to know if there's a standard way to create multiple single unit wip jobs from a sales order line which has 2 or more units, i mean...
    I have a sales order line with item A with 3 units. If I progress the sales order, a single job is automatically created in WIP with 3 units to be created. What i want is to create 3 jobs with one unit each, all of them linked to the sales line order...
    Thanks in advance!
    Regards!

    Assuming simplest of scenarios....
    In case of changes to Sales order qty, an unplanned order will simply disappear.
    If a wip job has already been created, you will get a cancel message (in case the job is not needed) or a reschedule out message (if the quantity needs to be reduced).
    ASCP will give you a reschedule in /out message if the dates change.
    Sandeep Gandhi

  • How to expande multiple table row from a single button

    I am trying to create an expanding table that expands multiple rows when a single button is clicked.
    So far I have managed to create a table that expands a single row at a time using -
    click
    this.parent.parent.instanceManager.insertInstance();
    I also tried using the following code from an existing woking file that adds a column when a button is clicked -   
    Table1.HeaderRow._Col3SF.addInstance(0);
    Table1.Row1._Col3SF.addInstance(0);
    Table1.Row2._Col3SF.addInstance(0);
    Table1.Row3._Col3SF.addInstance(0);
    I adapted the code to suite my own file -
    click 
    form1.Sub1.Sub3.Table1.Row1.addInstance(0);
    form1.Sub1.Sub3.Table1.Row2.addInstance(0);
    form1.Sub1.Sub3.Table1.Row3.addInstance(0);
    form1.Sub1.Sub3.Table1.Row4.addInstance(0);
    form1.Sub1.Sub3.Table1.Row5.addInstance(0);
    However I receive the following error -
    click Invalid property get operation; subform doesn't have property 'addInstance'
    Regards Maxwell

    I managed to acheive what I needed to do using LCD's Action Builder.
    The Action builder makes it so easy to create advanced content.
    I selected my button obect for the list, then chose - create add a new instance,
    then chose my table from the list.
    I now have a table with multiple rows that expand when a single button is clicked, fantastic!
    Regards Maxwell

  • Multiple DOS-commands

    Hi, is it possible to execute multiple DOS commands from a java program?
    e.g. copy file1 file2
    program.exe
    copy file2 file1
    But the second copy-command may only be executed after the program.exe has finished. Please help me out on this.
    Roel

    And how would I enter the multiple commands? Cause now I use the Runtime.exec() function 3 times but then it also opens 3 DOS-boxes. And that's what I wanna avoid.
    Roel

Maybe you are looking for

  • Microsoft Service Pack 2 - not all versions are equal; how to update to the latest one "safe

    I posted this under another topic where it was relevant, but thought the instructions I got from Microsoft were useful (as was my experience in using them as I sent back a reply to them with the problems I encountered [none of which were particularly

  • Can i move my itunes library to a sdhc card

    i am trying to use my pcmcia card in my mercedes, i cannot download my songs from itunes, anyone know how?

  • In album view automatically display current song

    itunes 11.0.5.5 in album view as songs are shuffled,  is there a way you can configure so that as the next song is played, the album view is updated to display the current song being played? right now, it does not update at it moves to play the next

  • 91 Database - When to Backup Archive Logs?

    hi experts, I have a 9i db that runs in Archive mode. NOT using the catalog. A full database backup is made by RMAN at 7am while database is OPEN. An incremental backup are made every 3 hours. For RMAN to be able to perform a complete recovery, when

  • Where has my login keychain gone?

    I opened Mail this morning to find that all my accounts were asking for my password. I thought this was a bit strange but I typed them in again anyway and checked the remember in keychain box. It did this with no complaints but when I checked in my k