The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 04-04-2002
peter.herlihy peter.herlihy is offline
Registered User
 

Join Date: Nov 2001
Location: New Zealand
Posts: 333
Not 100% sure what you're asking here...but if It's what I think it is....

Run script 1 like this......

./Script1 Hello

In Script 1 - you have

nohup ./Script2 $1

Then script 2 is the same.

Why you would want 2 scripts here I'm not sure (but thismay just be for the example?)

If this really is your script - then you could just use

nohup ./Script2 Hello

Because all you are doing is running script2 in nohup and passing it the same variable. Up to you! (Not sure what you are actually doing with the variable though?)
__________________
Pete