Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 12 of 12
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    CA, but from N.Ireland

    I thought the syntax to forward both stdout and stderr was
    application-name &> logfile.txt
    Is this wrong?

    I think my version will work with bash, but perhaps I'm mistaken.
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  2. #12
    Quote Originally Posted by i92guboj View Post
    Try to redirect both stdout and stderr:

    progname >/var/log/logfile.txt 2>&1
    That should put everything that the program spits out to the console into logfile.txt

    Then you can open ssh like this:

    ssh user@server 'tail -f /var/log/logfile.txt'
    If the program is going to run in X in graphical mode or something then you will need vpn or something like that, I guess. It all depends on what exactly do you need.
    WOW thats the sucker!! You guys are awesome!

    Also that SSH tip is a big key to me finishing this project!

    Big thank you to you both Smolly and i92guboj.

Posting Permissions

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