2 Replies - 7076 Views - Last Post: 20 December 2006 - 03:45 PM Rate Topic: -----

#1 t.i.g.e.r.  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 20-October 06

python: runnig shell script

Posted 07 November 2006 - 01:43 AM

Hi,
i have little problem. i'm beginner in python and i want to write some python script. Inside that script i need to run shell script. I tried to find something on Internet but w/out any success. Can u please help me? :)
Thanks
Is This A Good Question/Topic? 0
  • +

Replies To: python: runnig shell script

#2 horace  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 290
  • View blog
  • Posts: 1,900
  • Joined: 25-October 06

Re: python: runnig shell script

Posted 20 December 2006 - 02:30 PM

View Postt.i.g.e.r., on 7 Nov, 2006 - 08:43 AM, said:

Hi,
i have little problem. i'm beginner in python and i want to write some python script. Inside that script i need to run shell script. I tried to find something on Internet but w/out any success. Can u please help me? :)
Thanks

try the os.system() function, see
http://docs.python.o...s.html#l2h-2761
Was This Post Helpful? 1

#3 Nova Dragoon  Icon User is offline

  • The Innocent Shall Suffer, Big Time
  • member icon

Reputation: 36
  • View blog
  • Posts: 6,169
  • Joined: 16-August 01

Re: python: runnig shell script

Posted 20 December 2006 - 03:45 PM

also look at the command(s) module, where you can get the output of the script execution
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1