![]() |
![]() HP OpenVMS Systemsask the wizard |
![]() |
The Question is: How to install a executable which is actually a CGI with extension .cgi instead of cgi. Since that also requires defining a symbol. It is not getting installed in VMS, please help me out. I donot want to use the extension as .exe as recommended by many si tes. The Answer is : The use of .EXE is the default and is also the recommended file type used for executable images on OpenVMS. The OpenVMS Wizard has also found most (all?) OpenVMS web servers quite able to invoke executable images with the file extension of .EXE. That said, the attached DCL command sequence demonstrates installing and activating an image with a non-standard file extension, and also demonstrates how an installed image is activated in favor to an image, and demonstrates how to override the activation of an installed image. Also please be aware that there might well be particular expected file contents assumed by a particular web server, such as an assumption that a .CGI file extension might indicate the invocation necessary for a DCL command procedure. Check the web server documentation for details. If you have further questions, the OpenVMS Wizard will need information on the web server, on the image, on the error message(s) received, and on the particular behaviour desired. Direct contact with the Compaq Customer Support Center would also be encouraged. $ type sys$login:hw.c #include <stdio.h> main() { printf("Hello, world!\n"); return 1; } $ cc hw $ link/exe=hw.cgi hw $ inst crea sys$login:hw.cgi $ run hw.cgi Hello, world! $ type sys$login:how.c #include <stdio.h> main() { printf("Hello, other world!\n"); return 1; } $ cc how $ link/exe=hw.cgi how $ run hw.cgi Hello, world! $ r hw.cgi; Hello, other world!
|