I have a script that opens terminal and list directories. My problem is that the second terminal ls the files but disapears in a flash. how can i make it not disappear? i have tried sleep but not working.
Asked
Active
Viewed 58 times
-1
-
5This might be helpful to you... http://askubuntu.com/questions/20330/how-to-run-a-script-without-closing-the-terminal – May 19 '16 at 14:35
1 Answers
0
Put a read statement at the end of the script.
read -p "Press Enter to quit" oDummy

The Somberi
- 111