Quote:
Originally Posted by
ennstate
I could do that with "exec", but I couldn't get that work to write to a file and stdout simultaneously,
...
Please try exec options,
Thanks,
Nagarajan G
Thank you Nagarajan G!!
Exec works perfect to redirect from inside!
I try to get the print-out simultaneously and trying to do it with 'tail -f'
And I've get rock-n-roll:
to start 'tail' need and continue - need to run tail background (... & )
to stop 'tail' when it is done - need to know it's PID
but it is bad idea to kill 'tail' on end of screept - it could exit in a midle
so need to run monitoring of the script to stop the tail rigt after t'tail' start
Is this seems doable? Because by now I have some problem to get PID and kill it. (Actually I did it from outside script and get mess with PIDs)
Any oppinion?