473,325 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

getstatusoutput() headaches :(

hi,
I'm hoping someone can help me :)
I'm using the commands module (under linux) to do the following:
commands.getstatusoutput('/sbin/service network restart')
this is executed in a separate thread from the main executing thread.
However, the separate thread that executes the above hangs forever.
When I attempt to run the above without the thread it works ok. Am I doing
something stupid? I'm thinking the thread is unable to access the
stout/stderr stream which causes it to hang but I've tried running other
commands (such as 'ls' and it works ok).
any help gratefully appreciated,
Rob b
Jul 18 '05 #1
0 1214

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Garrett Albright | last post by:
Trying to compile PHP 5 beta 4, and not having much fun... % ./configure --with-apxs --with-mod_charset --with-zlib --with-bz2 --with-curl --with-gd --with-mhash --with-pspell...
1
by: John Hrusovszky | last post by:
I am brand new to Visual Basic and just installed Visual Basic Professional v6.0 and have 1 question and 1 problem: Question: Since Visual Studio came with my VB6.0, should I install it? I am...
2
by: David Carroll | last post by:
I'm at my wits end with this silly thing. I'm new to python, so please excuse my impending ignorance ;). I am trying to execute a command, and get the output back into a string variable. Here's...
0
by: n.o. | last post by:
Hi! Can you please help me with the following problem? My application calls (rval, outp) = commands.getstatusoutput("...") inside a pygtk timer.
1
by: Ben M. | last post by:
Greetings all, This should be an easy task, and Im sure it is, but as many times as I have tried, I cant seem to get this to work properly. We changed ISPs recently from a shared host to a...
2
by: Adam | last post by:
Hey gang, I'm trying to have a certain piece of html be written into a document depending on the browser (specifically, Netscape). Anyway, I have the following INSIDE the html (nested in a...
0
by: Brian | last post by:
Hello all. I've created a FileSystemWatcher that is to reside on Server A and monitor the activity of folder on Server B. The application works fine with watcher.path set to C:\. However,...
1
by: brian | last post by:
Hello all. I've created a FileSystemWatcher (ASP.Net w/VB.Net code behind pages) that is to reside on Server A and monitor the activity of folder on Server B. The application works fine with...
5
TheServant
by: TheServant | last post by:
Hey guys, I am trying to generate a table automatically, but I am having headaches using foreach loops: $raw_user_rankings = mysql_query("SELECT user_id, user_name, user_clan_id, user_pop,...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.