Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Nohup

  • 04-09-2008 09:52AM
    #1
    Registered Users, Registered Users 2 Posts: 1,231 ✭✭✭


    Guys,

    Quick question for you all....

    I have 3 scripts in a directory that i regularly run with the command nohup. Everything runs fine. The problem is that they all write to nohup.out. It makes it very confusing trying to read the file.

    Is it possible that I can configure it that script 1 writes to nohup.out1 , script2 writes to nohup.out2 etc? It would make things alot easier for me.

    Thanks,
    Steve


Comments

  • Closed Accounts Posts: 12,807 ✭✭✭✭Orion


    nohup uses standard output. So just redirect each script to another file.

    nohup script1 >> output1 &
    nohup script2 >> output2 &
    etc

    [edit]changed commands - you'll want to append not overwrite so use >> not >


  • Registered Users, Registered Users 2 Posts: 1,231 ✭✭✭stereo_steve


    Thanks Macros42 that makes perfect sense!


Advertisement