04-17-2013
I'm guessing that you're really saying that new lines being written to the log file did not show up in your vi editing buffer until you closed vi and reloaded the file. It is extremely unlikely that anything stopped writing to a file because vi had that file open.
When you edit a file using vi (or ex or ed or emacs or any other editor) you load a copy of that file into a buffer. You edit the buffer; not the underlying file. If you want to see recent additions to the file while you are editing it, you need to reload the buffer from the file. In vi, the command to reload the buffer is :e. If you have changed the buffer and have not written the updates back to another file; you'll need to use :e!. If you change the file and write those changes back to the file while some other process is writing to it, whether the changes you made to the file or additions added by that other process or some combination of those changes and additions will appear in the file after you exit vi is unspecified.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I run a decent size Solaris 8 network where we use host files and no DNS servers. I have a master host file to push out to all the machines (also would like to do system and services too) but, the only way I've ever been able to do it is buy telneting into the machine and ftping the file into place... (10 Replies)
Discussion started by: turbo90awd
10 Replies
2. UNIX for Advanced & Expert Users
Hi,
I am parsing a very big file say 10 MB. It 'll take more than an hour ..I want to know the progress say in % .Is there any way to do that???
or
(Is there any way to know which line of the file I am in ) (2 Replies)
Discussion started by: sakthi.abdullah
2 Replies
3. UNIX for Dummies Questions & Answers
Hi, people.
I need some help with this:
i have this file " PROVEDP_???_yyyymmdd " , and i want to rename to this
" IN_PROV_yyyy???.dat " .
The " ??? " is the Month , but the file could be created on April, but the name coulb be March, for example.So i need to grab the 3 caracters
... (2 Replies)
Discussion started by: osramos
2 Replies
4. Shell Programming and Scripting
Hi..
Can Anyone out there help me? I need to write a script to convert a file in EDCIDC format to CSV
The files will be transfered through sftp to the box. Is there a way to check the file has finished being transfered or still transfering. so that my conversion task will be performed after... (3 Replies)
Discussion started by: ramukandada
3 Replies
5. Shell Programming and Scripting
Hi All
I have a script which drops a mail with the changes done on crontab file for every 1 hour
Can anyone pls tell me how can I modify the script so that it should display the terminal from which the crontab file hasbeen modified.
Quick responce much appriciated !!
Many thanks in... (7 Replies)
Discussion started by: jagadish_gaddam
7 Replies
6. Shell Programming and Scripting
how to use the filehandle stored in a variable without knowing its file association i.e. the filename
code
my $logFH = $connObj->get('logFH');
infoPrint("Variable is of type IO \n") if(UNIVERSAL::isa($logFH, 'IO'));
infoPrint("$logFH\n");
output
== INFO :: Variable is of type... (0 Replies)
Discussion started by: rrd1986
0 Replies
7. Emergency UNIX and Linux Support
Actually i did modification in a file on server by mistake, now its showing current time stamp, is there any way to set the files modified date and stamp to last modifies time.
Please advice here.Thanks in advance.:b: (7 Replies)
Discussion started by: saluja.deepak
7 Replies
8. UNIX Desktop Questions & Answers
So I need some help with this. Pardon me if I'm posting in the wrong forum, after some googling for my answer and finding nothing I found this forum. It seemed appropriate for what I was seeking. I just didnt find a forum that concerned the use of GDB. I'm learning to use the C language and GDB.... (2 Replies)
Discussion started by: Cambria
2 Replies
9. Solaris
Hi,
I have a Solaris 10 box where password aging is not functioning properly. Using the passwd command with the -l or -u options causes the lastchg field in the /etc/shadow file to be modified. Therefore, if a user's password is set to expire in 90 days and they are 1 day away, all they have... (4 Replies)
Discussion started by: cschar
4 Replies
10. Shell Programming and Scripting
This question could be specific to the site subdivx.com In the past, I've been able to download a file following location using cURL but there is something about subdivx.com that's different and can't figure out how to get it to work.
I tried the following directly in the terminal with no... (5 Replies)
Discussion started by: MoonD
5 Replies
LEARN ABOUT CENTOS
gldepthmask
GLDEPTHMASK(3G) OpenGL Manual GLDEPTHMASK(3G)
NAME
glDepthMask - enable or disable writing into the depth buffer
C SPECIFICATION
void glDepthMask(GLboolean flag);
PARAMETERS
flag
Specifies whether the depth buffer is enabled for writing. If flag is GL_FALSE, depth buffer writing is disabled. Otherwise, it is
enabled. Initially, depth buffer writing is enabled.
DESCRIPTION
glDepthMask specifies whether the depth buffer is enabled for writing. If flag is GL_FALSE, depth buffer writing is disabled. Otherwise, it
is enabled. Initially, depth buffer writing is enabled.
ASSOCIATED GETS
glGet() with argument GL_DEPTH_WRITEMASK
NOTES
Even if the depth buffer exists and the depth mask is non-zero, the depth buffer is not updated if the depth test is disabled. In order to
unconditionally write to the depth buffer, the depth test should be enabled and set to GL_ALWAYS (see glDepthFunc()).
SEE ALSO
glColorMask(), glDepthFunc(), glDepthRange(), glStencilMask()
COPYRIGHT
Copyright (C) 1991-2006 Silicon Graphics, Inc. Copyright (C) 2012 Khronos Group. This document is licensed under the SGI Free Software B
License. For details, see http://oss.sgi.com/projects/FreeB/.
AUTHORS
opengl.org
opengl.org 06/10/2014 GLDEPTHMASK(3G)