06-09-2007
Quote:
Originally Posted by porter
You don't need a sledgehammer to crack a nut. If you already have a command line program then you can wrap this up as a cgi program.
Start with an initial static HTML page which is a form with a submit button. This would then post the request to the cgi program. This would be a script which would then call your command line program and package up the reply as HTML with an HTTP header.
Would you please provide more details and references on how to wrap the C++ program be to a cgi program.
Last edited by cy163; 06-09-2007 at 12:23 AM..
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i've never done this before. i created a script that I placed in /usr/bin, but want to create a man page for it. i'm clueless
thanks (3 Replies)
Discussion started by: theDirtiest
3 Replies
2. What is on Your Mind?
Post what languages (including scripting) you know, why and where you think that language is most usable. Also include libraries in which you're really good at (libusb, gtk, qt, etc).
assembly?
C or C++?
perl or python?
pascal?
bash or csh/tcsh?
opengl?
gtk or qt?
mono? (27 Replies)
Discussion started by: redoubtable
27 Replies
3. Emergency UNIX and Linux Support
Hi all
I have just had SAN allocate 4*30 GB of disks and had created a new scalable vg and assigned the disks to it:
I used smitty to create vg and the command is: x -y'vgdata1' hdisk82 hdisk83 hdisk84 hdisk85
root@aadcxs08 / : lsvg vgdata1
VOLUME GROUP: vgdata1 VG... (4 Replies)
Discussion started by: hedkandi
4 Replies
4. What is on Your Mind?
I would love the idea to develop games. How can I teach myself computer programming? What programs or software must I use? I have the new iMac? (5 Replies)
Discussion started by: Anna Hussie
5 Replies
5. Shell Programming and Scripting
I need a shell script to copy files frm a linux machine to a windows machine using SCP. The files keeps changing day-to-day. I have to copy the latest file to the windows machine frm the linux machine.
for example :In Linux, On July 20, the file name will be 20.txt and it should be copied to... (3 Replies)
Discussion started by: nithin6034
3 Replies
6. What is on Your Mind?
In case you have not seen it, we have a UNIX and Linux Timeline on FB.
If you have a few free moments, could you review the timeline and post back here in this thread with your suggestions and ideas for new entries and milestones?
Thanks! (1 Reply)
Discussion started by: Neo
1 Replies
7. Ubuntu
recommend books to understand ubuntu ...... (14 Replies)
Discussion started by: vyom
14 Replies
8. Hardware
mine current HP R class machine comes with scsi but not usb port. i am thinking it is possible to get a scsi to usb converter to help to connect usb-enabled devices such as usb-enabled dvd writer, usb-enabled portable hard disk. pls advise. thanks :) (1 Reply)
Discussion started by: lchunleo
1 Replies
LEARN ABOUT DEBIAN
cgi_redirect_uri
cgi_redirect_uri(3) cgi/cgi.h cgi_redirect_uri(3)
NAME
cgi_redirect_uri - send an HTTP 302 redirect response
SYNOPSIS
#include <cgi/cgi.h>
void cgi_redirect_uri (CGI *cgi, const char *fmt, ...)
ATTRIBUTE_PRINTF(2,3);
ARGUMENTS
cgi - cgi struct
fmt - printf style format with args
DESCRIPTION
cgi_redirect_uri will redirect the user to another page on your site. This version takes the full URL, including proto-
col/domain/port/path. As with all printf style commands, you should not call this with arbitrary input that may contain % characters, if
you are forwarding something directly, use a format like cgi_redirect (cgi, "%s", buf)
RETURN VALUE
None
SEE ALSO
cgi_debug_init(3), cgi_parse(3), cgi_destroy(3), cgi_js_escape(3), cgi_html_escape_strfunc(3), cgi_register_strfuncs(3), cgi_output(3),
parse_rfc2388(3), cgi_url_validate(3), open_upload(3), cgi_cs_init(3), cgi_url_escape_more(3), cgi_html_strip_strfunc(3), cgi_neo_error(3),
cgi_redirect(3), cgi_filehandle(3), cgi_register_parse_cb(3), cgi_url_escape(3), cgi_init(3), cgi_redirect_uri(3), cgi_cookie_clear(3),
cgi_url_unescape(3), cgi_vredirect(3), cgi_display(3), cgi_html_ws_strip(3), cgi_error(3), cgi_cookie_set(3), cgi_text_html_strfunc(3),
cgi_cookie_authority
ClearSilver 12 July 2007 cgi_redirect_uri(3)