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.

You must always remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.
  • Comment on Re: Change permissions after file is created