windows - Run external command from within Perl -
i using doxygen generate html documentation , run perl script function names.
to run doxygen configuration need run doxygen file_name
in cmd.
but want run perl.
i tried code
my $cmd = "perl -w otherscript.pl"; $result = system( "start $cmd" );
but opens cmd window. need execute cmd code directly through perl (not perl command line through perl ide). there way achieve this?
your usage of system
, start
ok.
from description in comment, think it's because you're not using correct escaping method when giving configure files doxygen throw such error:
error: configuration file c:sersghoshbcd not found!
try
my $result = `doxygen c:\\users\\aghosh\\abcd`;
in 2 back-slashes, former 1 escape latter 1 it's recognized windows directory separator.
Comments
Post a Comment