[Gllug] This morning`s shell script question

t.clarke tim at seacon.co.uk
Thu May 24 08:23:00 UTC 2007

That's very interesting - redirecting 2> to a >(        )   !!

I shall have to try it on my Unix box as well and see if it works there.
A handy tip for the future.

I tried also the following kludge, out of interest:_
mkfifo   /tmp/xyz
log-command < /tmp/xyz &
command  2> /tmp/xyz
rm /tmp/xyz

'command' will send stderr throught the named-pipe /tmp/xyz to 'log-cmd',
which executes in 'background' and terminates when 'command'itself terminates.


Gllug mailing list  -  Gllug at gllug.org.uk

More information about the GLLUG mailing list