CLI

M

mwt

I want to do programmatic terminal commands on unix with python - i.e.
I want my program to issue commands to start and stop scripts, other
programs, etc. I'm sure this must be fairly straightforward, but
haven't been able to find a reference for it. Any help?
 
S

Sybren Stuvel

mwt enlightened us with:
I want to do programmatic terminal commands on unix with python

If you want to use a real terminal, search for pty. If you just want
to start and stop scripts, check the popen2 module.


Sybren
 
C

Carl Cerecke

mwt said:
I want to do programmatic terminal commands on unix with python - i.e.
I want my program to issue commands to start and stop scripts, other
programs, etc. I'm sure this must be fairly straightforward, but
haven't been able to find a reference for it. Any help?

Try:

pexpect.sourceforge.net

Cheers,
Carl.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,283
Messages
2,571,409
Members
48,103
Latest member
MadieDeitz

Latest Threads

Top