Tom Phoenix wrote: > On 2/20/07, Mathew Snyder <[EMAIL PROTECTED]> wrote: > >> shredder --force --plugin 'Tickets=arg1,desc;arg2,desc;arg3,desc' >> >> I can see that the system call would look like >> system("shredder","--force","--plugin" >> for the first section there, however, would the last part be >> "\'Tickets==arg1,desc;arg2,desc;arg3,desc\'") >> or would I have to break those down into separate arguments? > > Why have you backslashed the single quotes and doubled the equals sign? > > But I think your real difficulty is that those single quote marks are > used in shell programming so that the shell won't interpret > metacharacters (such as semicolon) in the argument. If I'm right about > that, they shouldn't be included in the actual parameter string passed > to shredder (which should, indeed, be a single parameter string). > > Hope this helps! > > --Tom Phoenix > Stonehenge Perl Training >
I have no explanation for the backslash. I didn't know if they were needed or not so I bet on the needed knowing I had a 50/50 shot at getting it right. The double equal sign is a mistype. I believe you are correct regarding the purpose of the single quotes. So what you mean is that the entire call should look like system("shredder","--force","--plugin" "Tickets=arg1,desc;arg2,desc;arg3,desc") Mathew -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/