"Jim Lundeen" <[EMAIL PROTECTED]> wrote in message
news:3DBDA799.307DC69A@;jimmyjames.net...
> nothing that will work on Linux box?

perlcc works... see below.

> Admin-Stress wrote:
>
> > Nice, but that will produce .exe, executable file for Windows :(
> >
> > --- David Simcik <[EMAIL PROTECTED]> wrote:
> > > See perl2exe.exe for details on converting scripts into executables.
> > >

[trwww@devel_rh public_html]$ cat index.cgi
#!/usr/bin/perl -w

use strict;
use CGI qw/:standard/;

print header();
print start_html();

print h1('Hello Dynamic CGI Linux');
print div('Hello Dynamic CGI Linux!!!');
print div('I am:', `id -un`);

print end_html();[trwww@devel_rh public_html]$ perlcc -o index.plx index.cgi
[trwww@devel_rh public_html]$ ls -l
total 1704
<snip />
-rwx------    1 trwww    trwww         219 Apr 14  2002 index.cgi
-rwxrwxr-x    1 trwww    trwww     1707157 Oct 31 15:48 index.plx
<snip />
[trwww@devel_rh public_html]$ ./index.plx
Content-Type: text/html; charset=ISO-8859-1

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; lang="en-US">
  <head>
    <title>Untitled Document</title>
  </head>
  <body>
    <h1>Hello Dynamic CGI Linux</h1>
    <div>Hello Dynamic CGI Linux!!!</div>
    <div>I am: trwww</div>
  </body>
</html>

HTH

Todd W.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to