![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re^2: Calling pax within a perl script (was stupid substitution question)by viffer (Beadle) |
on Aug 11, 2010 at 11:56 UTC ( #854336=note: print w/replies, xml ) | Need Help?? |
Thank you - appreciate your help.
Whilst this works perfectly for my $cmd = q{pax -r -f /home/kev/pax.tar -s'/\/home\/kev\/pax\//\/data\/kev\/atlanta\/emtex\/invoices\//p'};
When the directory name has several nodes and the filename being paxed/untarred is a variable I guess it isn't interpolating correctly
$command= q{pax -r -f $file -s'/DirPart1.DirPart2.DirPart3/SubDir\//\/data\/kev\/atlanta\/emtex\/invoices\//p'};
I have tried several variants of this, such as
In Section
Seekers of Perl Wisdom
|
|