1
vote
3answers
43 views

Is it possible to tail -f an external web resource?

Can I tail -f an output from http://example.com? I want to monitor external JSON file.
1
vote
1answer
497 views

Extract the contents of ELF and write to binary file

I have been trying to extract the contents of a firmware and putting it to a binary file, but with no success. I see the right hex contents, but am not sure how to laid them in bits into a file. ...
4
votes
1answer
48 views

Unix /Linux show the last part of a file with line numbers

Is there a way to make tail show a line number in front of the last lines it show so that it show the growth of the file when using it in a script. e.g: when using it in a script like this one: ...
2
votes
2answers
58 views

Use tail directly on website data, or another utility needed?

I am planning to extract a single field of data from the last line of data on a website to populate an RRD database. I'm running Linux. The website is: ...
0
votes
2answers
51 views

display whole stream while highlighting with grep

I often use tail -f | grep someregex on log files. I have grep liased to grep ---color=auto so my matches are highlighted. If I want to see my matches in the context of the whole stream, how would I ...
2
votes
1answer
638 views

Filter tail command through multiple grep commands to separate files

What I am trying to do is filter the output of one log file into separated log files based on a grep filter. tail -f test.log | tee >(grep "Error" > error.log) >(grep "Warning"" > warning.log) ...
4
votes
1answer
1k views

How to easily break up a text file into pieces smaller than a threshold?

I have some text files that are 100 to 300 MB in length that I want to view in Emacs, but my Emacs gets into some performance issues opening and traversing such large files. Therefore, I'm looking ...
0
votes
0answers
87 views

Is there root-tail like utility to display static text on Xorg root window?

Basically, I am looking for cat equivalent of root-tail. Instead of tailing a file, I just need to output a text (or output of a command) into the root (bakcground) of X.
0
votes
1answer
230 views

Installing Multitail on RHEL 5.3

I'm trying to install Multitail on a RHEL 5.3 machine, but get the following error as the root user. Should this be accessible from one of the default RPM repositories or do I need to add a new ...
1
vote
3answers
509 views

Coloured output when tailing php error log

I'm trying to find a way (through escape characters or software) to display coloured lines in my php error log. Right now I'm reading from them (live) with tail -n 50 -f /var/log/apache2/error.log ...
2
votes
1answer
68 views

quick tail on a huge file on linux

I need to get the last 10 million lines of a 100 million lines file. tail -n 10000000 $in_file>$out_file however the above command took more than 1 day and is still going. I guess I can use the ...
2
votes
1answer
170 views

Delete first lines from a Unicode html file

I have an HTML file that is in UTF-8 format and I want to remove the first five lines from it. I've tried using sed but it doesn't work in this case: sed "1,5d" Result.html>small2 It actually ...
1
vote
1answer
87 views

Is there a command-line tool that can read from a file and write the file's contents to stdout, blocking on EOF?

Is there anything like tail –f that also works well with binary files and supports exit conditions like "on pid X death" or so?
1
vote
1answer
121 views

Tail -f on files that don't exist yet

I have a program that for each run generates a new log file. To watch what's going on, I'd like to tail -f the log - only problem is that I don't actually know the file name in advance. So, is there ...
0
votes
1answer
108 views

Show starting with a special line until a special line regex for Linux tail command

I use that notation at my log files: [something-something] somethings are necessary and variable length characters and numbers. My special log file includes line that has characters explained above. ...
-1
votes
2answers
101 views

Show matched lines for a given regex at Linux

I use that notation at my log files: [something-something] somethings are necessary and variable length characters and numbers. My special log file includes line that has characters explained above. ...
2
votes
2answers
1k views

Realtime linux colored tail with filtering support for tomcat?

I am looking for a tail, gui or console based, that would be able to filter and color messages from tomcat based on their level: INFO, WARN, ERROR, CRITICAL. Another feature that is quite importat ...
0
votes
1answer
256 views

tail -f makes tomcat die

We have a build file that does a git checkout, compiles a war, deploys to tomcat and then tail -f 's the catalina.log. If the ssh session over which this is done somehow dies, even though we are only ...
9
votes
1answer
8k views

Combine tail -f with grep?

Hi I wanna keep looking at a log file, but I also don't wanna see irrelevant stuff, I'm only interested in anything with "foobar" in it. So if I was tailing the file I would do tail file | grep ...
2
votes
1answer
404 views

running tail -f on a server which connects to another server over ssh

I have been using the following command to connect to a server, which connects to another server and runs tail -f on it: ssh server1.com ssh server2.com tail -f file.log This so far works fine. ...
2
votes
2answers
976 views

GUI for tail for Linux

Could someone recommend a graphical tail kind of document viewer? So that I could open a document, scroll up and down, etc. and that the document would refresh itself automatically (without prompting, ...
1
vote
1answer
223 views

^L while tail -f is running

I frequently use tail to monitor errors: tail -f /var/log/apache2/error_log I can use the shortcut cmd+K to clear the screen (OSX), but I've grown accustomed to using ^L in other linuxy situations. ...
3
votes
5answers
857 views

Linux application to tail multiple log files (like OS X Console.app)

I'm constantly tailing log files. At any given time I've got half a dozen terminal windows open that are simply running tail -f . In OS X, the Console app is brilliant. All the usual log files are ...
1
vote
1answer
331 views

Equivalent of tail/less --follow-name under OS X

I need to tail -f a log file that is rotated. This is the exact same issue as the one here, but on OS X: Why does less tail mode stop working? So how can I constantly track a file whose inode might ...
0
votes
1answer
436 views

How to use tail -f with sound?

I am trying to use tail -f and play a sound everytime a new line appears. I tried this: for i in tail -f myFile; do aplay alert.wav; done; Which kinda worked, the output is: Playing WAVE ...
2
votes
3answers
479 views

How to grab a random section in the middle of a huge file?

I have a huge log file of around 3.5 GB and would like to sample random sections in the middle of say 10 MB for the purpose of debugging what my application is doing. I could use head or tail ...
5
votes
3answers
2k views

tail -f not tracking file changes

I was recently looking into using tail -f to monitor some text files like so: tail -f /var/sometext However, when I did some testing, it doesn't seem to work. What I did was I created a new file and ...