[CentOS] simple if statement

Fri Feb 27 11:19:43 UTC 2009
John R. Dennison <jrd at gerdesas.com>

On Fri, Feb 27, 2009 at 11:14:01AM +0000, Tom Brown wrote:
> 
> Below if $remaining is empty i want the if to finish - what is it i need 
> to put in SOMETHING?
> 
> if [ "$remaining" = "" ] ; then
>             SOMETHING ;
>         else
>             kill -9 $remaining
> fi

	if [ "${remaining}" != "" ] ; then
		kill -9 ${remaining}
	fi





						John

-- 
"I'm sorry but our engineers do not have phones."
As stated by a Network Solutions Customer Service representative when asked to
be put through to an engineer.

"My other computer is your windows box."
                                     Ralf Hildebrandt
<sxem> trying to play sturgeon while it's under attack is apparently not fun.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20090227/36f95be5/attachment-0005.sig>