perl.scripts...Re: system commands fail in Perl script by John C. Koen- November 28, 2005 Hello,On Tue, Nov 22, 2005 at 10:58:21AM -0800, neelay thaker wrote:> Hi,> I have a Perl function which executes a series of "install" commands from a> source CD to a destination folder on the hard drive-> my $cmd = "install -m 755 $srcdir$file1 $installdir";> my $op = system($cmd);> $cmd = "install -m 755 $srcdir$file2 $installdir";> $op = system($cmd);> $cmd = "tar -zxf $file1";> $op = system($cmd);> ...when these...http://www.nntp.perl.org/group/perl.scripts/2005/11/msg428.html system commands fail in Perl script by neelay thaker- November 23, 2005 Hi,I have a Perl function which executes a series of "install" commands from asource CD to a destination folder on the hard drive-my $cmd = "install -m 755 $srcdir$file1 $installdir";my $op = system($cmd);$cmd = "install -m 755 $srcdir$file2 $installdir";$op = system($cmd);$cmd = "tar -zxf $file1";$op = system($cmd);...when these statements are executed first, only $file1 gets installed tothe $installdir. The second time I execute these statements, $file2.http://www.nntp.perl.org/group/perl.scripts/2005/11/msg427.html |