Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

accessing variables from one script to another 1

Status
Not open for further replies.

zyrag

IS-IT--Management
Dec 4, 2002
252
PH
hi, i have a a parent script which declares a var SET_NO. The parent script has child scripts on it and i want to use $SET_NO on the child scripts. How will i achieve this? And, how do i pass values from one script to another?

thanks,
 
Try exporting the variable. This can be done two ways that I know of:

1) SET_NO=value
export SET_NO

2) export SET_NO=value

then call the child script and it should be able to "access" the variable.
 
thanks BobMFDC, you got a star.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top