mradul has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I am trying to do something like this
perl -e '"system(/usr/bin/perl /root/test.pl)"'
The test.pl looks like this
use strict; use warnings; `touch /tmp/1`;
The file /tmp/1 is not geting created. Any clues why and how can I do that?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: executing perl script using -e
by shmem (Chancellor) on Sep 22, 2014 at 12:53 UTC | |
|
Re: executing perl script using -e
by hippo (Archbishop) on Sep 22, 2014 at 12:55 UTC | |
|
Re: executing perl script using -e
by LanX (Saint) on Sep 22, 2014 at 12:55 UTC | |
|
Re: executing perl script using -e
by karlgoethebier (Abbot) on Sep 22, 2014 at 12:56 UTC | |
|
Re: executing perl script using -e
by choroba (Cardinal) on Sep 22, 2014 at 12:56 UTC | |
|
Re: executing perl script using -e
by Anonymous Monk on Sep 22, 2014 at 13:10 UTC | |
|
Re: executing perl script using -e
by GotToBTru (Prior) on Sep 22, 2014 at 19:53 UTC |