Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2003

    getting hostname of computer through rsh

    Hi, in my .cshrc file I would like to set DISPLAY.
    I know how to do that, thats not the problem though.

    Lets say I have a machine called mike and I rsh to a machine called luke, I would somehow like
    to set the DISPLAY variable to mike:0 automatically. Now If I could get mike into an enviroment variable, I could set my display in .cshrc using that variable.

    Anybody know of how to go about doing this?


  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Täby, Sweden
    My tip is that you should use ssh instead of rsh. It's more secure, and you can set it up to perform automatic X11 forwarding.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts