View Full Version : Bash question
mdurham
June 1st, 2006, 08:13 AM
Is there a way to stop the terminal window closing after it has run my script?
Thanks, Mike
Jussi Kukkonen
June 1st, 2006, 09:23 AM
Could you describe your situation in more detail? Normally issuing a command in a terminal doesn't close the terminal...
mdurham
June 1st, 2006, 10:40 AM
Could you describe your situation in more detail? Normally issuing a command in a terminal doesn't close the terminal...
Sorry. I have an executable script that I double click to run. When it finishes, the terminal that it was running in closes. I'd like for it to hang around so that I can see if there were any errors, messages etc. The script is just a few lines of simple commands to rename and copy some files.
Thanks.
ketsugi
June 1st, 2006, 07:02 PM
Maybe it'd be easier to pipe any potential error output into a Zenity info dialog?
Jussi Kukkonen
June 1st, 2006, 07:47 PM
Maybe add
read -p "Press any key..."
as the last line of the script?
yaaarrrgg
June 1st, 2006, 07:57 PM
couldn't you add this the end of the script?
sleep 10;
echo "exiting"
Engnome
June 1st, 2006, 09:22 PM
Open terminal drag the binary into terminal press enter.
mdurham
June 1st, 2006, 11:30 PM
Thanks Jussi Kukkonen, that seems like a good solution. Thanks to the others too.
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.