[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Using ssh to run a program on a remote computer
- From: Bob McClure Jr <robertmcclure earthlink net>
- To: redhat-install-list redhat com
- Subject: Re: Using ssh to run a program on a remote computer
- Date: Mon, 26 Jan 2004 10:10:51 -0600
On Mon, Jan 26, 2004 at 09:30:15AM -0500, Rick Bilonick wrote:
> I need to start camstream from an ssh session on my computer at work.
> This allows me to change the settings through its X11 gui. (This is not
> entirely convenient because it is very slow over a dial up line, but it
> works - just barely.) The problem is, I want to then restart camstream
> on the remote computer (at home) but have the display show up on the
> remote computer (at home, not the computer at work I'm connecting from).
> I tried running
>
> > ssh -x -l me xx.xx.xx.xx
>
> but I get an error. Here is what happens if I try to run xclock using
> "ssh -x ...":
>
> Last login: Mon Jan 26 08:58:49 2004 from
> 111 pentel1 pentel dialup nauticom net[chippy tangent chippy]$ xclock &
> [1] 16117
> [chippy tangent chippy]$ Error: Can't open display:
>
>
> [1]+ Exit 1 xclock
>
> Rick B.
I think you can do this without the -x option. While in the shell on
the remote machine, run this
export DISPLAY=:0.0
Then any X app you run will have the display show up on the remote
machine. Note: this does assume that an X server is running on the
remote. Also, when you restart camstream you will want to add nohup,
to wit:
nohup camstream &
or it will terminate when you log out.
Cheers,
--
Bob McClure, Jr. Bobcat Open Systems, Inc.
robertmcclure earthlink net http://www.bobcatos.com
If you stand for nothing, you'll fall for anything.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]