Solved

Multiple commands within rsh

Posted on 2010-09-15
3
926 Views
Last Modified: 2013-12-26
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
Comment
Question by:lostinspace9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 33682038
Use single quotes -
rsh server2 'setenv DISPLAY server2:0.0 ; /usr/bin/X11/xterm -e dxclock'


0
 

Author Comment

by:lostinspace9
ID: 33718174
Thanks
0
 

Author Closing Comment

by:lostinspace9
ID: 33743021
No
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux "time" command output redirection 16 258
Showing a username in UNIX and using that name in the script 4 70
Unix Command (AIX) 3 49
swp file in unix 16 34
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Utilizing an array to gracefully append to a list of EmailAddresses
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question