Is there a way to 'pre-fill' the command line when your bash script exits?
If your scripts contains a test like:
Code:
if [ ! -f /etc/HOSTNAME ]; then
clear
echo "You do not have a /etc/HOSTNAME file. You need to setup your network first!"
echo "Come back after setting up your network."
NEED COMMAND HERE=/sbin/netconfig
exit
fi
Such that after the script exits the command line would be prefilled with the 'variable' set by the script. ie
Code:
yourprompt# /sbin/netconfig
Note: I don't want the script to chain another script; just exit and prefill if possible.
thanks in advance
ppd