10 Replies Latest reply on Mar 17, 2014 1:28 PM by Bill Robinson

    Adding nohup & to command causes script to fail

    Joe Piotrowski

      I have a customer who runs a linux script, it gathers information and writes to a file in STAGING_DIR. The script then takes that information and generates an output file in /tmp.


      Everything runs fine if he simply runs the script. But because this script runs against 10,000+ servers he wants to run the script with a no hangup command as a background process using nohup and &.


      But when we do that, the first output into STAGING_DIR gets created, but the second output file never gets created in /tmp. I know this is a little vague, but does anyone have an idea as to why this would happen? Or a good way to troubleshoot this?