Subject: Re: power management and related concerns
To: Steven M. Bellovin <smb@cs.columbia.edu>
From: Thomas E. Spanjaard <tgen@netphreax.net>
List: tech-kern
Date: 07/01/2006 13:18:27
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig3F0C556A5BF8D13637A40DC2
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Steven M. Bellovin wrote:
> temp=acpitemp >70*2 /bin/shutdown -p now
>
> where the *2 indicates that it has to happen twice in a row. A few more
> frills, like shell variables for each config line -- the 'temp' means that
> a script would be run with envstatd_temp set to the value. A | at the
> start of the command would create a pipeline that would be fed the value
> on stdin, to permit easy real-time graphing programs.
Confusing, using mathematical symbols for other meanings. Isn't the
how-many-times-or-how-long (as Jachym Holecek suggested) better off in a
separate column (think inetd.conf syntax)? Come to think of it,
inetd.conf is a viable example format for this.
Cheers,
--
Thomas E. Spanjaard
tgen@netphreax.net
--------------enig3F0C556A5BF8D13637A40DC2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)
iD8DBQFEpnYo6xCMwBJ+1+sRA2xpAJwLgyEe/64J5/TU5YAgwUAlLw/DHwCglVe1
Gkw/SJdAne5PfD1rO7sRdg8=
=BkSX
-----END PGP SIGNATURE-----
--------------enig3F0C556A5BF8D13637A40DC2--