Running Java file and capturing output

Discussion in 'Perl Misc' started by marie, Feb 21, 2007.

  1. marie

    marie Guest

    Hi,

    I need to call a Java class and capture the output it generates and
    send it to a file.
    I tried using the system command:

    system("/usr/local/bin/java, </var/log/MyJavaClass', &> /var/tmp/
    history.html");

    However i get the following error:
    sh: /var/log/MyJavaClass, &> /var/tmp/history.html: cannot open

    Does anyone know what I am doing wrong?

    I am running this script from Unix,

    Marie
    marie, Feb 21, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rick Strahl [MVP]

    Capturing ASPX output from another page

    Rick Strahl [MVP], Jul 9, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    469
    Steve C. Orr, MCSD
    Jul 9, 2003
  2. Hoegje
    Replies:
    2
    Views:
    22,513
    Gianni Mariani
    Dec 5, 2003
  3. Eric
    Replies:
    3
    Views:
    612
  4. Kyle Schmitt
    Replies:
    9
    Views:
    136
    Pablo Q.
    Aug 6, 2008
  5. Replies:
    1
    Views:
    133
    Brian McCauley
    Jul 2, 2005
Loading...

Share This Page