How I do the following in Solaris:
1. Check to see of environ. variable $TAPE is set.
2. If it is not, then set it to /dev/rmt/0n
3. If it is set, then dont do anything.
When you execute a script it spawns a new shell, and shell variables defined in the child process are not automatically passed back to the parent. If your script is called myscript.ss and runs in ksh and sh, you need to use the dot operator:
. myscript.ss # space after the "."
This was covered extensively in this forum under thread:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.