Re: waiting for other program to finish invoked using exec
- From: Ralf Fassel <ralfixx@xxxxxx>
- Date: Wed, 16 Jul 2008 11:39:40 +0200
* claird@xxxxxxxxx (Cameron Laird)
| <URL: http://wiki.tcl.tk/fcopy >
|
| While you could make {exec cp ...} work, fcopy will GREATLY
| simplify your burden.
My experience is that fcopy used on *files* basically blocks the app,
since the channels are always readable/writable, and thus the app is
busy re-firing the fcopy-continuation commands, unless you introduce
an artificial delay (and thus delay overall copying time).
I'd stick to opening a read-pipe to the 'cp' (or even a tclsh running
fcopy :-) and trigger on the EOF on that channel.
My 0.02EUR...
R'
.
- References:
- waiting for other program to finish invoked using exec
- From: Ravikanth
- Re: waiting for other program to finish invoked using exec
- From: Cameron Laird
- waiting for other program to finish invoked using exec
- Prev by Date: Re: Setting security descriptor on a file via Twapi
- Next by Date: Re: simulating a broken pipe scenario between a Tcl script and a C program
- Previous by thread: Re: waiting for other program to finish invoked using exec
- Next by thread: Re: waiting for other program to finish invoked using exec
- Index(es):
Relevant Pages
|