Originally posted by: esv
smit was desinged to be used interactibly, but there are two possible solutions to your request.
1. when ready to type enter to fire the command, instead of <enter> type F6, you
might need to type <esc>-6 for some terminal emulations, smit will print the
script to execute, copy it and throw it into a file , lets say.. /opt/smit/scipt/script1.sh,
2. give it read and execute permissions to it..
chmod o+rx /opt/smit/scipt/script1.sh
3. execute it via the at facility...
echo '/opt/smit/scipt/script1.sh > /tmp/script1.log 2>&1 ' | at now
4. logoff the system.
the second option would be more obfuscated....
1.- download and install the "screen" program.. it is a opensource program.
2.- Once you logged in the box use "screen ksh" to spawn a screen shell.
3.- fire smitty using the normal process...
4.- execute the command u want ....
5.- while executing type <ctrl>-x
this will detach ur screen session from your login session...
6.- logoff
7 log back in using the same userid as before.
8- type "screen -x " to reattach to your old screen session
9. your smitty session should still be there.
regards,
enrique.
#AIX-Forum