Re: [gentoo-user] Adding output of 'uptime' to python sig

2004-02-15 Thread Trey Sizemore
On Sun, 2004-02-15 at 17:44, David Mallwitz wrote: > uname=string.strip(os.popen("/bin/uname -a").readline()) > > print uname > Thanks for your help. -- Cheers, Trey --- The beauty of the soul shines out when a man bears with composure one heavy mischance after another, not because he does not

Re: [gentoo-user] Adding output of 'uptime' to python sig

2004-02-15 Thread David Mallwitz
On Sunday 15 February 2004 12:00 pm, Trey Sizemore wrote: > > Thanks, Dave. One last item if you have the patience. What would I > need to add the output of 'uname -a'? > > Thanks again. uname=string.strip(os.popen("/bin/uname -a").readline()) print uname -- [EMAIL PROTECTED] mailing list

Re: [gentoo-user] Adding output of 'uptime' to python sig

2004-02-15 Thread Trey Sizemore
On Sun, 2004-02-15 at 11:35, David Mallwitz wrote: > Change your import line to read: > > import string, random, os > > add this to read your uptime: > > uptime=string.strip(os.popen("/usr/bin/uptime").readline()) > > add this to wherever you want it printed: > > print

Re: [gentoo-user] Adding output of 'uptime' to python sig

2004-02-15 Thread David Mallwitz
On Sunday 15 February 2004 11:13 am, Trey Sizemore wrote: > I have a python script that I use currently in my sig and wanted to > add a line to show the output of the 'uptime' command. > > Would someone be able to tell me how to do this? Such as add it as a > line under the current sig? Here's th

[gentoo-user] Adding output of 'uptime' to python sig

2004-02-15 Thread Trey Sizemore
I have a python script that I use currently in my sig and wanted to add a line to show the output of the 'uptime' command. Would someone be able to tell me how to do this? Such as add it as a line under the current sig? Here's the script I'm using: #!/usr/bin/python # change this to point to