I am new to Linux and after the first try (rsh and Suse 11.3) failed, I try to do it in 12.3.
The Problem:
I wanna start a script in a fixed Terminal, the Script now should make a ssh connection to antoher PC and start a script to display in another Terminal on PC 1
The old solution:
The old (abaout 8 years old) solution was like this:
rsh "host" /usr/bin/X11/xterm -display "myPC":0 -geometry 52x12 +sb -ls -fg blue -bg white -e /home/dir/script.sh
This works fine, but now its time for a newer PC and a newer Linux-Version, but the 12.3 dont have a rsh-Deamon so i found out, that i have to use ssh.
The new solution:
ssh "host" /home/dir/script.sh
And here we go, first the remotescript starts in the same window, where I use this command, second, the colors are gone
Is there any way to fix that problems?
PS:
Both PCs have a .ssh/config file with the following line:
Gossi91 wrote:
> Hi Guys,
>
> I am new to Linux and after the first try (rsh and Suse 11.3) failed, I
> try to do it in 12.3.
>
> The Problem:
> I wanna start a script in a fixed Terminal, the Script now should make a
> ssh connection to antoher PC and start a script to display in another
> Terminal on PC 1
>
> The old solution:
> The old (abaout 8 years old) solution was like this:
>
> Code:
> --------------------
> rsh “host” /usr/bin/X11/xterm -display “myPC”:0 -geometry 52x12 +sb -ls -fg blue -bg white -e /home/dir/script.sh
> --------------------
>
>
> This works fine, but now its time for a newer PC and a newer
> Linux-Version, but the 12.3 dont have a rsh-Deamon so i found out, that
> i have to use ssh.
>
> The new solution:
>
> Code:
> --------------------
> ssh “host” /home/dir/script.sh
> --------------------
>
>
> And here we go, first the remotescript starts in the same window, where
> I use this command, second, the colors are gone
If you compare your old command and your new one, your old one starts a
separate terminal and your new one doesn’t. So I’m not sure why you’re
surprised about that?
That ‘-display “myPC”:0’ looks wrong, as that overrides the “-X” option to ssh. Omit that part of the argument, so that the X-forwarding can handle the display.