How do I make a python program text pass as input to another process? Specifically a command shell, not command line!
Not run as
example.exe --doSomething -i random.txt -o random1.txt
but as
example.exe
# example shell loading
# and then in loaded shell
> doSomething -i random.txt -o random1.txt
EDITED POST:
How do I make a python program pass input to another window at the command line? I want to do this:
something = raw_input('Waddaya wanna do?')
if something == 'Halt!':
placeholder('exit')
if something == 'Get help!':
placeholder('help %COMMAND%')
placeholder() stands for the command which will pass what is in the brackets to the command shell. I. E. if processname = java.exe, it would pass 'exit' to 'java.exe.'