The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Find last updated file callimaco0082 UNIX for Dummies Questions & Answers 4 09-04-2008 10:17 AM
How can i extarct the output from a file which has been updated from last half an hou tarundeepdhawan Shell Programming and Scripting 5 06-23-2008 02:50 AM
checking out latest updated file asadlone Shell Programming and Scripting 3 05-08-2008 04:16 AM
/etc/utmp file does not get updated with boot up details jyoti_mil UNIX for Advanced & Expert Users 1 06-11-2007 10:41 AM
Creating an updated file dbfree Shell Programming and Scripting 4 09-30-2005 03:23 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 2 votes, 3.50 average. Display Modes
  #1 (permalink)  
Old 10-20-2008
KornFire's Avatar
KornFire KornFire is offline
Registered User
  
 

Join Date: Aug 2008
Location: Bangalore, India.
Posts: 5
Log file not getting updated

hi all, i'm a student and managing lab at my insti. there in one application in which log file has to be maintaine the number of bytes transferred and received. but after certain entries these two attributes stop getting updated and holds same values for rest of the session. This happens one time on running 15-20 times the appliccation. So, i am not sure what type of programming problem is this. I got a hold in the code but its too huge to start with. One more thing this problem gets regular after 3-4 hr and regularly can be reproduced. What kind of problem is this. Any suggestion will be very helpful....
  #2 (permalink)  
Old 10-20-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,749
It sounds like some kind of progamming problem. Are you running out of disk space in the filesystem where the logfile lives? You should see errors about disk space.
Code:
cd /directory/to/logfile
df -b .
This shows the number of free bytes If it is a small number (<10000) you have a problem. YOu need to clean out unused files - move them off somewhere else or back them up to tape and then delete them.
  #3 (permalink)  
Old 10-20-2008
shamrock shamrock is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2007
Location: USA
Posts: 750
Maybe the logfile is getting updated but the application has reached steady state so receiving / sending rates remain the same.
Did you check out the mtime of the file?
  #4 (permalink)  
Old 10-21-2008
KornFire's Avatar
KornFire KornFire is offline
Registered User
  
 

Join Date: Aug 2008
Location: Bangalore, India.
Posts: 5
Hi jim, i used following command:
Quote:
[monti@blr ~]$ df -m /home/monti/log
Filesystem 1M-blocks Used Available Use% Mounted on
miacc:/export/home/monti/log
100827 62970 36849 64% /home/monti
/log

I think, there is enough disk space for a log file.

i'm not sure how to use mtime to find out logfile is getting updated. I have little idea abt mtime, with that i think, it'll print same value if its getting updated by some function or printing same value again and again.
  #5 (permalink)  
Old 10-21-2008
tayyabq8's Avatar
tayyabq8 tayyabq8 is offline Forum Advisor  
Moderator
  
 

Join Date: Nov 2004
Location: Bahrain
Posts: 579
Code:
ls -lt
to see the mtime (second column from last).
Closed Thread

Bookmarks

Tags
log

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0