Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 938
  • Last Modified:

Multiple commands within rsh

I am trying to run the following rsh command but cannot get it to work properly.  A xterm and dxclock come up but it is on the server I issued the rsh on.

rsh server2 setenv DISPLAY server2:0.0 ; /usr/bin/X11/xterm -e dxclock

Note: I will be running a c-shell script instead of dxclock.
0
lostinspace9
Asked:
lostinspace9
  • 2
1 Solution
 
woolmilkporcCommented:
Use single quotes -
rsh server2 'setenv DISPLAY server2:0.0 ; /usr/bin/X11/xterm -e dxclock'


0
 
lostinspace9Author Commented:
Thanks
0
 
lostinspace9Author Commented:
No
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now