in reply to Setting permissions as text file is created

If you mean "at file creation-time" with "at the same time", set the umask of the executing user to your liking.

otherwise, if modifying the permissions after file-creation is sufficient, have a look at chmod

regards,
tomte


Hlade's Law:

If you have a difficult task, give it to a lazy person --
they will find an easier way to do it.

  • Comment on Re: Setting permissions as text file is created