I have two Perl scripts and want to use one script from another.The scripts are called script1.pl and script2.pl.I want to run the below command inside script1.pl :/home/user/script2.pl /var/log/fw_log error >>/tmp/error.log
How to run a perl script inside another perl script
linux;scripting;perl
You can do this with the Perl's built-in 'system' function:system /home/user/script2.pl /var/log/fw_log error >>/tmp/error.log;