On Sat, Oct 21, 2006 at 02:50:57PM +0200, LeVA wrote:
> Then the umask command came to my mind, but then I would have to make a
> script, which contains the umask line, and after that call cronolog,
> and pipe the logs to this script.
> Would someone please hint me with a more simple and elegant solution?
I think the shell script solution is fine, but if you want something
more flexible, put the following into /usr/local/bin/with-umask:
#!/bin/sh -e
umask "$1"; shift
exec "$@"
and then change your call to
cronolog...
to
with-umask 027 cronolog....