[ale] inode change after vi a file ?

Jerry Yu jjj863 at gmail.com
Thu Mar 30 14:46:30 EST 2006


for sysadmin/DBA or alike out there,  use 'less' instead of 'vi' when
checking an important server log file under Linux for now. otherwise an
accidental save may force you to restart the server to establish association
to the new inum of the log files.  For Apache, 'graceful' will do. For
Sybase ASE, 'graceful' is not available!

On 3/30/06, Jerry Yu <jjj863 at gmail.com> wrote:
>
> vi on solaris doesn't do that. nano/oowriter on linux doesn't do that
> either. One'd assume they use some kinda tmpfile in the process as well, but
> not the same way as vi/gedit  ?
>
>
> On 3/30/06, Chris Ricker <kaboom at oobleck.net> wrote:
> >
> > On Thu, 30 Mar 2006, Jerry Yu wrote:
> >
> > > To my surprise, the inode #  changes as long as I do ":w" inside
> > vi.  This
> > > holds true on a stock installation of CentOS 4.1 and CentOS 4.3(equivalent
> > > of RHEL 4.* AS) . Anyone knows this is a new feature? If it is a
> > feature,
> > > I'd like to learn ways to turn it off.
> > >
> > > [zyu at saturn ~]$ date > blah; ls -i blah; vi blah; ls -i blah
> > > 688427 blah
> > > 692394 blah
> >
> > It's making a new temporary file that you're editing, then moving it
> > over
> > the original file....
> >
> > later,
> > chris
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://www.ale.org/mailman/listinfo/ale
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...




More information about the Ale mailing list