Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all, I'm a newbie to Shell script. Currently i have a java application. I'm running that java application using a shell script. I need to print the System.out.println() statements ...
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Posts
    1

    Maintain the log

    Hi all,

    I'm a newbie to Shell script.
    Currently i have a java application.
    I'm running that java application using a shell script.
    I need to print the System.out.println() statements in a file while i running the shell script.
    Can anyone help on this.
    Thanks in advance

    Regards,
    Ajay

  2. #2
    Linux Newbie
    Join Date
    Jul 2008
    Posts
    181
    Use output redirection, e.g.:

    Code:
    bash myscript > mylogfile

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...