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 the script I'm using:
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 uptime
Dave
--
[EMAIL PROTECTED] mailing list