Prev: Command "file mkdir" doesnt return value and so cannot be nested.
Next: Newbie question about path failures in a configure script that requires Tcl
From: Horix on 30 Dec 2009 05:39 Hello, I'm trying to run a script on ubuntu. this script is ok on windows. My script command VLC, to watch and record TV. The command to start vlc is: set canal [open "|vlc nomdela chainfree --extraintf=rc --rc-host localhost:$numcan --rc-quiet" w+] after I open a chanel to pilot vlc: set chan [socket localhost $numcan] then I write command in $numcan On ubuntu it doesn't run The first command don't start vlc, but if I take of --rc-quiet, vlc start. But then, the second command give me the error message: couldn't open socket: connection refused what the matter ?
From: Uwe Klein on 30 Dec 2009 05:50 Horix wrote: > Hello, > > I'm trying to run a script on ubuntu. this script is ok on windows. > > My script command VLC, to watch and record TV. > > The command to start vlc is: > > set canal [open "|vlc nomdela chainfree --extraintf=rc --rc-host > localhost:$numcan --rc-quiet" w+] > > after I open a chanel to pilot vlc: > > set chan [socket localhost $numcan] > > then I write command in $numcan > > On ubuntu it doesn't run > The first command don't start vlc, but if I take of --rc-quiet, vlc > start. > But then, the second command give me the error message: > > couldn't open socket: connection refused > > what the matter ? sounds somehow familiar ( to both of us, it should ). http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/b17c56c0f4a417d6 Have you forgotten or is this an essentially different situation? uwe
From: Horix on 30 Dec 2009 09:24 Yes it's the same script. It's run well on windows. But now I'm trying this on linux and it's doesn't run
From: Uwe Klein on 30 Dec 2009 09:39 Horix wrote: > Yes it's the same script. > It's run well on windows. > > But now I'm trying this on linux and it's doesn't run "couldn't open socket: connection refused" would imply that the listening port is not open. vlc does not listen. what is the status of canal [ eof $canal ] i.e. has vlc died? Is there a firewall running. Is the portnumber privileged? i.e. below 1024? can you run vlc from an xterm with the command as used in the script? what error messages do you get in in the log files: /var/log/{messages,firewall,*} be introspective! uwe
From: Horix on 6 Jan 2010 09:41
I've solve my problem. vlc on linux is not the same on windows. The command to run correctly vlc is: set canal [open "|vlc nom_de_la_chain_free --extraintf=rc --rc-host localhost:$numcan --rc-fake-tty" w+] I've supress "--rc-quiet" and add "--rc-fake-tty". Now the error "couldn't open socket: connection refused" is out :-) and the script is running well. I use $tcl_platform(platform) to select the right command for running vlc. |