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

BASH question



Hi,

I have the following bash question.  I've written a script that makes
sure that I'm online (ISDN dial-on-demand) and then gets mail with
fetchmail.  He're the code that makes sure I'm connected and prints dots
while doing so:

	# Make sure we're online
	echo -n "Connecting to the internet .."
	/bin/bash -c 'while true; do echo -n "."; sleep 1s; done' &
	DOTLOOP=$!
	ping -c 1 www.web.de > /dev/null
	kill -9 $DOTLOOP 
	echo " done."

This works fine, but after the fetchmail command runs (not shown there)
I get the following message:
	
	/home/viktor/bin/getmail: line 16:  3869 Killed
	/bin/bash -c 'while true; do echo -n "."; sleep 1s; done'

This, of course, is not surprising, it's normal bash behavior.
Unfortunately, I don't like it and would like to suppress it.  Any way
to achieve this?

TIA,
Viktor
-- 
Viktor Rosenfeld
WWW: http://www.informatik.hu-berlin.de/~rosenfel/

Attachment: pgpMsifUp96An.pgp
Description: PGP signature


Reply to: