[comp.unix.shell] STDERR question

shashi@hotwheel.austin.ibm.com (06/15/91)

Here's a shell script

...
...
grep '... .' ... || log "grep error"
...
...

	the log command logs everything in the script but is there a way to capture the STDERR of say 'grep' by the log command.

	i.e within the log command is it possible to get STDERR of other commands.

Any ideas will be welcome

Thanks in advance
shashi


DISCLAIMER: my opinions are independent of IBM's position.