Your perl one-liner does not do anything because your quotation marks are in the wrong place. Simply using the -w option would have alerted you to this:
$ perl -we '"system(/usr/bin/perl /root/test.pl)"' Useless use of a constant (system(/usr/bin/perl /root/test.pl)) in voi +d context at -e line 1.
If you correct the one-liner you would have more luck. Although, why you call a perl script to invoke a shell to call another perl script is not clear. Perhaps if you can explain what it is you are actually trying to accomplish someone could suggest an alternative approach.
In reply to Re: executing perl script using -e
by hippo
in thread executing perl script using -e
by mradul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |