Calling all Python experts

Bill Campbell linux-sxs
Thu Dec 21 21:40:38 PST 2006


On Thu, Dec 21, 2006, David Bandel wrote:
>On 12/21/06, Matthew Carpenter <mcarpenter at intelguardians.com> wrote:
>
>[snip]
>
>>
>> Apparently "USER" isn't set in the environment being run from.  Use something
>> that is, or pull it from the command line.
>
>finally found it:
>"/var/mail/" + os.environ.get("LOGNAME")
>at least the "+" part they copied correctly from Perl ;-)

Actually perl uses the more cryptic ``.'' operator to concatenate strings
rather than the more logical ``+''.

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

``The only freedom which deserves the name, is that of pursuing our own good
in our own way, so long as we do not attempt to deprive others of theirs,
or impede their efforts to obtain it.'' -- John Stuart Mill, 1859



More information about the Linux-users mailing list