<?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 Scripting question - inside my apache webpage in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481431#M847232</link>
    <description>...got a friends performance webpage running so sweetly (just love it Patrick ..)&lt;BR /&gt;&lt;BR /&gt;anyway, thought...hmmm....I'd like to throw in a click &amp;amp; see for system uptime.  Well it works fine - for the server running the apache services, but when I try to get it to run for a different server...nope, I just get the uptime info for the server running apache, no matter what other server I select.&lt;BR /&gt;Obviously running remsh for uptime for any server works perfect......just not within this webpage.&lt;BR /&gt;Hey Patrick if you listening....it's a quick 10 for you -or- anybody else who can tell me how to run a remote uptime command on a webpage.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Rita&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What am I missing ....</description>
    <pubDate>Tue, 08 Feb 2005 15:25:57 GMT</pubDate>
    <dc:creator>Rita C Workman</dc:creator>
    <dc:date>2005-02-08T15:25:57Z</dc:date>
    <item>
      <title>Scripting question - inside my apache webpage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481431#M847232</link>
      <description>...got a friends performance webpage running so sweetly (just love it Patrick ..)&lt;BR /&gt;&lt;BR /&gt;anyway, thought...hmmm....I'd like to throw in a click &amp;amp; see for system uptime.  Well it works fine - for the server running the apache services, but when I try to get it to run for a different server...nope, I just get the uptime info for the server running apache, no matter what other server I select.&lt;BR /&gt;Obviously running remsh for uptime for any server works perfect......just not within this webpage.&lt;BR /&gt;Hey Patrick if you listening....it's a quick 10 for you -or- anybody else who can tell me how to run a remote uptime command on a webpage.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Rita&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What am I missing ....</description>
      <pubDate>Tue, 08 Feb 2005 15:25:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481431#M847232</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2005-02-08T15:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question - inside my apache webpage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481432#M847233</link>
      <description>a perl cgi ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Tue, 08 Feb 2005 15:40:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481432#M847233</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-02-08T15:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question - inside my apache webpage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481433#M847234</link>
      <description>Would be great...and don't tell Clay, but I haven't gotten around to learning perl...&lt;BR /&gt;&lt;BR /&gt;Rita&lt;BR /&gt;&lt;BR /&gt;And with juggling too many projects again...Don't think I'm gonna see a book on perl anytime soon...</description>
      <pubDate>Tue, 08 Feb 2005 15:46:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481433#M847234</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2005-02-08T15:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question - inside my apache webpage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481434#M847235</link>
      <description>&lt;BR /&gt;BAD Rita, VERY BAD Rita!!! Go sit in the corner!!!&lt;BR /&gt;&lt;BR /&gt;Here go CHEAT (again VERY BAD): &lt;A href="http://www.freebsddiary.org/uptime.php" target="_blank"&gt;http://www.freebsddiary.org/uptime.php&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Tue, 08 Feb 2005 15:51:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481434#M847235</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-02-08T15:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question - inside my apache webpage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481435#M847236</link>
      <description>and how to use "forms" &lt;A href="http://www.cclabs.missouri.edu/things/instruction/perl/perlcourse.html#contents" target="_blank"&gt;http://www.cclabs.missouri.edu/things/instruction/perl/perlcourse.html#contents&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Tue, 08 Feb 2005 15:57:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481435#M847236</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-02-08T15:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question - inside my apache webpage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481436#M847237</link>
      <description>Boohoo....sob...sob...sob...&lt;BR /&gt;&lt;BR /&gt;OK Harry, I'll try and find time to pick up Perl, any chance you'll come here and help me migrate 4 servers, get those new RP84xx boxes fired up and ready; get that 2-3 ton UPS installed; get the old one out; move all the equipment around in the computer room (and you know that means re-cabling); move out the Novell stuff to the new smaller computer room; surplus all the old stuff out of here........And I'm just getting warmed up cause there's about 5 more smaller boxes that need fired up and things migrated....&lt;BR /&gt;&lt;BR /&gt;What d'ya say Harry....I could use the rest !&lt;BR /&gt;&lt;BR /&gt;Rita</description>
      <pubDate>Tue, 08 Feb 2005 15:59:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481436#M847237</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2005-02-08T15:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question - inside my apache webpage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481437#M847238</link>
      <description>&lt;BR /&gt;Some of those samples show how to use Shell crap programming :-))&lt;BR /&gt;&lt;BR /&gt;I'd love to help you, but I'm trying to get my new lab built (proxy, pix, network switch, vpn, servers, ..., electronic lock on door) and the old one rebuilt (additional 50KvA UPS, a few more tons of air, cabling, icky shuffling of the servers from one room to another, ...)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Tue, 08 Feb 2005 16:10:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481437#M847238</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-02-08T16:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question - inside my apache webpage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481438#M847239</link>
      <description>Rita,&lt;BR /&gt;&lt;BR /&gt;Here's something I just came up with that I think will work for you.&lt;BR /&gt;&lt;BR /&gt;# cat uptime.cgi&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;SYSNAME=$1&lt;BR /&gt;&lt;BR /&gt;/bin/cat &amp;lt;&amp;lt; EOF&lt;BR /&gt;Content-Type: text/html&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;  &lt;TITLE&gt;${SYSNAME} performance for ${W} of ${MONTH} ${YEAR}&lt;/TITLE&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;!-- Background white, links blue (unvisited), navy (visited), red (active) --&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;UPTIME=$(remsh ${SYSNAME} -l root uptime)&lt;BR /&gt;&lt;BR /&gt;/bin/cat &amp;lt;&amp;lt; EOF&lt;BR /&gt;&lt;H3&gt;UPTIME FOR ${SYSNAME} IS : ${UPTIME}&lt;/H3&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hqumf01/sysinfo/perf_stats/index.html" target="_blank"&gt;Back to Main Page&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;This page maintained by &lt;A href="mailto:wallekp@wilsonart.com" target="_blank"&gt;Patrick Wallek&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;Now the key to the script is the 'remsh' line.  The remsh will be executed as the user that the Apache server is running as, which is probably 'www'.  Now you've either got to get remsh (or ssh) working for www, or set up  someone else's .rhosts file to allow www to remsh to them to run uptime.&lt;BR /&gt;&lt;BR /&gt;The uptime.cgi script goes in the Apache web server's cgi-bin directory and it needs to have 555 permissions.&lt;BR /&gt;&lt;BR /&gt;Once that works, the rest is pretty easy.&lt;BR /&gt;&lt;BR /&gt;Now you call the script from your main web page like this:&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Feb 2005 16:26:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481438#M847239</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-02-08T16:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question - inside my apache webpage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481439#M847240</link>
      <description>Hi Rita,&lt;BR /&gt;&lt;BR /&gt;If you want it in perl, I'll write it in perl for you.&lt;BR /&gt;&lt;BR /&gt;The webpage will be simple.&lt;BR /&gt;&lt;BR /&gt;It will have a &lt;!--#exec cgi="/cgi-bin/sep-script"--&gt;&lt;BR /&gt;&lt;BR /&gt;In it.&lt;BR /&gt;&lt;BR /&gt;There may initially be some permission issues with the binaries, but I doubt it.&lt;BR /&gt;&lt;BR /&gt;I do this kind of stuff quite regularly for my customers.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Feb 2005 16:32:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481439#M847240</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-02-08T16:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question - inside my apache webpage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481440#M847241</link>
      <description>I missed a closing quote in my last HTML statement.  There needs to be a closing " after the servername&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://webserver/cgi-bin/uptime.cgi?servername" target="_blank"&gt;UPTIME OUTPUT&lt;/A&gt;</description>
      <pubDate>Tue, 08 Feb 2005 16:50:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481440#M847241</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-02-08T16:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question - inside my apache webpage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481441#M847242</link>
      <description>Rita,&lt;BR /&gt;&lt;BR /&gt;What's the weather like out there?  I'm only working 60 hours a week, maybe I can come and help...&lt;BR /&gt;&lt;BR /&gt;John</description>
      <pubDate>Tue, 08 Feb 2005 16:55:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481441#M847242</guid>
      <dc:creator>John Payne_2</dc:creator>
      <dc:date>2005-02-08T16:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question - inside my apache webpage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481442#M847243</link>
      <description>Oh you guys are so nice, even though I've been so bad.&lt;BR /&gt;&lt;BR /&gt;Harry...you have fun, I'll be thinking of you as they install our UPS, and then our equipment shuffle starts.&lt;BR /&gt;&lt;BR /&gt;Patrick &amp;amp; Stephen...many thanks and look forward to seeing you guys at the next conference.&lt;BR /&gt;&lt;BR /&gt;John..It's Feb 9 in a mountain state, and the temp on Monday was 61 but starting Thursday...snow.  &lt;BR /&gt;&lt;BR /&gt;Thanks bunches !&lt;BR /&gt;Rita&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Feb 2005 08:32:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question-inside-my-apache-webpage/m-p/3481442#M847243</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2005-02-09T08:32:12Z</dc:date>
    </item>
  </channel>
</rss>

