使用-T开关运行时,不安全的$ ENV {PATH} [英] Insecure $ENV{PATH} while running with - T switch
本文介绍了使用-T开关运行时,不安全的$ ENV {PATH}的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用命令-ststus检查linux中的服务.但是我得到这个错误:在 checkservices 第 3 行使用 -T 开关运行时不安全的 $ENV{PATH}.在行中我有这个: My @services =
`status`;
I'm trying to check services in linux with the command - ststus. However I get this error:
Insecure $ENV{PATH} while running with - T switch at checkservices line 3.
In the line i have this :
My @services =
`status`;
这里有什么问题?
#!/user/bin/perl
Use strict;
My @services = `status`;
foreach my $service(@services){
If(! (service =~ /{running|UP} /)){
Print "up"; }
} `
推荐答案
查看全文