Front page | perl.ppt |
Postings from October 2006
whoami implementation
Thread Next
From:
veritosproject
Date:
October 4, 2006 09:47
Subject:
whoami implementation
Message ID:
6dcbe5980610040947g2359d7d0q7e3a5d629f14dacc@mail.gmail.com
#!/usr/bin/perl
# whoami for PPT
# Public domain.
# by David Koenig.
print getpwuid($>)."\n";
__END__
=head1 NAME
whoami - display effective user ID
=head1 SYNOPSIS
whoami
=head1 DESCRIPTION
The I<whoami> utility is obsolite. Use I<id -un>.
This utility simply returns the effective user ID.
=head1 SEE ALSO
L<id(1)>
=head1 AUTHOR
David Koenig <veritosproject@gmail.com>.
=head1 COPYRIGHT
This page, as well as the implementation of the utility, are public domain.
Thread Next
-
whoami implementation
by veritosproject