Thread overview |
---|
November 21, 2002 Script and batch command. | ||||
---|---|---|---|---|
| ||||
Did anyone made HTTP server script or DOS batch by DMDscript? HTTP server script accept any *.EXE / *.DLL to manager. li |
November 21, 2002 Re: Script and batch command. | ||||
---|---|---|---|---|
| ||||
Posted in reply to zhang li | I don't understand the question. -Walter "zhang li" <li@stands.3322.org> wrote in message news:arimem$ejh$1@digitaldaemon.com... > Did anyone made HTTP server script or DOS batch by DMDscript? > > HTTP server script accept any *.EXE / *.DLL to manager. > > li > > |
November 22, 2002 Re: Script and batch command. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | *.ASP, *.PL, *.JSP, *.PHP,.... is server script. they control stdin/stdout as HTTP input/output. for example, a simply "index.pl" script print a Html page to HTTP guest. --------------- #!/usr/bin/perl -w print "Content-type: text/html\n\n",<<HTML; <html> <head> <title>Guest book</title> </head> <body> <a href="..">Home</a> </body> </html> HTML --------------- index.pl request c:\perl\bin\perl.exe for windows. or #!/usr/bin/perl -w for Linux/FreeBSD Also use *.EXE, *.DLL, to manager HTTP server. http://www.omnicron.ca/httpd/docs/index.html li "Walter" <walter@digitalmars.com> дÈëÏûÏ¢ÐÂÎÅ :arjqre$1o3b$1@digitaldaemon.com... > I don't understand the question. -Walter > > "zhang li" <li@stands.3322.org> wrote in message news:arimem$ejh$1@digitaldaemon.com... > > Did anyone made HTTP server script or DOS batch by DMDscript? > > > > HTTP server script accept any *.EXE / *.DLL to manager. > > > > li > > > > > > |
November 22, 2002 Re: Script and batch command. | ||||
---|---|---|---|---|
| ||||
Posted in reply to zhang li | I just don't understand what you're asking. In any case, the dmdscript engine can read from stdin and write to stdout, if that will work for your application. -Walter "zhang li" <li@stands.3322.org> wrote in message news:ark7m1$262v$1@digitaldaemon.com... > *.ASP, *.PL, *.JSP, *.PHP,.... is server script. they control stdin/stdout as HTTP input/output. > > for example, a simply "index.pl" script print a Html page to HTTP guest. > --------------- > #!/usr/bin/perl -w > > > print "Content-type: text/html\n\n",<<HTML; > > <html> > <head> > <title>Guest book</title> > </head> > <body> > > <a href="..">Home</a> > </body> > </html> > HTML > --------------- > > index.pl request c:\perl\bin\perl.exe for windows. > or #!/usr/bin/perl -w for Linux/FreeBSD > > Also use *.EXE, *.DLL, to manager HTTP server. http://www.omnicron.ca/httpd/docs/index.html > > > li > > "Walter" <walter@digitalmars.com> дÈëÏûÏ¢ÐÂÎÅ :arjqre$1o3b$1@digitaldaemon.com... > > I don't understand the question. -Walter > > > > "zhang li" <li@stands.3322.org> wrote in message news:arimem$ejh$1@digitaldaemon.com... > > > Did anyone made HTTP server script or DOS batch by DMDscript? > > > > > > HTTP server script accept any *.EXE / *.DLL to manager. > > > > > > li > > > > > > > > > > > > |
November 23, 2002 Re: Script and batch command. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | It has a little problem, the DSDscript print copyright info first, the info also send to guest. yet Internet Explorer need the first info from server. print "Content-type: text/html\n\n", so, the copyright info should print to stderr, will not be use as HTTP output. regard li "Walter" <walter@digitalmars.com> дÈëÏûÏ¢ÐÂÎÅ :arlntd$pf6$2@digitaldaemon.com... > I just don't understand what you're asking. In any case, the dmdscript engine can read from stdin and write to stdout, if that will work for your application. > > -Walter > |
November 23, 2002 Re: Script and batch command. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | maybe the Dscript can not work better than a *.exe program. .............. Final. it not adapt to a server manager. li |
November 24, 2002 Re: Script and batch command. | ||||
---|---|---|---|---|
| ||||
Posted in reply to zhang li | So, dmdscript will work for you if the startup message is sent to stderr rather than stdout, no other changes? -Walter "zhang li" <li@stands.3322.org> wrote in message news:armvgp$23la$1@digitaldaemon.com... > It has a little problem, the DSDscript print copyright info first, the info > also send to guest. > > yet Internet Explorer need the first info from server. print "Content-type: text/html\n\n", > > so, the copyright info should print to stderr, will not be use as HTTP output. > > > regard > > li > > > "Walter" <walter@digitalmars.com> дÈëÏûÏ¢ÐÂÎÅ :arlntd$pf6$2@digitaldaemon.com... > > I just don't understand what you're asking. In any case, the dmdscript engine can read from stdin and write to stdout, if that will work for your > > application. > > > > -Walter > > > > |
November 24, 2002 Re: Script and batch command. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Attachments: | No fully adapt to HTTP manager. Made a basis HTTP manager. if it no make pointer error, will work at http://127.0.0.1/cgi-bin/ directory. For the post method of send a form, it need check environment "HTTP_CONTENT_LENGTH=??" to read data bytes from stdin.(add a string to numeric function) try it, you will know the mean. :) li "Walter" <walter@digitalmars.com> дÈëÏûÏ¢ÐÂÎÅ :arps4e$2d99$1@digitaldaemon.com... > So, dmdscript will work for you if the startup message is sent to stderr rather than stdout, no other changes? -Walter > > "zhang li" <li@stands.3322.org> wrote in message news:armvgp$23la$1@digitaldaemon.com... > > It has a little problem, the DSDscript print copyright info first, the > info > > also send to guest. > > > > yet Internet Explorer need the first info from server. print "Content-type: text/html\n\n", > > > > so, the copyright info should print to stderr, will not be use as HTTP output. > > > > > > regard > > > > li > > > > > > "Walter" <walter@digitalmars.com> дÈëÏûÏ¢ÐÂÎÅ :arlntd$pf6$2@digitaldaemon.com... > > > I just don't understand what you're asking. In any case, the dmdscript engine can read from stdin and write to stdout, if that will work for > your > > > application. > > > > > > -Walter > > > > > > > > > |
November 24, 2002 Re: Script and batch command. | ||||
---|---|---|---|---|
| ||||
Posted in reply to zhang li Attachments:
| So, it needs to be able to do a getenv()? "zhang li" <li@stands.3322.org> wrote in message news:arpu83$2f8u$1@digitaldaemon.com... No fully adapt to HTTP manager. Made a basis HTTP manager. if it no make pointer error, will work at http://127.0.0.1/cgi-bin/ directory. For the post method of send a form, it need check environment "HTTP_CONTENT_LENGTH=??" to read data bytes from stdin.(add a string to numeric function) try it, you will know the mean. :) li "Walter" <walter@digitalmars.com> дÈëÏûÏ¢ÐÂÎÅ :arps4e$2d99$1@digitaldaemon.com... > So, dmdscript will work for you if the startup message is sent to stderr > rather than stdout, no other changes? -Walter > > "zhang li" <li@stands.3322.org> wrote in message > news:armvgp$23la$1@digitaldaemon.com... > > It has a little problem, the DSDscript print copyright info first, the > info > > also send to guest. > > > > yet Internet Explorer need the first info from server. > > print "Content-type: text/html\n\n", > > > > so, the copyright info should print to stderr, will not be use as HTTP > > output. > > > > > > regard > > > > li > > > > > > "Walter" <walter@digitalmars.com> дÈëÏûÏ¢ÐÂÎÅ > > :arlntd$pf6$2@digitaldaemon.com... > > > I just don't understand what you're asking. In any case, the dmdscript > > > engine can read from stdin and write to stdout, if that will work for > your > > > application. > > > > > > -Walter > > > > > > > > > |
November 24, 2002 Re: Script and batch command. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | "Walter" <walter@digitalmars.com> ??????:arq7k1$2pns$1@digitaldaemon.com... So, it needs to be able to do a getenv()? ||||||||||| \*_*/ _\_/_ In a ideal HTTP manager programs, may want it does anything if passable. :) Seem only C/C++ can does those things at computers. but a binary programs looky unsafe in webmaster eyes. that is why use script as manager. even script slowly but script are changeable. I don't know what is best. may none. in fact, PERL are most Lunix/Freebsd based part. Sun Unix make own *.JSP (Java Script Program?). Microsoft make own *.ASP (Active Server Page). the PHP very likely PERL style. I only installed Perl, read some PHP script. if you have more document about Hypertext Transfer Protocol. Please tell me. Thanks. Li |
Copyright © 1999-2021 by the D Language Foundation