473,373 Members | 1,170 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,373 software developers and data experts.

Strange problems with subprocess

Hi all. I have a simple "ping tester" program that, every 1 minute
(execute by linux crontab), create, with subprocess, a
"ping -c 1 my_addrs". All work, but sometime (about 1/2 times at a day),
I receive this error message:

File "/exports/srv-wipex/net_test/ping_tester.py", line 88, in pyPing
cmd_p = Popen(cmd, stdout=PIPE, stderr=PIPE)
File "subprocess.py", line 543, in __init__
errread, errwrite)
File "subprocess.py", line 970, in _execute_child
data = os.read(errpipe_read, 1048576) # Exceptions limited to 1 MB

What can be that raise this?

Python 2.4 in deb etch

Thanks,
Michele
Aug 1 '07 #1
2 1284
On Aug 1, 2:20 am, Michele Petrazzo <michele.petra...@TOGLIunipex.it>
wrote:
Hi all. I have a simple "ping tester" program that, every 1 minute
(execute by linux crontab), create, with subprocess, a
"ping -c 1 my_addrs". All work, but sometime (about 1/2 times at a day),
I receive this error message:

File "/exports/srv-wipex/net_test/ping_tester.py", line 88, in pyPing
cmd_p = Popen(cmd, stdout=PIPE, stderr=PIPE)
File "subprocess.py", line 543, in __init__
errread, errwrite)
File "subprocess.py", line 970, in _execute_child
data = os.read(errpipe_read, 1048576) # Exceptions limited to 1 MB

What can be that raise this?

Python 2.4 in deb etch

Thanks,
Michele
This doesn't look like a complete traceback. It doesn't give what the
error was.

Mike

Aug 1 '07 #2
ky******@gmail.com wrote:
This doesn't look like a complete traceback. It doesn't give what the
error was.
Forgot a line, sorry!

exceptions.OSError: [Errno 4] Interrupted system call
Mike
Michele
Aug 1 '07 #3

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

Similar topics

4
by: Jane Austine | last post by:
Running Python 2.3 on Win XP It seems like socket is working interdependently with subprocesses of the process which created socket. ------------------------------------ #the server side >>>...
0
by: Pekka Niiranen | last post by:
Hi there I have installed Cygwin to my w2k machine and use Python to execute Bash -shell scripts. I noticed that in script below parameter "shell=False" causes raw_input() to fail; the only way...
2
by: Jacek Pop≥awski | last post by:
In the last week I was working to create script which will read command from socket, call it, return result, stdout, stderr and kill it after timeout. After playing with threads, processes, spawns...
13
by: Christopher Cashell | last post by:
Yesterday, while attempting to access a database, I received errors saying that the database was innaccessible. After investigating a little, I found the following in the PostgreSQL log files: ...
3
by: Darren Dale | last post by:
I'm a developer on the matplotlib project, and I am having trouble with the subprocess module on windows (Python 2.4.2 on winXP). No trouble to report with linux. I need to use _subprocess instead...
3
by: amaccormack | last post by:
I wrote a quick script to check the "up-ness" of a list of machines, and timeout after 1 second. However, with a lot of timeouts, the script takes a logn time, so I thought to parallelise it....
8
by: Henrik Lied | last post by:
Hi there! I'm trying to convert a video in a background process. The scenario I'm after: 1. The user uploads a video 2. The video is saved in my media directory, and the database is populated...
3
by: Giraffe | last post by:
I have the followong class in a file: -------------------------------------------- class someClass: def __init__ (self): self.someVar = 10 def getSomeVar (self): return self.someVar...
34
by: Alexnb | last post by:
Gerhard Häring wrote: No, it didn't work, but it gave me some interesting feedback when I ran it in the shell. Heres what it told me: Traceback (most recent call last): File...
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: 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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.