Out of Memory & Relabeling

Daniel J Walsh dwalsh at redhat.com
Wed Jul 11 15:59:05 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/11/2012 11:36 AM, m.roth at 5-cent.us wrote:
> free | awk '{ if ( NR == 2 ) { if ( $4 > somenum ) { exit 0; } else { exit 
> 1; }}}'

How about something like:

#!/bin/sh
free | awk '{ if ( NR == 2 ) { if ( $4 < 25000 ) { exit 22; }}}'
/usr/sbin/semodule -Bn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/9osgACgkQrlYvE4MpobO1ZACgzIJf/xizrU86iqrN19DiVLE5
fo4AoNy+WDkPximj0UBE60qxj8CAzMjo
=LqT7
-----END PGP SIGNATURE-----


More information about the selinux mailing list