Automator running a sed command hangs...

I'm attempting to pass a lot of text to a Run Shell Script action. Simply put...
sed 's/= /=/'
Easy right? It should replace all '= ' with '=' to stdin.
For some reason my computer will only run this once. To get past this action I need to restart the computer, reopen Automator and attempt to run the whole workflow again.
I've saved the text to a textedit.rtf and run the sed command from Terminal. It returns results immediately. Again... Automator will only run this once before requiring a restart to get past that action.
I think I've successfully narrowed this down to an Automator problem.
Has anyone seen problems with Automator running shell script actions? If so, what's a good workaround?
Power Mac G4   Mac OS X (10.4.8)  

I've had a similar problem out running shell scripts out of Automator when the automator workflow is saved as an application. The particular script I've been having this problem with runs a bunch of "open /Users/foo/somedocument" commands which work fine if it is run as a workflow in Automator, but hang if the workflow is saved as a application and run by clicking the application icon.
I haven't had time to look into the problem until now, but if I find something I will report back.

Similar Messages

  • Certreq -submit run locally returns successful but run remote via invoke-command hangs

    Good morning I have been struggling with a certificate request script.
    The requesting server is in the dmz and I have a management server internally.
    I successfully create the Inf file, as well as the req file then copy the req file to my internal management server. Once copied internal I attempt to run the following command from my laptop executing as my admin account
    $Fqdn = "server.dmz.com"
    $managementServer = "InternalServer"
    $Path = "C$\Test\CertRequests"
    Invoke-Command -ComputerName $Managementserver -ScriptBlock {param($CertificateAuthority,$FQDN,$Managementserver,$Path) certreq.exe -submit -attrib "CertificateTemplate:DVNOfflineComputer" -config "$CertificateAuthority" "\\$Managementserver\$Path\$FQDN.req" "\\$Managementserver\$Path\$FQDN.crt"} -ArgumentList $CertificateAuthority,$FQDN,$Managementserver,$Path
    This exact command pasted into a powershell window locally on the management server returns the crt file.
    Run via invoke-command just hangs forever. I even tried to the Silent=True in inf file as well as -q but neither worked.
    Any help is greatly appreciated.

    Hi Jason,
    I reform the script as below, and add the "test-path" to check if the .req and .crt files exist, please also note you haven't assign value to the "$CertificateAuthority" variable:
    $Fqdn = "server.dmz.com"
    $managementServer = "InternalServer"
    $Path = "C$\Test\CertRequests"
    $CertificateAuthority = "something"
    $script={
    param($CertificateAuthority,$FQDN,$Managementserver,$Path)
    test-path "\\$Managementserver\$Path\$FQDN.req"
    test-path "\\$Managementserver\$Path\$FQDN.crt"
    certreq.exe -submit -attrib "CertificateTemplate:DVNOfflineComputer" -config $CertificateAuthority "\\$Managementserver\$Path\$FQDN.req" "\\$Managementserver\$Path\$FQDN.crt"
    Invoke-Command -ComputerName $Managementserver -ScriptBlock $script -ArgumentList $CertificateAuthority,$FQDN,$Managementserver,$Path
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • FORMAT command hangs on SOL 10...

    I have V440...when I run the FORMAT command, it just hangs there.
    Here is a metastat cmd output:
    # metastat
    d6: Mirror
    Submirror 0: d16
    State: Needs maintenance
    Submirror 1: d26
    State: Resyncing
    Resync in progress: 20 % done
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 371253834 blocks (177 GB)
    d16: Submirror of d6
    State: Needs maintenance
    Size: 371253834 blocks (177 GB)
    Stripe 0: (interlace: 32 blocks)
    Device Start Block Dbase State Reloc Hot Spare
    c1t0d0s6 0 No Maintenance Yes
    c1t2d0s0 2889 No Okay Yes
    Stripe 1:
    Device Start Block Dbase State Reloc Hot Spare
    c3t8d0s0 10176 No Okay Yes
    Stripe 2:
    Device Start Block Dbase State Reloc Hot Spare
    c3t9d0s0 10176 No Okay Yes
    d26: Submirror of d6
    State: Resyncing
    Size: 371253834 blocks (177 GB)
    Stripe 0: (interlace: 32 blocks)
    Device Start Block Dbase State Reloc Hot Spare
    c1t1d0s6 0 No Okay Yes
    c1t3d0s0 2889 No Maintenance Yes
    Stripe 1:
    Device Start Block Dbase State Reloc Hot Spare
    c3t10d0s0 10176 No Resyncing Yes
    Stripe 2:
    Device Start Block Dbase State Reloc Hot Spare
    c3t11d0s0 10176 No Okay Yes
    d1: Mirror
    Submirror 0: d11
    State: Needs maintenance
    Submirror 1: d21
    State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 8193204 blocks (3.9 GB)
    d11: Submirror of d1
    State: Needs maintenance
    Invoke: metareplace d1 c1t0d0s1 <new device>
    Size: 8193204 blocks (3.9 GB)
    Stripe 0:
    Device Start Block Dbase State Reloc Hot Spare
    c1t0d0s1 0 No Maintenance Yes
    d21: Submirror of d1
    State: Okay
    Size: 8193204 blocks (3.9 GB)
    Stripe 0:
    Device Start Block Dbase State Reloc Hot Spare
    c1t1d0s1 0 No Okay Yes
    d0: Mirror
    Submirror 0: d10
    State: Needs maintenance
    Submirror 1: d20
    State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 20480121 blocks (9.8 GB)
    d10: Submirror of d0
    State: Needs maintenance
    Invoke: metareplace d0 c1t0d0s0 <new device>
    Size: 20480121 blocks (9.8 GB)
    Stripe 0:
    Device Start Block Dbase State Reloc Hot Spare
    c1t0d0s0 0 No Maintenance Yes
    d20: Submirror of d0
    State: Okay
    Size: 20480121 blocks (9.8 GB)
    Stripe 0:
    Device Start Block Dbase State Reloc Hot Spare
    c1t1d0s0 0 No Okay Yes
    Device Relocation Information:
    Device Reloc Device ID
    c1t1d0 Yes id1,sd@SFUJITSU_MAP3367N_SUN36G_00N0244G____
    c1t3d0 Yes id1,sd@SFUJITSU_MAP3367N_SUN36G_00N023GR____
    c3t10d0 Yes id1,sd@THITACHI_HUS103073FL3800_V3WTPTJA
    c3t11d0 Yes id1,sd@THITACHI_HUS103073FL3800_V3WTPL2A
    IOSTAT output:
    # iostat -En
    c1t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: SEAGATE Product: ST336607LSUN36G Revision: 0707 Serial No: 0350AX5NBC
    Size: 36.42GB <36418595328 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 0 Predictive Failure Analysis: 0
    c1t1d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: FUJITSU Product: MAP3367N SUN36G Revision: 0401 Serial No: 0322N0244G
    Size: 36.42GB <36418595328 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 0 Predictive Failure Analysis: 0
    c1t2d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: FUJITSU Product: MAP3367N SUN36G Revision: 0401 Serial No: 0322N023HT
    Size: 36.42GB <36418595328 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 0 Predictive Failure Analysis: 0
    c0t0d0 Soft Errors: 3 Hard Errors: 0 Transport Errors: 0
    Vendor: TOSHIBA Product: DVD-ROM SD-C2612 Revision: 1011 Serial No:
    Size: 0.00GB <0 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 3 Predictive Failure Analysis: 0
    c1t3d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: FUJITSU Product: MAP3367N SUN36G Revision: 0401 Serial No: 0322N023GR
    Size: 36.42GB <36418595328 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 0 Predictive Failure Analysis: 0
    c3t8d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: HITACHI Product: HUS10733ASUN72G Revision: PA05 Serial No: 0649RWT3KB
    Size: 73.40GB <73400057856 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 0 Predictive Failure Analysis: 0
    c3t9d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: HITACHI Product: HUS10733ASUN72G Revision: PA05 Serial No: 0649RWTPGZ
    Size: 73.40GB <73400057856 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 0 Predictive Failure Analysis: 0
    c3t10d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: HITACHI Product: HUS10733ASUN72G Revision: PA05 Serial No: 0649RWTPTJ
    Size: 73.40GB <73400057856 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 0 Predictive Failure Analysis: 0
    c3t11d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: HITACHI Product: HUS10733ASUN72G Revision: PA05 Serial No: 0649RWTPL2
    Size: 73.40GB <73400057856 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 0 Predictive Failure Analysis: 0
    any ideas?
    thanks

    Dmesg does not reveal any hard disk issues....
    Here is the METADB ouput:
    # metadb -i
    flags first blk block count
    a m p luo 16 8192 /dev/dsk/c1t1d0s7
    a p luo 8208 8192 /dev/dsk/c1t1d0s7
    a p luo 16400 8192 /dev/dsk/c1t1d0s7
    a p luo 16 8192 /dev/dsk/c1t2d0s7
    a p luo 8208 8192 /dev/dsk/c1t2d0s7
    a p luo 16400 8192 /dev/dsk/c1t2d0s7
    a p luo 16 8192 /dev/dsk/c1t3d0s7
    a p luo 8208 8192 /dev/dsk/c1t3d0s7
    a p luo 16400 8192 /dev/dsk/c1t3d0s7
    a p luo 16 8192 /dev/dsk/c3t8d0s7
    a p luo 8208 8192 /dev/dsk/c3t8d0s7
    a p luo 16400 8192 /dev/dsk/c3t8d0s7
    a p luo 16 8192 /dev/dsk/c3t9d0s7
    a p luo 8208 8192 /dev/dsk/c3t9d0s7
    a p luo 16400 8192 /dev/dsk/c3t9d0s7
    a p luo 16 8192 /dev/dsk/c3t10d0s7
    a p luo 8208 8192 /dev/dsk/c3t10d0s7
    a p luo 16400 8192 /dev/dsk/c3t10d0s7
    a p luo 16 8192 /dev/dsk/c3t11d0s7
    a p luo 8208 8192 /dev/dsk/c3t11d0s7
    a p luo 16400 8192 /dev/dsk/c3t11d0s7
    r - replica does not have device relocation information
    o - replica active prior to last mddb configuration change
    u - replica is up to date
    l - locator for this replica was read successfully
    c - replica's location was in /etc/lvm/mddb.cf
    p - replica's location was patched in kernel
    m - replica is master, this is replica selected as input

  • Copy command hangs

    Hello All,
    I'm having problems copying data between
    oracle 8.1.6.1 dbs, both running on Red
    Hat 6.2.
    I'm using syntax like
    copy from username/password@server -
    insert applications -
    using select * from applications
    This works fine when copying between
    oracle 8.1.6.2 dbs running on solaris,
    but on linux the command hangs and
    starts sucking up CPU.
    Thanks in advance,
    Asif.

    thx Kaj for your quick and helpful reply...
    now i just use xcopy with /Q to not display so much information!!
    but what's the good way to read both stdout and stderr at the same time and store them as useful informations!?
    thx again : )

  • 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

  • Format Command Hangs

    Hi,
    Other day, a guy was running the format command in SunOS 5.8 and he killed the process to end it. Now whenever you try to run format again, it hangs with the message "Searching for disk...". Does anyone know how to fix this problem? Is there a lock file somewhere that I can delete?
    The system has 2 internal drives configured and a disk array connected to it that is not configured or partitioned.
    Thanks

    Check /var/adm/messages* for odd hardware errors, perhaps you could try and run devfsadm -C to clear out any devices that isn't there..
    You could also try and truss the format process to determine where it hangs.
    .7/M.

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

  • How to Run Operating System Command Before/After Message Processing SAP PI

    Hi,
    We are trying to execute multiple commands via "Operating System Command Before/After Message Processing".
    When we use single command say for example cp or mv (copy or move) the commands get executed fine.
    eg: cp %F /var/opt/data/outbound/Test/Dummy.txt 
    /this works fine/
    when we club commands together or try to redirect the outputs of commands, none of the commands get executed.
    eg:
    cp %F /var/opt/data/outbound/Test/Dummy.txt ; rm %F
    or
    wc -l %F > /var/opt/data/outbound/Test/Dummy.txt
    Is it possible to execute multiple commands or redirect the output  of commands without using a shell script? The PI server we are working on iis hosted on UNIX environment.

    Hi Harleen,
    try like this
    cp %F /var/opt/data/outbound/Test/Dummy.txt ; rm %F
    instead of semicolon try this
    (1) &
    command1 & command2
    Execute Command1 and then execute Command2
    (2) &&
    command1 && command2
    Runs the command2 only when command1 doesn't Complete successfully
    (3) ||
    command1 || command2
    Runs the second command if the first command had an error
    (4) ()
    (command1 || command2) || (command3 & command4)
    Defines the order in which commands are to be executed
    Regards
    Suraj

  • How do I run a unix command to quit ARD if it is running on a remote server I am trying to access?

    how do I run a unix command to quit ARD if it is running on a remote server I am trying to access?

    killall "Remote Desktop"
    Regards.

  • Can Automator run a workflow on many folders, one at a time?

    Hello,
    In a parent folder, I have a bunch of subfolders with image files (BMP, JPG or PNG).
    I want each of these subfolders to become a PDF combining the original image files.
    I also want the resulting PDFs to be named as the original subfolder.
    Is there a way to do it with Automator, or do I have to dive into Applescript (I am totally new to both)?
    In Automator, the following 3-step workflow does almost what I want:
    #1 - Ask for Finder Items (I provide the parent folder)
    #2 - Get folder contents
    #3 - New PDF from images
    However, I get only one huge PDF combining the contents of all subfolders (I need one PDF per subfolder) and I must give for step #3 a specific file name (I need the filename to be that of the containing folder).
    Am I on the right path? I tried using the 'Loop' action and the 'Path' variable but I didn't progress.
    More generally, can Automator run a workflow on a bunch of folders one folder at a time, or is that a job for Applescript?
    Thank you very much for you help.
    W.

    Unfortunately, the text field in the *New PDF from Images* action doesn't support variables, and the *Rename Finder Items* action doesn't either (I wish Apple would get on the stick with updating their actions). There is this macosxhints article about hacking the workflow plist, but that doesn't always work.
    I have a couple of actions that could be used - the Get Names of Finder Items action can be used to get the folder name (to put into a variable), and the Change Name of Finder Items action does accept variables to change the name.

  • Issue with running scenario from command line-RESOLVED

    I have made appropriate changes in the odiparams.bat file and am trying to run the startscen command from the bin directory of the ODI installation on windows XP Pro SP2
    startscen DPRI_SEC_PKG_POP_PRI_SEC_TBLS 001 GLOBAL "-v=2"
    set ODI_SECU_DRIVER=oracle.jdbc.driver.OracleDriver
    set ODI_SECU_URL=jdbc:oracle:thin:@pridb-test-1:1521:PRISBOX
    set ODI_SECU_USER=PRI_MST_TST
    set ODI_SECU_ENCODED_PASS=b1ya.1dDo.cclkh.IVhi5Ovp
    set ODI_SECU_WORK_REP=PRI_WRK_TST
    set ODI_USER=SUPERVISOR
    set ODI_ENCODED_PASS=a7yXIxOwQ4avmSJZia4,79QAp
    Below is the error I get:
    OracleDI: Starting scenario DPRI_SEC_PKG_POP_PRI_SEC_TBLS 001 in context GLOBAL
    com.sunopsis.sql.c: oracle.jdbc.driver.OracleDriver
    at com.sunopsis.sql.SnpsConnection.a(SnpsConnection.java)
    at com.sunopsis.sql.SnpsConnection.connect(SnpsConnection.java)
    at com.sunopsis.dwg.cmd.e.h(e.java)
    at com.sunopsis.dwg.cmd.e.g(e.java)
    at com.sunopsis.dwg.cmd.e.y(e.java)
    at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java)
    at com.sunopsis.dwg.DwgJv.main(DwgJv.java)
    at oracle.odi.Agent.main(Agent.java)
    DwgJv.main: Exit. Return code:-1
    Please suggest where I might be going wrong? I've made sure that the repository connections as correct. It is not really telling what is wrong or maybe I don't understand the error message.
    Edited by: user10184763 on Sep 26, 2008 10:50 AM
    ALRIGHT....I picked up the original backed up odiparams.bat file and entered all the information one more time and then it worked...I dont know waht happened..but it worked!! Thanks people!
    Edited by: zebango on Oct 14, 2008 10:39 AM

    Still getting the same error. Work repository name is correct. Passwords freshly encoded. The thing is everytime I run the command agent encode &lt;password&gt; it gives me a new encoded password. Is tht expected behavior??
    bq. C:\Program Files\Oracle\oracledi\oracledi\bin&gt;startscen DPRI_SEC_PKG_POP_PRI_SEC \\ TBLS 001 GLOBAL "-v=2" \\ OracleDI: Starting scenario DPRISEC_PKG_POP_PRI_SEC_TBLS 001 in context GLOBAL \\ ... \\ com.sunopsis.sql.c: sun.jdbc.odbc.JdbcOdbcDriver \\ at com.sunopsis.sql.SnpsConnection.a(SnpsConnection.java) \\ at com.sunopsis.sql.SnpsConnection.connect(SnpsConnection.java) \\ at com.sunopsis.dwg.cmd.e.h(e.java) \\ at com.sunopsis.dwg.cmd.e.g(e.java) \\ at com.sunopsis.dwg.cmd.e.y(e.java) \\ at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java) \\ at com.sunopsis.dwg.DwgJv.main(DwgJv.java) \\ at oracle.odi.Agent.main(Agent.java) \\ DwgJv.main: Exit. Return code:-1
    My ODI params.bat for reference. again this Windows XP Prof2
    bq. set ODI_SECU_DRIVER=sun.jdbc.odbc.JdbcOdbcDriver \\ set ODI_SECU_URL=jdbc:oracle:thin:@pridb-test-1:1521:PRISBOX \\ set ODI_SECU_USER=PRI_MST_TST \\ set ODI_SECU_ENCODED_PASS=b1yaZszHYl5dvTmffPVqRhkp \\ set ODI_SECU_WORK_REP=PRI_WRK_TST \\ set ODI_USER=SUPERVISOR \\ set ODI_ENCODED_PASS=a7yXTDTi0KW4pefy2MPpHSuDy
    Any suggestions?

  • File Receiver Adapter:Run Operating System COmmand after message Processig:

    Dear All,
    I have gone through this link
    [http://help.sap.com/saphelp_nw2004s/helpdata/EN/e3/94007075cae04f930cc4c034e411e1/content.htm]
    But i have a problem.
    In the scenario which we have, File name is DYNAMICALLY GENERATED by a UDF
    I want to call the file at run time after message processing via Command Line and execute some os commands.
    But since the file name is Dynamic....How will i call the file at run time in Command Line:
    SYNTAX: %f(FileName)
    How will i specify the file name in the above syntax as the file name is Dynamic and not constatnt.
    Please Advice.
    Senthilprakash.

    Dear All,
    Yes just now i got the answer from this thread[OS command line script - Need help;
    Actually i have another doubt now
    In REVEIVER FILE ADAPTER:
    when we give Run Operating system Command After Message processing
    does the OS command get executed after the output file is placed in the Receiver folder/server or before its placed in the receiver folder?
    Regards,
    Senthilprakash.

  • Run operating system command for sender File adpter (NFS)

    Hi All,
    iam doing a file to RFC scenario, using 'Run operating system command' in sender file adapter to change the file name while archiving (after processing completed).
    I mention OS command like this:
    sample_server\scripts\Test\Rename.bat"
    Rename.bat file calls a 'perl script' code.
    when i run interface, could see below statement in adapter log ->
    "Execute OS command "
    sample_server\scripts\Test\Rename.bat"
    but the script was not run and file name was not changed.
    Please advice what could be the problem?
    Does this mean script executed successfully?
    Do i need install perl software on XI server, even perl script (.bat file) is executing on sample_server?
    Thanks in advance..
    Regards,
    Rajesh

    Hi,
    Just check the following URL and give it a try again :-
    Executing Unix shell script using Operating System Command in XI
    Hope this info Helps..
    Regards,
    Aditya

  • RUN OPERATING SYSTEM COMMAND BEFORE MESSAGE PROCESSING

    hi.
    just i want to know what is the purpose of run operating system command before message processing,after message processing under file sender adapter.
    waiting for your great answer.
    bye.
    regards.
    seeta ram.

    Hello Seeta,
    let me see if I give it using a simple scenario that I implamented : i nedd to transfer a very large file from one server to the other by XI.
    to save space and network traffic I use an OS command before picking up the file to run a zip command to zip the file.
    after I transfer the file to the target server I run another OS command after the transfer to unzip the file.
    now to your second question:
    the before Os command on the target server is used mostly for checks (make sure there isn't a file by that name or backing up existing data)
    and the after sender OS command is usualy for backing up or erasing existing files (cause it is done only after the first part was finished succesfully).
    Uri Lifshitz.
    p.s.
    there was a blog obout this titled "XI as a huge file mover"
    and you can see a description and my scripts at https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/03/additionaltipsforusingXIasahugefiletransfer%28withbatchscripts%29&

  • How can I run Runtime.exec command in Java To invoke several other javas?

    Dear Friends:
    I met a problem when I want to use a Java program to run other java processes by Runtime.exec command,
    How can I run Runtime.exec command in Java To invoke several other java processes??
    see code below,
    I want to use HelloHappyCall to call both HappyHoliday.java and HellowWorld.java,
    [1]. main program,
    package abc;
    import java.util.*;
    import java.io.*;
    class HelloHappyCall
         public static void main(String[] args){
              try
                   Runtime.getRuntime().exec("java  -version");
                   Runtime.getRuntime().exec("cmd /c java  HelloWorld "); // here start will create a new process..
                   System.out.println("Never mind abt the bach file execution...");
              catch(Exception ex)
                   System.out.println("Exception occured: " + ex);
    } [2]. sub 1 program
    package abc;
    import java.util.*;
    import java.io.*;
    class HelloWorld
         public static void main(String[] args){
         System.out.println("Hellow World");
    } [3]. Sub 2 program:
    package abc;
    import java.util.*;
    import java.io.*;
    class HappyHoliday
         public static void main(String[] args){
         System.out.println("Happy Holiday!!");
    } When I run, I got following:
    Never mind abt the bach file execution...
    I cannot see both Java version and Hellow World print, what is wrong??
    I use eclipse3.2
    Thanks a lot..

    sunnymanman wrote:
    Thanks,
    But How can I see both programs printout
    "Happy Holiday"
    and
    "Hello World"
    ??First of all, you're not even calling the Happy Holiday one. If you want it to do something, you have to invoke it.
    And by the way, in your comments, you mention that in one case, a new process is created. Actually, new processes are created each time you call Runtime.exec.
    Anyway, if you want the output from the processes, you read it using getInputStream from the Process class. In fact, you really should read that stream anyway (read that URL I sent you to find out why).
    If you want to print that output to the screen, then do so as you'd print anything to the screen.
    in notepad HelloWorld.java, I can see it is opened,
    but in Java, not.I have no idea what you're saying here. It's not relevant whether a source code file is opened in Notepad, when running a program.

Maybe you are looking for

  • Crystal report / adobe error

    hi there, i developed a web application using asp.net4.0, VS 2010 and crystal report for VS2010. everything working fine in development machine as well as local server machine. but the same failed in production and it gave the error message as "the f

  • Remove All from Page Item

    Hi! I 've a report that does't make sense to use a date with All in the Page Item. Can anybody tell me how can I remove <All> from the page item. Thanks a lot, Leila

  • Addiing Resources(Database/LDAP) to Sun IDM through SPML

    Hi, Can anyone tell me how to add resources(database/LDAP etc.) to Sun Identity Manager using SPML/web services?

  • Again and again and again and again

    This thread is to everyone who is thinking of starting a new 2.2 rabble rabble rabble thread..... PLEASE STOP! There are ample threads where you all can go and complain about how you were duped by VZW, Samsung, or God himself. I am new to Verizon and

  • TS1398 My email (hotmail) is frozen.   I cannot send the email I just finished typing.

    My email (hotmail) is frozen.   I cannot send the email I just finished typing.   I have turned my iPad off, I finished a sync and powered wi-fi off and on.  Nothing seems to work.  Any suggestions?