Re: Graceful Exit

2008-09-30 Thread Roman Rakus

rayparrish wrote:

Hello,

I am writing a System Report script for Ubuntu, and even 'though I have the
word exit on the last line of the script, when I run the script in terminal
I have to hit enter a second time after running the script to get the
terminal prompt back.

I'm uploading the script, have a look and tell me how to get this thing to
exit back to the terminal prompt without the second enter key press.

Thanks, Ray Parrish

http://www.nabble.com/file/p19598628/SystemReport.sh SystemReport.sh 


Hello again,

I did some debugging and found that my script was choking on the line -

cat | df -h >> ~/SysReport/drive.html

I removed the "cat |" from the front of the command and now my script runs
through and exits no problem.

 Thanks,. Ray Parrish
  

of course, cat was reading from stdin, but has no input from stdin.
And I have take a look at script and found that you have at some lines 
windows style end of lines. Maybe better you should fix it.

RR




Graceful Exit

2008-09-22 Thread rayparrish

Hello,

I am writing a System Report script for Ubuntu, and even 'though I have the
word exit on the last line of the script, when I run the script in terminal
I have to hit enter a second time after running the script to get the
terminal prompt back.

I'm uploading the script, have a look and tell me how to get this thing to
exit back to the terminal prompt without the second enter key press.

Thanks, Ray Parrish

http://www.nabble.com/file/p19598628/SystemReport.sh SystemReport.sh 
-- 
View this message in context: 
http://www.nabble.com/Graceful-Exit-tp19598628p19598628.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.