Solved

Multiple commands within rsh

Posted on 2010-09-15
3
917 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
  • 2
3 Comments
 
LVL 68

Accepted Solution

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


0
 

Author Comment

by:lostinspace9
Comment Utility
Thanks
0
 

Author Closing Comment

by:lostinspace9
Comment Utility
No
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now