Displaying 1 result from an estimated 1 matches for "foo_raw".
Did you mean:
foo_bar
2004 Aug 06
0
Python script to automate icecast
...ekday, using
cron:
58 7 * * Mon-Fri su nobody -c '/usr/local/icecast/bin/icecon.py StartDump
Morning_Magazine'
02 9 * * Mon-Fri su nobody -c '/usr/local/icecast/bin/icecon.py StopDump
Morning_Magazine'
(I fudge it by 2 minutes on either side, then go back in later and edit
the foo_raw.mp3 file to start and end at more exact times.)
Again, I hope this is useful to someone and I welcome any suggestions.
Here it is:
#!/usr/bin/env python
from telnetlib import Telnet
from time import strftime
class icecon:
def __init__(self, admin_password, oper_password, host='127.0....