- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cgi script accepting html form to do ignite st...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 09:27 AM
10-31-2001 09:27 AM
I'm putting together a web end to ignite:
A web server running on the iux server, has one page:
Select [ drop down list of packages ]
Server [ name of server to ignite ]
[ Ignition Submission button ]
--
So writing this in ksh, how would you reckon it'd look!
Recall the command generated and executed via the cgi-script would be:
# bootsys -a -v -i 'Dropdown list2 text' clientname
Thanks for any help,
Bill
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 09:30 AM
10-31-2001 09:30 AM
Re: cgi script accepting html form to do ignite stuff
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.
just my $.000002 worth (tax man loves me)
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 09:39 AM
10-31-2001 09:39 AM
Re: cgi script accepting html form to do ignite stuff
If you need an example let me know.
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 10:00 AM
10-31-2001 10:00 AM
Re: cgi script accepting html form to do ignite stuff
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.
So,for your stuff, ksh is more than enough. You are not doing heavy parsing.
1. Get the system|package names
2. Run the commands against them.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 10:07 AM
10-31-2001 10:07 AM
Re: cgi script accepting html form to do ignite stuff
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 10:41 AM
10-31-2001 10:41 AM
Re: cgi script accepting html form to do ignite stuff
I got v5.6.1 installed.
the html for the form would be a bonus too!! .. or is that asking too much!
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 11:37 AM
10-31-2001 11:37 AM
Re: cgi script accepting html form to do ignite stuff
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 12:16 PM
10-31-2001 12:16 PM
Re: cgi script accepting html form to do ignite stuff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2001 07:56 AM
11-01-2001 07:56 AM
Re: cgi script accepting html form to do ignite stuff
why do you not use the DeskTopKornShell?
dtksh is quite simple and fast for the GUI part of it.
You do have to know how to write Motif programs in C, but it is not that difficult...
Just my $0.02,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2001 12:06 AM
11-05-2001 12:06 AM
Re: cgi script accepting html form to do ignite stuff
[ see attached ]
and it should work for all ignites.
So, If the two inputs of the form are:
IPADDR and ARCHIVE,
and I've selected the submit button to run script ignite.pl
What would script ignite.pl look like to run the command:
bootsys -a -v -i '$ARCHIVE' $IPADDR
?
Thanks,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2001 03:21 AM
11-05-2001 03:21 AM
Re: cgi script accepting html form to do ignite stuff
http://www.phys.lsu.edu/astro/tohline/uncgi-bin/
It works just fine.!
Thanks.
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2001 03:23 AM
11-05-2001 03:23 AM
Re: cgi script accepting html form to do ignite stuff
#!/bin/ksh
# create ignite cmd
#
# bill : wma@teamlog.fr
echo "Content-type: text/html"
echo ""
echo "
echo "
$(/usr/bin/date)
"echo "$WWW_ipaddress getting $WWW_archive"
echo "
sending command:
"echo "
""
echo "/opt/ignite/bin/bootsys -a -d -v -i '$WWW_archive' $WWW_ipaddress"
echo "id: \c"
id
#
# would be a good idea to do a ping to ensure the system is up
# if not, send bch boot info
# Also mention the /.rhosts
# the hist.log, out.log and err.log files need to be accessible in /var/www/cgi-bin/
#
/opt/ignite/bin/bootsys -a -d -v -i "${WWW_archive}" $WWW_ipaddress 1>out.log 2> err.log
echo "
echo " * $WWW_ipaddress | $WWW_archive | $(/usr/bin/date) | " >> hist.log
echo "
Logging $REMOTE_ADDR, ip, username and request to file"
echo ""
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2001 05:22 AM