On Tue, Jun 28, 2011 at 04:31:32PM -0400, Bill Davidsen wrote:
> You have asked it to display the termination code if it terminates normally. 
> Is 
> that what you want? I would think you want to display it when it fails, maybe:
>    pm-is-supported --suspend-hybrid && echo Supported || echo "Not supported 
> $?"
> 
> Remember zero is good status...

Trust me, I'm remembering that. ;)

From the pm-is-supported manpage:

RETURN VALUE
       The result of the test for a certain powermanagement state is defined by 
the following exit codes.

       Code   Diagnostic
       0      State available.
       1      State NOT available.

-- 
Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/

Attachment: pgp6AuwXCRwOb.pgp
Description: PGP signature

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Reply via email to