[Tutor] Opsware Global Shell Scripting

Alan Gauld alan.gauld at btinternet.com
Thu Jan 8 02:37:27 CET 2009

"Kayvan Sarikhani" <ksarikhani at gmail.com> wrote

> For the record, $LOGNAME works fine as a variable...it's a standard 
> env
> variable in Linux to display the current user's username.

In that case os.getenv('LOGNAME') should retrieve it for you


Alan Gauld
Author of the Learn to Program web site

More information about the Tutor mailing list