Error Reading The Command Interrupted System Call
Contents |
error reading output from command: interrupted system call - Dear TCL Programmer, I have written an TCL-Script for searching a directory tree. This script should found a special string in some special files. When I start
Read Error Reading Standard Input Interrupted System Call
this script I sometimes got the error:
error reading output from command: interrupted system waitpid error interrupted system call call while executing "exec -- find $FIND_PATH -name $FIND_FILE 2>/dev/null | xargs grep -l $in_search_string 2>/dev/null " ("while" body signal handler in c example line 20) invoked from within "while { $act_date_counter } { set act_date_counter [get_next_date] set CUSTOMER_IND "/M/" # This is the path to supply files # ..." (file "/shared/aix4/user/KarstenPleines/grep_test/find_file2.tcl" line 283)This is the error script code:
if { [file isdirectory $FIND_PATH] && [file exists $FIND_PATH$FIND_FILE]} { debug "An existing path: $FIND_PATH" # This command searches for file "$FIND_FILE" in directory "$FIND_PATH" thad containes # the string "$1" and appends it to a file "$FILE_LIST" # debug "find $FIND_PATH -name $FIND_FILE 2>/dev/null | xargs grep -l $in_search_string 2>/dev/null" puts $return_file_id "[ exec -- find $FIND_PATH -name $FIND_FILE 2>/dev/null | xargs grep -l $in_search_string 2>/dev/null ]" # puts $return_file_id "[exec -- find $FIND_PATH -name $FIND_FILE 2>/dev/null | xargs grep -l $in_search_string 2>/dev/null]" debug "end grep" Quote:}Sometimes the script runns well and otherwise it breaks. I don't know about this phenomen. Can somebody help me? Greetings Karsten Fri, 05 Mar 2004 21:21:12 GMT lvir..#2 / 2 TCL Error: - error reading output from command: interrupted system call - :When I start this script I sometimes got the error: : :error reading output from command: interrupted system call : while executing :"exec -- find $FIND_PATH -name $FIND_FILE 2>/dev/null | xargs grep :-l $in_search_string 2>/dev/null " This msg indicates that the "interrupted system call" occured while the find | xargs command occured. :Sometimes the script runns well and otherwise it breaks. I suspect that either a value for one of the arguments, or one of the file names that are being encountered, is causing the find or grep to generate the error in question. -- -- "I know of vanishingly few people ... who choose to use ksh." "I'm a minority!" Even if explicitly stated to the contrary, nothing in this posting Sat, 06 Mar 2004 22:18:49 GMT Page 1 of 1 [ 2 post ] Relevant Pages 1. Problem with exec command: error reading output from
different temperature" Previous message: Magnus Heltstrom: "Restarting simulation goes the different temperature" Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ] I'm getting an error message running a TCL script that's calling the namd. Trying to track down the source of the problem is frustrating me to no end. I know that these same scripts are working fine on a university-owned research server, http://computer-programming-forum.com/57-tcl/ce73e15284c39ed8.htm but when we try to use them on our own server we run into this problem. The relevant portion of the output follows this message. Originally I suspected the problem was occuring somewhere around vmd (which is also used), but John on the VMD list informed me that the stack trace shows http://www.ks.uiuc.edu/Research/namd/mailing_list/namd-l.2008-2009/0236.html the problem coming from somewhere around the charm library. When removing the charm usage so the script was executed on a single processor with the vanilla namd it worked flawlessly, which seems to confirm that the problem is something to do with the script attempting to parallelize namd with charm. If anyone knows where to direct me for some help with this it would be greatly appreciated and I may yet keep some of my hair. Thanks, -Steve Info) VMD for LINUXAMD64, version 1.8.6 (April 6, 2007) Info) http://www.ks.uiuc.edu/Research/vmd/ Info) Email questions and bug reports to vmd_at_ks.uiuc.edu Info) Please include this reference in published work using VMD: Info) Humphrey, W., Dalke, A. and Schulten, K., `VMD - Visual Info) Molecular Dynamics', J. Molec. Graphics 1996, 14.1, 33-38. Info) ------------------------------------------------------------- Info) Multithreading available, 8 CPUs detected. Info) Free system memory: 13051MB (81%) AMA) ----------------------------ama_cycle.tcl--------------------------------- TCL: error reading output from command: interrupted system call FATAL ERROR: error
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About http://unix.stackexchange.com/questions/102784/occasional-error-from-bash-on-aix-interrupted-system-call Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask interrupted system a question Anybody can answer The best answers are voted up and rise to the top Occasional error from bash on AIX: Interrupted system call up vote 0 down vote favorite I am experiencing problems with process substitution in bash on AIX It happens very rarely, apparently only when the server is loaded. An example error message is: line 9: /tmp//sh-np-7841523: Interrupted system call Before I investigate more interrupted system call into my script, I wanted to know if you had already had issues with process substitution. Or get your inputs regarding some possible recommendations to observe when implementing process substitution. Note: this simple script can generate the aforementioned error: #!/bin/bash read var < <(echo) However I stress this point: the error is very rare. It cannot be reproduced systematically. The server on which the script has been tested is a production server. bash aix system-calls process-substitution share|improve this question edited Apr 27 at 18:27 Anthon 47.5k1462125 asked Nov 27 '13 at 15:15 Brat PID 112 2 We can't answer unless you show us what kind of process substitution you run, if you get this error every time you do a process substitution or only with certain commands etc. –terdon♦ Nov 27 '13 at 15:25 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote Check that you're using the latest version of bash. If you are, report a bug; be sure to indicate exactly where you obtained the bash binary if you installed an existing binary, or what compiler and compile-time configuration you used and where you obtained the source if you compiled bash by yourself. A