in reply to Re^2: Running a shell command via Perl
in thread Running a shell command via Perl

Regarding the `cd /root/.... you need to use the Perl built-in chdir

Cheers,

JohnGG