Re: [exim] How would I do this? (reading file owner)

Top Pagina
Delete this message
Reply to this message
Auteur: Dave Evans
Datum:  
Aan: Marc Perkel
CC: exim users
Onderwerp: Re: [exim] How would I do this? (reading file owner)
On Wed, Oct 18, 2006 at 07:45:45PM -0700, Marc Perkel wrote:
> I need to set the user in the transport. What I need to set it to is to
> match the user to the owner file that I'm writing to. Is there a command
> I can run in the transport that will read the owner of the file and
> write to the file being the same owner?


As a firm believer in "first, find a way... then, find the /best/ way" :

How about something involving ${run , "stat -t", and bog-standard string
chopping?

Or of course, if you've got perl loaded anyway, use perl...

--
Dave Evans
Power Internet

PGP key: http://powernet.co.uk/~davide/pgpkey