Re: Is AIX locking files used to redirect stdout+err to inshellscripts and prevents them to be written to by other processesexplicitly? bine wrote:
> I have the confusing fact that in contrary to Linux (UnitedLinux or
> SuseEnterpriseServer)
> I miss some informations I write to a file.
> It seems that defining this file to be used for stdout+stderr in a csh-
> call like in
> myprog ... >>& mylog
> prevents later in the callhirarchy,
> that is by things called from myprog,
> and other scripts running in parallel as well
> (because this csh is running with nohup parallel to those)
> to put their output explicitly, e.g. by
> echo ... >> mylog
> into the same file.
One possibility is that csh on AIX might not set O_APPEND for
fd 1, it could just seek to the end before executing myprog.
In that case, using: sh -c 'myprog ... >> mylog 2>&1'
to start myprog would stop myprog (and things called from it,
assuming they write to stdout rather than reopening the log)
from overwriting the output from the other scripts. However,
the scripts, if also using csh, could still overwrite output
from myprog (and things called from it), and from each other.
--
Geoff Clare <netnews@gclare.org.uk> |