Hi Everyone,
I have a bash shell script that requires ctrl-D to break out of the terminal.can anyone tell me how to use it in the shell script
example
ssh host last --->displays the list of users who were logged on to that host
i have different hosts the output is appended to one final and when i'm executing this particular shell script along with other series of commands, i'm using ctrl-D to see the output
suppose my shell script is myscript.sh to execute myscript.sh
./myscript.sh
ctl-D
connection to host closed
output is displayed
instead i want to use ctrl-D in my script file
Any ideas on this are appreciated.
Thanks,