DMDScript - Script and batch command.
- zhang li (3/3) Nov 21 2002 Did anyone made HTTP server script or DOS batch by DMDscript?
- Walter (3/6) Nov 21 2002 I don't understand the question. -Walter
- zhang li (23/33) Nov 21 2002 *.ASP, *.PL, *.JSP, *.PHP,.... is server script. they control stdin/stdo...
- Walter (6/42) Nov 22 2002 I just don't understand what you're asking. In any case, the dmdscript
Did anyone made HTTP server script or DOS batch by DMDscript? HTTP server script accept any *.EXE / *.DLL to manager. li
Nov 21 2002
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
Nov 21 2002
*.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. --------------- 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. 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
Nov 21 2002
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. --------------- 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. 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
Nov 22 2002
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
Nov 22 2002
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, theinfoalso 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...yourI 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 forapplication. -Walter
Nov 23 2002
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...begin 666 HTTP32.CPP M*DAT;6Q;72 ]('L-" DB/&AT;6P^/'1I=&QE/E!R:6YT($)Y('!R;V=R86TN M<F=V+"!C:&%R("HJ96YV("D-"GL-" EP=71S*")C;VYT96YT+71Y<&4Z('1E M('!U=',H("IM*RL *3L-" EM(#T 96YV.PT*"7=H:6QE(" *FT *2!P=71S ` end begin 666 http32.html M5$5.5#TB;F\M8V%C:&4B/ T*/%1)5$Q%/D-'22!A;F0 4U-)(%1E<W0\+U1) M3TX](B]C9VDM8FEN+VAT=' S,BYE>&4B($U%5$A/1#TB1T54(CX-"CQP<F4^ M/$9/4DT 04-424]./2(O8V=I+6)I;B]H='1P,S(N97AE(B!-151(3T0](E!/ M4U0B/ T*/'!R93X-"D1A=&$Z(" \24Y0550 3D%-13TB1&%T82( 5D%,544] M(B( 4TE:13TV,#X-"CPO<')E/ T*/$E.4%54(%194$4](E-U8FUI="( 5F%L M=64](E-U8FUI="!$871A(CX-"CQ)3E!55"!465!%/2)297-E="( 5F%L=64] ` endIt has a little problem, the DSDscript print copyright info first, theinfoalso 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...yourI 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 forapplication. -Walter
Nov 23 2002
charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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=3D??" to read data bytes from stdin.(add a string to numeric function) try it, you will know the mean. :) li "Walter" <walter digitalmars.com> =D0=B4=C8=EB=CF=FB=CF=A2=D0=C2=CE=C5 :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> = =D0=B4=C8=EB=CF=FB=CF=A2=D0=C2=CE=C5 > > :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 > > > > > > > > >
Nov 24 2002
"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
Nov 24 2002
"Walter" <walter digitalmars.com> wrote in message news: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? -WalterI've done this change now, and posted it. -Walter
Nov 30 2002
maybe the Dscript can not work better than a *.exe program. .............. Final. it not adapt to a server manager. li
Nov 22 2002