Newbie: executing a system command from my Python app
Dan M
dan at wolf.com
Mon Dec 12 17:41:09 EST 2005
On Mon, 12 Dec 2005 13:25:14 -0800, Dan M wrote:
> I'm writing a Python replacement for a particularly ugly shell script. we
> are running mimedefang on our mail server, moving spam and virus messages
> to a quarantine directory. This little python script successfully chdir's
> to the quarantine directory, identifies all of the quarantine
> subdirectories for yesterday's messages, and stuffs them into a tar file
> in an archive directory. I then want to delete for successfully tarred
> files and the subdirs they live in.
Never mind - the flaw was in how I was building the command to be executed
by os.system. It's working fine now.
More information about the Python-list
mailing list