kee,
What does applname.exe do? What are you trying to do with the results?
You can run the output of the system command to a temp file like this:
system("applname.exe > temp.txt");
then open the temp file, read it and populate variables for display
in the web page.
Or you can run the command through a pipe like this:
open(COMPUTERS,"net view |") or die "can't run";
while (<COMPUTERS>) {
... # populate variables, etc.
};
tell us more,
Glen
-----Original Message-----
From: cklee [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 15, 2000 4:57 PM
To: Perl-Win32-Users Mailing List
Subject: system commands
I used system trying to invoke an application with syntax:
system("applname.exe");
Perl didn't do anything except print out the output above the system line
to the browser. I ran the same Perl program at the DOS prompt, it works.
Can anyone help, please!
kee
{\rtf1\ansi\ansicpg1252\fromtext \deff0{\fonttbl
{\f0\fswiss Arial;}
{\f1\fmodern Courier New;}
{\f2\fnil\fcharset2 Symbol;}
{\f3\fmodern\fcharset0 Courier New;}}
{\colortbl\red0\green0\blue0;\red0\green0\blue255;}
\uc1\pard\plain\deftab360 \f0\fs20 I used system trying to invoke an application with syntax:\par
\par
system("applname.exe");\par
Perl didn't do anything except print out the output above the system line to the browser. I ran the same Perl program at the DOS prompt, it works.\par
\par
Can anyone help, please!\par
\par
kee\par
}