472,118 Members | 1,135 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,118 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 1233
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Jane Austine | last post: by
reply views Thread by Pekka Niiranen | last post: by
2 posts views Thread by Jacek Pop³awski | last post: by
3 posts views Thread by Darren Dale | last post: by
3 posts views Thread by amaccormack | last post: by
8 posts views Thread by Henrik Lied | last post: by
3 posts views Thread by Giraffe | last post: by
reply views Thread by leo001 | last post: by

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.