viffer has asked for the wisdom of the Perl Monks concerning the following question:
when I try to embed the command into a perl script via$ tar -tvf pax.tar drwxrwxr-x 252 1 0 Aug 11 14:12:55 2010 /home/kev/pax/ -rw-rw-r-- 252 1 0 Aug 11 14:12:52 2010 /home/kev/pax/t1 -rw-rw-r-- 252 1 0 Aug 11 14:12:54 2010 /home/kev/pax/t2 -rw-rw-r-- 252 1 0 Aug 11 14:12:55 2010 /home/kev/pax/t3 $ pax -r -f pax.tar -s'/\/home\/kev\/pax\// \/data\/kev\/atlanta\/emte +x\/invoices/p' /home/kev/pax/t1 >> /data/kev/atlanta/emtex/invoices/t1 /home/kev/pax/t2 >> /data/kev/atlanta/emtex/invoices/t2 /home/kev/pax/t3 >> /data/kev/atlanta/emtex/invoices/t3
I get the errormy $homedir="/home/kev"; chdir $homedir; my $cmd = "pax -r -f pax.tar -s'/\/home\/kev\/pax\// \/data\/kev\/atla +nta\/emtex\/invoices\//p'"; system ( $cmd );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Calling pax within a perl script (was stupid substitution question)
by JavaFan (Canon) on Aug 11, 2010 at 09:40 UTC | |
by viffer (Beadle) on Aug 11, 2010 at 11:56 UTC | |
by JavaFan (Canon) on Aug 11, 2010 at 12:14 UTC | |
by viffer (Beadle) on Aug 12, 2010 at 03:41 UTC | |
|
Re: Calling pax within a perl script (was stupid substitution question)
by Utilitarian (Vicar) on Aug 11, 2010 at 09:42 UTC |