I need help pulling in temporary environment variables from one script to another. I thought I could use the cut command, but it's not working properly. The intent was to create the ctlclient script once without having to dupliate the information into the ctl script. When ever I kicked off "ctl" script, I would like the variables from 'ctlclient" pulled in until the script has completed. The variables may not be in the same order for every file.
Example:
File: ctl - located on /j1/j12345
JOBNO=
CLIENT=
PROJECT=
Other variables ...
File: ctlclient - located on /j1/j12345/raw
JOBNO="12345"
CLIENT="Client Name"
PROJECT="Client Project"
I'm not a shell script guru by any means. Who ever could help me would be greatly appreciated