I have a script that "runs" a script. For example:
./runscript.ksh pcnmc01.ksh
runscript puts pcnmc01.ksh into the background with log output going to the logfile.
After executing the command, I get this output:
Running script in the background: pcnmc01.ksh
Logfile: /home/hs/hstst/logs/pcnmc01.ksh.20100603.115708.txt
In order for me to look at the logfile, I copy the text, then type
cat /home/hs/hstst/logs/pcnmc01.ksh.20100603.115708.txt
where the logfile is pasted into the terminal. How can I capture this logfile value into the shell session that I am currently in? For example, if there's a way for me to capture this output, and store it in my current shell as variable $logfile, then I can set up an alias to type
cat $logfile
saving me a lot of mousing and typing. This is my first post, and I am an AIX beginner. Your help is greatly appreciated. Thank you!