Best way to run a script???
Hello,
I'm writing a shell script and was wondering what the best way to have the script execute another script would be. The basics are:
Script1 would ask user for a 3 digit number. Let's say variable=250.
Script1 would then ask if 250 is really the number inputted, else it would exit.
Script1 would then kick off Script2, and exit to command line while Script2 continues to run in the background.
I know I can run nohup ./Script2 & and the output would go to nohup.out, but I want it to output to a different file (something like Log_$variable.out).
Is there a better way to do this? Can I have define where nohup sends output, instead of nohup.out?
Any help is appreciated.
Thanks,
Jared
|