Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Linux


Advertisements:










General :: How To Read File In Real Time


I have a log file that I would like to examine during some changes under process that writes to this log.
Is there some way to open this file and read in real time changes written to it ?


View 5 Replies (Posted: 01-03-2011, 02:57 AM)

Sponsored Links:

Related Forum Messages For Linux category:
Programming :: PHP Read File In Real Time
Is there any way in PHP to read a file, and keep that file open, so that when text is added to a file, it is immediately written to the web page?

Or is this something that needs to be done with Javascript?

I just want to write to a file on my server, and see that output to the web page, without having to refresh the web page.

Posted: 08-06-2007, 07:43 PM

View 1 Replies!   View Related
General :: Reading Changing File In Real Time
I know this command exists I just can't seem to find it. I want to see the last few lines of a file as more are added in real time. Can someone point me in the right direction?

Posted: 05-27-2010, 08:51 AM

View 2 Replies!   View Related
General :: Real Time File Creation In Terminal?
I was wondering if there is a command to show a real-time creation of files. I basically executed a command that will created thousands of files and takes a long time. I want to check if it is still creating additional files or if ti got frozen.

Posted: 08-02-2010, 09:33 AM

View 3 Replies!   View Related
General :: Real-time Sync File Between Machines?
I have a few servers that are exposed to the internet. When someone tried to brute force hack in to the ssh, ossec adds their IP to the hosts.deny. Then the hacker (read: script kiddie) moves to the next IP up the line and hits my next server, etc, etc.

I end up getting 20 emails for all the servers that they hit.

My question, is there anyway to sync the hosts.deny file across multiple servers so that if they are locked out of one, they are locked out of all?

Posted: 07-15-2010, 06:59 PM

View 3 Replies!   View Related
Ubuntu Servers :: Setup Real-time (or Near Real-time) Folder Synchronization Among 2+ Servers
what the recommended way to set up real-time (or near real-time) folder synchronization among 2+ servers. I looked a rsync but that doesn't sound real-time and it looks like its something that you might put in a cron once an hour.

Posted: March 23rd, 2010

View 1 Replies!   View Related
CentOS 5 :: Real-time File Replication For User Accounts?
this idea to me right now seems stupid and impractical so I'm also looking for solutions outside of this one. I'm creating a set of highly available servers. They currently utilize pacemaker to manage a shared IP address, apache management, mysql management and also drbd handling. They currently replicate, properly failover and run fine. However, this is a shared web hosting setup and everytime a new user is added to the system a username and password is created and the httpd.conf file is updated for their site. I need a way to replicate those changes to the other server. For httpd.conf I'm pretty sure I can just stick it on the apache drbd resource and create a symbolic link. However, for the passwd and shadow files that is not a realistic solution.

Posted: 2009/11/22 17:54

View 1 Replies!   View Related
Software :: Live - Real-time Text-file Updates In Terminal
I want to have a terminal open and have something like a "repeating cat" command running in it for a certain text file (in particular /var/log/system.log). So my terminal will scan or cat the text file every so often or whenever the text file system.log gets written to by the system, it will display whatever it wrote to the file in my terminal that is open.

Posted: 01-13-2010, 01:36 PM

View 2 Replies!   View Related
General :: Real Time Processes ?
I've got the following problem:

1. I start two bash windows

2. In one of them I start a script test1:

Code:

This script puts a natural number 5 times a second.

3. Then in the second bash window I type (as root):

Code:

The script test2 looks as follows:

Code:

While true; do
true;
done

During the following 15 seconds test2 is the process with the highest real-time priority. As far as I know the script doesn't perform any system calls so it shouldn't be suspended even for a minimal timeslice. My question is: why the process test1 manages to put a few numbers on the screen before test2 stops. I thought that test2 would exclusivly own the processor for 15 seconds.

Posted: 12-07-2009, 06:48 AM

View 8 Replies!   View Related
General :: Why Kernel 2.6 Is Not Real Time
Since Kernel 2.6 is preemptable, why it is not hard real time OS (without the addition of any patches)? Note: assume we are running a code in Kernel space not userspace.

Posted: 08-09-2008, 01:49 PM

View 8 Replies!   View Related
General :: Find Real Time Log Name?
I have to write one Shell script where i have to find one word in current generated log.Log name has specific format like 'NAME_DDMMYY_HHMMSS'.log.Each time i have to go and check the word in newly generated log.How can i pass the newly generated log name in my Script?

Posted: 01-17-2011, 12:00 AM

View 2 Replies!   View Related
General :: Finding Web Base Real Time Iftop?
I am looking for web base real time iftop like tool for linux.I mean it shows current active connection on a NIC of any Client that connected to it .I do not want offline data I want realtime data for current connections on web.

Posted: 07-24-2011, 12:38 PM

View 2 Replies!   View Related
General :: Real Time Info About Disk Activity?
kernel 2.6.21.5, Slackware 12.0 How can I obtain real time information about disk activity (processes transfering data to/from the hard disk)?

Posted: 02-18-2011, 08:43 PM

View 3 Replies!   View Related
General :: Check Server Bandwidth Usage In Real Time?
I'm trying to check my server's bandwidth usage in real time, installed the following programs but none worked so far.

Iptraf - No results even when using iptraf -u
Tcptrack - Error : pcap_loop: cooked-mode frame doesn't have room for sll header
Iftop - No results, everything 0b

Are there any programs that displays bandwidth usage in real time and actually works on VPSes? Or getting real time bandwidth usage on a VPS is simply impossible?

Posted: 03-21-2010, 10:12 AM

View 5 Replies!   View Related
General :: Install Xenomai On Real-time Kernel (With PREEMPT_RT)?
install Xenomai on real-time kernel (With PREEMPT_RT)?

Posted: 09-08-2010, 01:12 AM

View 1 Replies!   View Related
General :: Need To Synchronize Local And Remote Directories In Real Time
I'd like to have a copy of a web site on my local drive. Then when I make changes to that copy, have those changes automatically updated on the site's server. Ideally I'd like to tell it to only do this for certain file types. Does anybody know of a way to do this with Linux?

Posted: May 18 10 at 20:40

View 2 Replies!   View Related
CentOS 5 Server :: Time On Xen VM's Drifting Ahead Of Real Time?
I am hosting two Virtual Servers both running Centos 5.3 on a host machine also running the same OS. The VM software in use is Xen, as supplied with the OS.The host machine's time and date is fine, however both Virtual Servers are running ahead of real time consitantly.Running /etc/init.d/ntpd restart will resolve the issue however one of these is running MailScanner and when the time suddenly goes backwards, sometimes by as much as an hour, it stops working properly.

Posted: 2009/8/4 13:34

View 1 Replies!   View Related
Software :: Convert Unix Time To 'real' Time
I used the following command to get the unix time of root user creation:

Code:
awk -F":" '$1 == "root" {print $3}' /etc/shadow
How can i convert this into the date/time of creation?

I am writing a shell script, which determines the OS installation date among other stuff, and i am assuming the root user's account creation date should be a pretty accurate pointer. Are there reasons why i should not be assuming so?I would be open to other suggestion for getting this date/time, but it would nevertheless be interesting to convert the unix time to "real" time without doing complex manual(or otherwise) computation..

Posted: 01-28-2010, 05:41 AM

View 4 Replies!   View Related
General :: Make Dmesg Post Output To Tty12 In Real Time
Terminal with real time dmesg output I want to use tty12 for system messages. Is there a way to mirror all kernel messages to there?

Posted: Apr 3 at 17:22

View 2 Replies!   View Related
General :: How To Track Elapsed Real-time - Undefined Reference To `clock_gettime'
What is the best way to track elapsed real-time, for the most kinds of Linux systems?

clock_gettime() looks great, but I get this build error:

undefined reference to `clock_gettime'

..even though I have #include "time.h" Here is my uber-goal:

// Returns fractional seconds that have elapsed since Start_Ticks was set.
float elapsed_seconds( unsigned Start_Ticks )
{

[code]....

Posted: 01-28-2010

View 1 Replies!   View Related
General :: Windows Access The File From Ubuntu Got Read Only Even Though Have A Full Permission To Read, Write And Execute The File?
What are the possible problem when Windows access the file from Ubuntu got Read Only even though have a full permission to read, write and execute the file? Ubuntu to Ubuntu accessing the file there is no problem only Windows got a problem.

Posted: 02-04-2010, 03:30 AM

View 1 Replies!   View Related
General :: Enhanced Real Time Clock Support - Missing Kernel Option
In regards to compiling a custom kernel:

When using make menuconfig - under Device Drivers --> Character Devices --> there should be an option with the label "Enhanced Real Time Clock Support" (CONFIG_JS_RTC).

The problem is that this option seems to only show up while using the menu method when other options are either enabled or disabled and I've entirely forgotten what should be what. I swear fingered it out once.

This is on an older computer (P4) so HPET is no good.

You would think that disabling the HPET option would enable the RTC option but that does not appear to be the case.

I understand I can just add the option to the .config file and avoid this hassle but I'm very interested to know how to make this work.

To show my appreciation I will do something nice for you such as call you a nice name or tell you that you are pretty (or ugly if that's what you prefer).

Posted: 07-06-2011, 03:28 PM

View 1 Replies!   View Related
Programming :: Read In A File 1 Line At A Time?
i am trying to read in a file 1 line at a time and for some reason it stops printing out at about line 62,000.

i am doing this:
Code:
while(fgets(c0, 1085, fstream0) != NULL)

but after about 62,0000 lines it stops printing. no seg-fault, no core dump. it just stops printing to the terminal then returns me to the command line after a couple of minutes. as a hack i am doing split -l 50000 on the input and calling my program 5 times.is there some limitation on fgets that i am not understanding ?

Posted: 10-22-2010, 04:12 PM

View 8 Replies!   View Related
Programming :: Read Time Of /proc/net/tcp6 File
I am trying to read the /proc/net/tcp6 file of a huge server (chat server) for monitoring the tcp6 connection states.

My server's tcp6 file has more than 26000 lines. For monitoring the server connections, my monitoring tool has to read the /proc/net/tcp6 file quickly in a regular interval (5 secs) and process. Presently it takes minimum 6-7 seconds for reading the whole file.

My tool can able to read the normal file (26,000 lines) less than 1 second, but it is not possible to read the same size of proc file.

I have 2 questions:

1) Why proc file takes more read time than normal file?

2) Is there any way to read the /proc/net/tcp6 file more quickly?

Posted: 12-08-2010, 08:11 AM

View 2 Replies!   View Related
Software :: Real Time Programming ?
I want to start real time programming for linux(RTOS) so where I can get the basic of programming.I want to do it in C language..

Posted: 03-20-2009, 01:02 AM

View 2 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved