Try using double quotes (") instead of single quotes (') so that $outfile is interpolated into the string. Beyond that, read the docs for system and switch to the multi-argument style to avoid some nasty security holes.
In reply to Re: Change permissions after file is created
by boftx
in thread Change permissions after file is created
by ddrew78
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |