Enable python GUI with buttons to Run bash script

102 views
Skip to first unread message

shinu mathew

unread,
Feb 8, 2016, 2:55:03 AM2/8/16
to Python GCU Forum
Hi,

I would like to know about the running of a bash script from Python GUI.

Scenario:

When I click on a Button from Python GUI it should call a bash script specified in it.

Any idea??/

i am using IDLE python in Windows

Robert Mandić

unread,
Feb 8, 2016, 1:05:03 PM2/8/16
to Python GCU Forum
os.system('/path/to/script.sh')

Returns exit_status of your script.

--
You received this message because you are subscribed to the Google Groups "Python GCU Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-gcu-for...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Lp, Robert
Reply all
Reply to author
Forward
0 new messages