in reply to Change permissions after file is created
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.
|
|---|