View Single Post
  #2   (View Single Post)  
Old 5th January 2016
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,132
Default

I always use printf(1) to print/echo the prompt.
Code:
#read -p "<Enter to Close>" nothing
printf "<Enter to Close> " ; read nothing
When I invoke the script with $ xterm -e 'shep.sh' the new xterm prompts me properly and only closes when I press the Enter key;
Code:
[snip]
ressure (altimeter): 29.82 in. Hg (1009 hPa)
ob: KYKM 042358Z 08004KT 10SM SCT018 BKN070 BKN100 M02/M06 A2982 RMK AO2 
T10221061
cycle: 0

<Enter to Close>
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote