Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Error using system() and tar with several optionsby Crackers2 (Parson) |
on Apr 13, 2009 at 21:38 UTC ( [id://757286]=note: print w/replies, xml ) | Need Help?? |
When using the multi-argument form of system, the arguments get passed directly to the binary so there's no implicit split on whitespace. So your tar command sees the "czv --exclude-from=$excludes -f" as one big parameter and tries to interpret each character as a short option. Do this instead:
In Section
Seekers of Perl Wisdom
|
|