Possible Duplicate:
Calling an external command in Python
I would like to call various programs from my Python script, like binary programs, but also other perl/python/ruby scripts, like wget, sqlmap and custom scripts.
The problem is that I would like the user to be able to change parameters of the underlying program. Let's take wget for example. Let's say I'm calling this program (note that all three parameters are dynamically inputted into the command):
wget www.google.com --user=user --password=pass
But I would also like the user to add custom parameters to the wget command. I guess the best way would be directly from a file, but I was wondering if something like this exists so that I won't reprogram everything by hand.
Also keep in mind that this is not just 1 program, but it could be up to 100 programs, maybe more. It needs to be extendable and not too complicated for the user to change.
Thanks