[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Graceful Exit

From: Roman Rakus
Subject: Re: Graceful Exit
Date: Tue, 30 Sep 2008 16:29:34 +0200
User-agent: Thunderbird (X11/20080723)

rayparrish wrote:

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]