<?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: cgi script accepting html form to do ignite stuff in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605074#M853733</link>
    <description>okay, so this form works:&lt;BR /&gt;[ see attached ]&lt;BR /&gt;and it should work for all ignites.&lt;BR /&gt;&lt;BR /&gt;So, If the two inputs of the form are:&lt;BR /&gt;IPADDR and ARCHIVE,&lt;BR /&gt;and I've selected the submit button to run script ignite.pl&lt;BR /&gt;&lt;BR /&gt;What would script ignite.pl look like to run the command:&lt;BR /&gt;&lt;BR /&gt;bootsys -a -v -i '$ARCHIVE' $IPADDR&lt;BR /&gt;&lt;BR /&gt;?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Bill</description>
    <pubDate>Mon, 05 Nov 2001 08:06:39 GMT</pubDate>
    <dc:creator>Bill McNAMARA_1</dc:creator>
    <dc:date>2001-11-05T08:06:39Z</dc:date>
    <item>
      <title>cgi script accepting html form to do ignite stuff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605065#M853724</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm putting together a web end to ignite:&lt;BR /&gt;&lt;BR /&gt;A web server running on the iux server, has one page:&lt;BR /&gt;&lt;BR /&gt;Select [ drop down list of packages ]&lt;BR /&gt;&lt;BR /&gt;Server [ name of server to ignite ]&lt;BR /&gt;&lt;BR /&gt; [ Ignition Submission button ]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;&lt;BR /&gt;So writing this in ksh, how would you reckon it'd look!&lt;BR /&gt;&lt;BR /&gt;Recall the command generated and executed via the cgi-script would be:&lt;BR /&gt;&lt;BR /&gt;# bootsys -a -v -i 'Dropdown list2 text' clientname&lt;BR /&gt;&lt;BR /&gt;Thanks for any help,&lt;BR /&gt;Bill</description>
      <pubDate>Wed, 31 Oct 2001 17:27:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605065#M853724</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-10-31T17:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: cgi script accepting html form to do ignite stuff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605066#M853725</link>
      <description>ksh? Answer=ugly!!!&lt;BR /&gt;&lt;BR /&gt;Man you are trying to become the ignite master :-)) Why not use perl? It's got what ya need! and It's a lot prettier and easier to maintain.&lt;BR /&gt;&lt;BR /&gt;just my $.000002 worth (tax man loves me)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Wed, 31 Oct 2001 17:30:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605066#M853725</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-10-31T17:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: cgi script accepting html form to do ignite stuff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605067#M853726</link>
      <description>I agree, PERL would be much more useful and robust in this application.&lt;BR /&gt;&lt;BR /&gt;If you need an example let me know.&lt;BR /&gt;&lt;BR /&gt;C</description>
      <pubDate>Wed, 31 Oct 2001 17:39:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605067#M853726</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-10-31T17:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: cgi script accepting html form to do ignite stuff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605068#M853727</link>
      <description>Bill,&lt;BR /&gt;&lt;BR /&gt;It's not that ugly. PERL is obviously good but ksh is not that bad though. Most of my cgis are through ksh and they work fine. People tend to go for PERL because it has got built-in html modules. But you can do almost equally good job with ksh with sed's and awks. If your form has only "select" tags, it's more easy as you don't have to validate the fields.  &lt;BR /&gt;&lt;BR /&gt;So,for your stuff, ksh is more than enough. You are not doing heavy parsing.&lt;BR /&gt;&lt;BR /&gt;1. Get the system|package names&lt;BR /&gt;2. Run the commands against them.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 31 Oct 2001 18:00:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605068#M853727</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-10-31T18:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: cgi script accepting html form to do ignite stuff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605069#M853728</link>
      <description>You can use ksh, but perl is at least 100 times faster. Of course in your app,  speed isn't essential. Plus, with perl you can convert it to a "C" binary - the code is ugly, but it works great.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Wed, 31 Oct 2001 18:07:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605069#M853728</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-10-31T18:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: cgi script accepting html form to do ignite stuff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605070#M853729</link>
      <description>example perl would be nice then.&lt;BR /&gt;&lt;BR /&gt;I got v5.6.1 installed.&lt;BR /&gt;&lt;BR /&gt;the html for the form would be a bonus too!! .. or is that asking too much!&lt;BR /&gt;&lt;BR /&gt;Bill</description>
      <pubDate>Wed, 31 Oct 2001 18:41:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605070#M853729</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-10-31T18:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: cgi script accepting html form to do ignite stuff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605071#M853730</link>
      <description>Looks like you are more inclined to writing perl script. I use perl if I do a lot of text parsing and report generations. As I restate, ksh is more than enough in your case. Attached are simple form. &lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 31 Oct 2001 19:37:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605071#M853730</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-10-31T19:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: cgi script accepting html form to do ignite stuff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605072#M853731</link>
      <description>In defense of perl, attached is a sanitized version of a submission form.</description>
      <pubDate>Wed, 31 Oct 2001 20:16:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605072#M853731</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-10-31T20:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: cgi script accepting html form to do ignite stuff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605073#M853732</link>
      <description>Hello Bill,&lt;BR /&gt;&lt;BR /&gt;why do you not use the DeskTopKornShell?&lt;BR /&gt;dtksh is quite simple and fast for the GUI part of it.&lt;BR /&gt;You do have to know how to write Motif programs in C, but it is not that difficult...&lt;BR /&gt;&lt;BR /&gt;Just my $0.02,&lt;BR /&gt;Wodisch</description>
      <pubDate>Thu, 01 Nov 2001 15:56:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605073#M853732</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-11-01T15:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: cgi script accepting html form to do ignite stuff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605074#M853733</link>
      <description>okay, so this form works:&lt;BR /&gt;[ see attached ]&lt;BR /&gt;and it should work for all ignites.&lt;BR /&gt;&lt;BR /&gt;So, If the two inputs of the form are:&lt;BR /&gt;IPADDR and ARCHIVE,&lt;BR /&gt;and I've selected the submit button to run script ignite.pl&lt;BR /&gt;&lt;BR /&gt;What would script ignite.pl look like to run the command:&lt;BR /&gt;&lt;BR /&gt;bootsys -a -v -i '$ARCHIVE' $IPADDR&lt;BR /&gt;&lt;BR /&gt;?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Bill</description>
      <pubDate>Mon, 05 Nov 2001 08:06:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605074#M853733</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-11-05T08:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: cgi script accepting html form to do ignite stuff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605075#M853734</link>
      <description>There's a pretty cool program (freeware) called uncgi that'll take all form input and put it into environment variables.&lt;BR /&gt;&lt;A href="http://www.phys.lsu.edu/astro/tohline/uncgi-bin/" target="_blank"&gt;http://www.phys.lsu.edu/astro/tohline/uncgi-bin/&lt;/A&gt;&lt;BR /&gt;It works just fine.!&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Bill</description>
      <pubDate>Mon, 05 Nov 2001 11:21:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605075#M853734</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-11-05T11:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: cgi script accepting html form to do ignite stuff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605076#M853735</link>
      <description>here's the ksh to do the job with uncgi for those interested:&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;# create ignite cmd&lt;BR /&gt;#&lt;BR /&gt;# bill : wma@teamlog.fr&lt;BR /&gt;&lt;BR /&gt;echo "Content-type: text/html"&lt;BR /&gt;echo ""&lt;BR /&gt;echo "  &lt;TITLE&gt; Ignition &amp;gt; &amp;gt; &amp;gt; &lt;/TITLE&gt;"&lt;BR /&gt;echo "&lt;H2&gt; $(/usr/bin/date) &lt;/H2&gt;"&lt;BR /&gt;echo "&lt;B&gt;$WWW_ipaddress getting $WWW_archive&lt;/B&gt;"&lt;BR /&gt;echo "&lt;H2&gt; sending command: &lt;/H2&gt;"&lt;BR /&gt;echo "&lt;PRE&gt;"&lt;BR /&gt;echo "/opt/ignite/bin/bootsys -a -d -v -i '$WWW_archive' $WWW_ipaddress"&lt;BR /&gt;echo "id: \c"&lt;BR /&gt;id&lt;BR /&gt;#&lt;BR /&gt;# would be a good idea to do a ping to ensure the system is up&lt;BR /&gt;# if not, send bch boot info&lt;BR /&gt;# Also mention the /.rhosts&lt;BR /&gt;# the hist.log, out.log and err.log files need to be accessible in /var/www/cgi-bin/&lt;BR /&gt;#&lt;BR /&gt;/opt/ignite/bin/bootsys -a -d -v -i "${WWW_archive}" $WWW_ipaddress 1&amp;gt;out.log 2&amp;gt; err.log&lt;BR /&gt;echo "&lt;/PRE&gt;"&lt;BR /&gt;echo " * $WWW_ipaddress | $WWW_archive | $(/usr/bin/date) | " &amp;gt;&amp;gt; hist.log&lt;BR /&gt;echo "&lt;BR /&gt;Logging $REMOTE_ADDR, ip, username and request to file"&lt;BR /&gt;echo ""&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Mon, 05 Nov 2001 11:23:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605076#M853735</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-11-05T11:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: cgi script accepting html form to do ignite stuff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605077#M853736</link>
      <description />
      <pubDate>Mon, 05 Nov 2001 13:22:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cgi-script-accepting-html-form-to-do-ignite-stuff/m-p/2605077#M853736</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2001-11-05T13:22:41Z</dc:date>
    </item>
  </channel>
</rss>

