DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 19th September 2008
drhowarddrfine drhowarddrfine is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 377
Default Timestamp keeps incrementing on server

I uploaded an executable to my host. The program generates a web page, takes in post data and writes it to sqlite database. I screwed up and put it into a loop where it writes continuously, adding records to the db. The db is embedded in my program.

I ssh into the host but ps doesn't show anything running. My host says nothing is either and there are no zombies. I deleted the program and the db but there is a journal file that keeps getting its timestamp updated. So something must be running to cause that right?

Any ideas while I wait for them to get back to me?
Reply With Quote
  #2   (View Single Post)  
Old 19th September 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 445
Default

lsof can shed some light on which process is writing to the file.

# lsof /journal/file/here

That's a start -- it will give you command and PID (and some other info).

It's installed by default on most GNU/Linux systems, and can be installed from ports on FreeBSD. (Also, there is fstat on FBSD.)
__________________
Kill your t.v.
Reply With Quote
  #3   (View Single Post)  
Old 20th September 2008
drhowarddrfine drhowarddrfine is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 377
Default

Well, the problem went away, for some reason. I couldn't even delete the file till now.
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
incrementing within a shell script? spiderpig Programming 5 29th September 2008 08:12 PM
Sun Java System Web Server - Active Server Pages (yes ASP) hopla FreeBSD General 0 26th September 2008 08:22 AM


All times are GMT. The time now is 04:02 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick