Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problems with system command

Status
Not open for further replies.

Horrid

Programmer
May 20, 1999
373
(also posted in the Perl forum)
I am trying to run an exe from a perl CGI script.
I am trying to use a system("apppath/appname") command but nothing ever happens. Are there any special things I need to do before a system command? Is it possibly to call an EXE from a CGI script? It works from the command line run directly in perl.

could someone post an expample of running something as simple as notepad please.

Thans in advance
 
Take the quotes out of the parameter you are passing to the system() function.

Here is how you would open notepad with Perl:


[tt]
#!usr/bin/perl
system(notepad);
[/tt]

vic cherubini
vikter@epicsoftware.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director
====
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top