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 your file of quotes
aff_file = "/home/trey/quotes.txt"
import string, random
# hack this at will
print "-- <br>"
print "Cheers,<br>"
print "Trey<br>"
print "---<br>"
print "<br>"
# cryptic python stuff which pulls a line from a text file
# at random
affs = open(aff_file,"r")
affs = affs.readlines()
aff = affs[int(random.random() * len(affs))].split("\n")[0]
# print the randomly selected line
print aff
--
Cheers,
Trey
---
Adversity is the trial of principle.
Without it, a man hardly knows whether he is honest or not.
--Henry Fielding
--
[EMAIL PROTECTED] mailing list