Re: Running 4000 processes



Hi Jeannot,
this message reflects the fact, that the underlaying OS can't open any
more files. On which OS are you working? Unix? If so, you are probably
fine, because you can simply change the number of max open files. To
see the limit, type
ulimit -a
on the command line.
If you reached the hard-limit allready, you have to change this in a
way, depending on your OS.
It has nothing to do with Tcl.
Regards,

Friedemann


On 26 Jan., 11:19, "Jeannot" <jean.mul...@xxxxxxxxxxxxxxxxxx> wrote:
Hi,

I have lots of processes to run (4000). They have to be submitted to a
server using the qsub program (qeuing system0. Usually I use the exec
command following the the command to execute but hte problem is that
qsub does not handle with arguments. So my solution was to use open "|
qsub"... which I am not used to!

this is inside a loop that will launch the 4000 processes:

set MUSCLE_cmd "muscle -in $Input"
set F [open "|qsub" r+]
puts $F $MUSCLE_cmd
puts "close $F"
flush $F

This seems to work fine unless the fact that after a certain number of
processes being launched I got this error message?

"Error in startup script: couldn't create pipe: too many open files"

Any idea of how I could fix this or enhance my script? I really want to
understand how this work which I am not sure of getting every
details... if there is so;ething to to with exec, please tell me also!!

May thanks in advance.

Jeannot

.



Relevant Pages

  • Re: exec problems - only works with set or no such file or directory
    ... words and then run the exec command on the result. ... puts "$lm_cmd" ...
    (comp.lang.tcl)
  • Re: Running 4000 processes
    ... on the command line. ... server using the qsub program (qeuing system0. ... Usually I use the exec ... puts $F $MUSCLE_cmd ...
    (comp.lang.tcl)
  • su/exec strange behavior
    ... For that reason, I cannot change the form this line. ... I'd like to launch some command without reading the .profile of the ... but something happens when I exec my new command string... ...
    (comp.unix.shell)
  • Re: Running 4000 processes
    ... improve the tcl scripts? ... on the command line. ... Usually I use the exec ... puts $F $MUSCLE_cmd ...
    (comp.lang.tcl)
  • Running 4000 processes
    ... server using the qsub program (qeuing system0. ... Usually I use the exec ... this is inside a loop that will launch the 4000 processes: ... puts $F $MUSCLE_cmd ...
    (comp.lang.tcl)