0
I want to automate something writing simple script launching consecutively few scripts one after another. And then setting some aliases at the top shell.
Problem: few of these commands launch new shell. And all commands after that one are launched in previous shell. Is there anyway to queue these commands coming after that one in "top" shell?
Simple Example:
#!/usr/bin/ksh
#normally this ksh is executed deep inside other script i cannot modify
ksh
echo test
Is there any way to print "test" on shell just started by ksh command? Normally test is printed in previous shell - becomes available after "exit" command Thanks for any help.
Your use of "top shell" is slightly confusing. You mean the last subshell that you started, right? – Uwe – 2013-05-23T13:03:03.123
yes, thats correct. – Aleksander Fular – 2013-05-23T13:45:57.193