May 23, 2012, 01:10:53 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: THC is up and running !
 

 
advertisement:

Pages: [1]
  Print  
Author Topic: Running Python script from another script(windows)  (Read 202 times)
TingleBell
The Seed
Newbie
*

Karma: +572/-0
Posts: 18


thc title: 3t3rn4l n00b
thc points: 0
challenges: (0/83)
Gaming Tournament 1: Dragon Force Winner

View Profile
« on: February 05, 2009, 03:20:33 PM »
Share on FacebookFacebook Share

I'm trying to execute a python script from another python script as a new process. I tried the os module spawn functions but no joy, I managed to create it in Linux, but how can I get it to work on Windows???
Logged

/care
zomgwtfbbq
Challenge Coder
Administrator
Hero Member
*****

Karma: +31340/-1
Posts: I am a geek!!


thc title: thc elite
thc points: 3315
challenges: (69/83)

View Profile
« Reply #1 on: February 05, 2009, 03:33:39 PM »
Share on FacebookFacebook Share

As far as I know you can fix this in at least two ways:
Code:

child = subprocess.Popen("python script2.py", shell=True)

... or using the subprocess module:
Code:

import subprocess
child = subprocess.Popen("script2.py")
Logged


only registered users with at least 25 hack challenge points can see links:
  click here in order to visit the hack challenges


Ook al ben ik een slet toch houdt ik van je..
Pages: [1]
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
RSS: QuickRecon: A Simple Information Gathering Python Script!
Hack Tool Releases
zomgwtfbbq 0 127 Last post February 06, 2011, 11:56:06 AM
by zomgwtfbbq
RSS: D3D Perfect Skin - Poser Python Script
Poser
zomgwtfbbq 0 113 Last post September 25, 2010, 11:46:38 AM
by zomgwtfbbq
SMF Board hacked and modded by zomgwtfbekjam aka Rembo from Tools & Design