in reply to system command is not working
check the current working directory when execute the command, it's possiblely in the user's home directory who execute the command . or try this
#!/usr/bin/perl # a.pl use strict; use warnings; system("ls -lrt > /tmp/a.out");
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: system command is not working
by gulla (Initiate) on Dec 07, 2011 at 06:14 UTC | |
by Anonymous Monk on Dec 07, 2011 at 07:11 UTC | |
by pvaldes (Chaplain) on Dec 07, 2011 at 19:31 UTC |
In Section
Seekers of Perl Wisdom