<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: remote execution in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-execution/m-p/2631551#M41402</link>
    <description>If you are running Xwindows (which is not 'normal' Unix) then the remote program expects to have either -display set on the command line or the DISPLAY variable set in the remote environment prior to execution of the command. This is to tell the program where to put the image.&lt;BR /&gt;&lt;BR /&gt;This is not automatic although with caveats, you could have the remote host figure out your DISPLAY value automatically.  Suppose you want to run xclock remotely and display the result on your screen. Assuming you are using telnet to the remote system, you can put this into your .profile:&lt;BR /&gt;&lt;BR /&gt;export DISPLAY="$(who -muR | awk '{print $NF}'):0.0"&lt;BR /&gt;&lt;BR /&gt;Now the DISLAY variable will be set automatically when you login. NOTE: remsh does not perform a normal login so you would have to run the command locally. So instead of:&lt;BR /&gt;&lt;BR /&gt;$ remsh remoteCPU /usr/bin/X11/xclock&lt;BR /&gt;&lt;BR /&gt;you would have to do something like:&lt;BR /&gt;&lt;BR /&gt;$ remsh remoteCPU /usr/bin/X11/xclock -display "$(hostname):0.0"&lt;BR /&gt;&lt;BR /&gt;or you could make it simpler by keeing the DISPLAY variable set in your local environment with something like:&lt;BR /&gt;&lt;BR /&gt;export DISPLAY="$(hostname):0.0"&lt;BR /&gt;&lt;BR /&gt;These examples assume that you are running an HP-UX workstation and not a PC.  For the PC solution, your remote command would have to somehow obtain the hostname or IP address of the PC and include it on the command line, usually by using the -display option in the program.</description>
    <pubDate>Tue, 18 Dec 2001 13:36:56 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2001-12-18T13:36:56Z</dc:date>
    <item>
      <title>remote execution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-execution/m-p/2631548#M41399</link>
      <description>I want execute a program on a remote host but my shell return this message:&lt;BR /&gt;&lt;BR /&gt;Error: Can't open display:&lt;BR /&gt;&lt;BR /&gt;It's normal !&lt;BR /&gt;&lt;BR /&gt;I say that is possible, how...&lt;BR /&gt;&lt;BR /&gt;Thank in advance.</description>
      <pubDate>Fri, 14 Dec 2001 14:34:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-execution/m-p/2631548#M41399</guid>
      <dc:creator>Francois Bariselle_3</dc:creator>
      <dc:date>2001-12-14T14:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: remote execution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-execution/m-p/2631549#M41400</link>
      <description>hey,&lt;BR /&gt;&lt;BR /&gt;U can use 'remsh' for doing this. Check whether 'rexecd' is running on the server ?&lt;BR /&gt;&lt;BR /&gt;See man pages of rexecd, rexec and remsh&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Fri, 14 Dec 2001 15:05:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-execution/m-p/2631549#M41400</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2001-12-14T15:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: remote execution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-execution/m-p/2631550#M41401</link>
      <description>It seems like you are trying to run graphic program.&lt;BR /&gt;Do something like this:&lt;BR /&gt;xhost + localbox&lt;BR /&gt;and then&lt;BR /&gt;remsh remotebox? /usr/bin/X11/xclock -display localbox:0.0</description>
      <pubDate>Tue, 18 Dec 2001 09:41:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-execution/m-p/2631550#M41401</guid>
      <dc:creator>Alexander Gavrenkov</dc:creator>
      <dc:date>2001-12-18T09:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: remote execution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-execution/m-p/2631551#M41402</link>
      <description>If you are running Xwindows (which is not 'normal' Unix) then the remote program expects to have either -display set on the command line or the DISPLAY variable set in the remote environment prior to execution of the command. This is to tell the program where to put the image.&lt;BR /&gt;&lt;BR /&gt;This is not automatic although with caveats, you could have the remote host figure out your DISPLAY value automatically.  Suppose you want to run xclock remotely and display the result on your screen. Assuming you are using telnet to the remote system, you can put this into your .profile:&lt;BR /&gt;&lt;BR /&gt;export DISPLAY="$(who -muR | awk '{print $NF}'):0.0"&lt;BR /&gt;&lt;BR /&gt;Now the DISLAY variable will be set automatically when you login. NOTE: remsh does not perform a normal login so you would have to run the command locally. So instead of:&lt;BR /&gt;&lt;BR /&gt;$ remsh remoteCPU /usr/bin/X11/xclock&lt;BR /&gt;&lt;BR /&gt;you would have to do something like:&lt;BR /&gt;&lt;BR /&gt;$ remsh remoteCPU /usr/bin/X11/xclock -display "$(hostname):0.0"&lt;BR /&gt;&lt;BR /&gt;or you could make it simpler by keeing the DISPLAY variable set in your local environment with something like:&lt;BR /&gt;&lt;BR /&gt;export DISPLAY="$(hostname):0.0"&lt;BR /&gt;&lt;BR /&gt;These examples assume that you are running an HP-UX workstation and not a PC.  For the PC solution, your remote command would have to somehow obtain the hostname or IP address of the PC and include it on the command line, usually by using the -display option in the program.</description>
      <pubDate>Tue, 18 Dec 2001 13:36:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-execution/m-p/2631551#M41402</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-12-18T13:36:56Z</dc:date>
    </item>
  </channel>
</rss>

