where's data on pipe's stdout?
From: Alexey Chetroi (lexa98_at_mail.md)
Date: 07/27/04
- Next message: Darren New: "Re: Working with nonblocking sockets"
- Previous message: Robert Seeger: "Re: Prevent Overloading of Procedures"
- Next in thread: Y. T.: "Re: where's data on pipe's stdout?"
- Reply: Y. T.: "Re: where's data on pipe's stdout?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 27 Jul 2004 07:49:07 -0700
Hi,
I'm trying to make a pipe, however I cannot read data on it's out.
For short, I have a list of files and want to check each file with
"file" utility, however this script produce no results:
#!/usr/bin/tclsh
set aid [open "|file --brief --files-from -" r+]
fconfigure $aid -buffering line
fileevent $aid readable {puts [gets $aid]}
puts $aid "/win/d/movies/mp3/en/Giganten CD1/track01.cdda.ogg"
vwait forever
Where am I wrong? If I run "file --brief --files-from -" from shell,
then it show file type of each filename I enter.
I'm running tcl 8.4 on Debian Sarge box.
Thanks in advance!
- Next message: Darren New: "Re: Working with nonblocking sockets"
- Previous message: Robert Seeger: "Re: Prevent Overloading of Procedures"
- Next in thread: Y. T.: "Re: where's data on pipe's stdout?"
- Reply: Y. T.: "Re: where's data on pipe's stdout?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|