[TriLUG] Basic bash shell scripting question

Chris Hedemark chrish at trilug.org
Thu May 29 10:13:49 EDT 2003


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


On Thursday, May 29, 2003, at 10:30 AM, Ryan Leathers wrote:

> duh! - I feel so dumb.
> anyway - thanks all
>
> also Matthew thanks for the tip on System.getProperties()
> I've used this before but had it in my mind that it was only useful for
> VMs.

If you end up doing this in a shell script, and thus don't have access 
to nifty perl or java functions, "man id" should give you some more 
options if you need to use numeric UID or GID data.  Gives you a bit 
more to work with than "whoami".

- --

Chris Hedemark
UNIX / Linux / BSD / Mac OS X / Windows consulting available.  No job 
too small!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.2 (Darwin)

iEYEARECAAYFAj7WFaEACgkQYPuF4Zq9lvZ0wwCeLga9S03+L5yn05dL7CE3heIR
JtIAoN6M8GfLm7BHUgyAdKggskYAMwsC
=c+NN
-----END PGP SIGNATURE-----




More information about the TriLUG mailing list