vlc remote executing with ssh fails

*nix specific usage questions
vvvua
New Cone
New Cone
Posts: 4
Joined: 06 Nov 2006 17:12
Contact:

vlc remote executing with ssh fails

Postby vvvua » 21 Dec 2006 18:51

Hello.
I have 2 PCs.
1-st with video capture device
2-nd control system

I want to start vlc from 2-nd PC at 1-st PC with ssh command and vlc starts, but then exits.

Code: Select all

ssh video@10.0.0.1 "/home/video/go" VLC media player 0.8.6 Janus
"/home/video/go" - is a script with command line like
/usr/bin/vlc -I dummy --daemon v4l:// ...
BUT(!) When i run manually by

Code: Select all

ssh video@10.0.0.1 video@10.0.0.1$/home/video/go VLC media player 0.8.6 Janus
vlc starts and all works fine.
What is wrong?

P.S. screen is bad idea, couse i have to execute commands in scipts running from cron

dimstar
Cone that earned his stripes
Cone that earned his stripes
Posts: 177
Joined: 15 Dec 2006 14:05
Location: Bucuresti, Romania
Contact:

Postby dimstar » 22 Dec 2006 14:01

I would guess that in the first case, when you start ssh with the go-command, it will be started as the shell that is dying as soon as the go-script finishes.

A simple WA could be to start vlc with
vlc -I... &
to fork it?

It isprobably a timing issue, that the go script exits before vlc is completely initialized and can take it's own control.

Regards,
Dominique

vvvua
New Cone
New Cone
Posts: 4
Joined: 06 Nov 2006 17:12
Contact:

Postby vvvua » 22 Dec 2006 14:20

no.
vlc needs tty allocation.
all fixed.
Thanks.

dimstar
Cone that earned his stripes
Cone that earned his stripes
Posts: 177
Joined: 15 Dec 2006 14:05
Location: Bucuresti, Romania
Contact:

Postby dimstar » 22 Dec 2006 14:22

vvvua,

for the records: can you tell the solution here, so in case somebody else comes accross the problem, he has chances not only to find that somebody else had the problem, but also a solution?

That's usually what I miss in Forums :-)

vvvua
New Cone
New Cone
Posts: 4
Joined: 06 Nov 2006 17:12
Contact:

Postby vvvua » 22 Dec 2006 14:46

ok.
solution is:
1. setup ~/.ssh/known_hosts for ssh2 authentification without password promt
2. Now you can execute vlc or script with vlc inside with

Code: Select all

ssh -t user@remote_mashine "/path/to/vlc/vlc -I dummy --daemon ... ... ..."


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 1 guest