Hi there , I get the following error in debug mode
Insecure $ENV{PATH} while running with -T switch at D:/eclipse_projects/testdebug/testdebug.pl line 10, <STDIN> line 1.
at D:/eclipse_projects/testdebug/testdebug.pl line 10
the command in question is system("$command") ;
where $command = dir
anway to rectify this ur help is greatly appreciated .
thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You are running the script in taint mode (probably Window -> Preferences -> Perl EPIC -> Enable taint mode checked). In taint mode it is not allowed to run external commands without having set the path $ENV{PATH} explicitly. The following should work:
Hi there , I get the following error in debug mode
Insecure $ENV{PATH} while running with -T switch at D:/eclipse_projects/testdebug/testdebug.pl line 10, <STDIN> line 1.
at D:/eclipse_projects/testdebug/testdebug.pl line 10
the command in question is system("$command") ;
where $command = dir
anway to rectify this ur help is greatly appreciated .
thanks
Hi,
You are running the script in taint mode (probably Window -> Preferences -> Perl EPIC -> Enable taint mode checked). In taint mode it is not allowed to run external commands without having set the path $ENV{PATH} explicitly. The following should work:
$ENV{PATH} = "C:\\WINDOWS\\system32";
system("dir");
Or do not use taint mode. On windows taint mode is a pain ...
Hope that helps,
Oliver