General :: Equivalent Of Tail/less - Follow-name Under OS X
Jul 28, 2011
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 change under OS X?
View 1 Replies
ADVERTISEMENT
May 8, 2011
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 'alert.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
Playing WAVE 'alert.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
Playing WAVE 'alert.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
But after 3 times it stops, and I would like to print the tail -f result and not the aplay result. How could I achieve that?
View 1 Replies
View Related
Jun 20, 2010
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 ran: tail -f /home/name/text Then, I opened the log in vim and did some editing, saved it, and it seems that tail is not "seeing" the change.
The weird thing is, running echo "hello" >> /home/name/text seems to work fine (tail sees the change). I read somewhere this has something to do with file descriptors and new inodes being created when saving a file.
View 3 Replies
View Related
Jan 1, 2010
am facing a problem with tailing a log file. Logs of application located in one folder:applog_20100101_0200.log <--log until 2 am january 1applog_20100101_0456.log <--log until 4:56 amapplog.log <-- current logApplication can change log when ever it wants to. I need to monitor this log, what i do:tail -f applog.logBut when app changes log my tail just stops. How can i tail applog.log all the time with out stops?
View 7 Replies
View Related
Oct 26, 2010
I am running a script with nohup and this generates a lot of logs.
In order to view the log I use tail -f nohup.out
The problem is that the info supplied by this command is not always the latest//sometimes I need to use the command again order to view the latest info added to the nohup.out file.
View 3 Replies
View Related
Apr 15, 2011
What are the steps to and Procedure to follow for securing Linux Server???
View 3 Replies
View Related
Feb 1, 2010
I want to tail the latest log file in one command line. I dont know what command/option to use for the same.
View 5 Replies
View Related
Dec 21, 2010
How to print a sequence of line say line number 10 to 20 of a 50 line file ?
View 6 Replies
View Related
Oct 6, 2010
Following script name is 123.sh and I need to put this in the background if I do 123.sh -bg this will not bring me back to the prompt but echoes what ever I put (using echo hello >> /tmp/123) in to the /temp/123 file. the only way that I have found doing this is to do "nohup 123.sh &" to put this in to the background. Is this okay or is there any better way of doing this?
#!/bin/bash
# file name is 123.sh
tail -f /temp/123 | while read line
[code]...
View 6 Replies
View Related
May 11, 2010
I had Ubuntu for awhile, now I installed Fedora12, I'm trying to follow directions to install a program from source code (tar.gz file) I have the February 2010 issue of Linux Format, and am trying to follow it step by step. I copied gnurobbo off their disk to my desk top, which copied it. Then I did the cd command, then I did the ls command and it didn't show me anything but a line saying desktop and a few other things like pictures movies etc. so I did cd gnurobbo-0.64 and it says no such file. I have been trying this for a few times and I think I'm going crazy.
View 3 Replies
View Related
Sep 11, 2011
The GNU sort text utility features a non-standard -R option to randomize input lines (presumably by sorting on a hash).
OSX sort does not have this extension. Is there similar functionality available in another text filter?
View 1 Replies
View Related
Jun 6, 2011
I have installed Ubuntu 11.04 over the weekend and wanted to tail the logs whilst doing so stuff. When I browsed to the folder after getting an error trying to tail, I noticed that the messages file does not exist.
Usually use tail -f /var/log/messages
View 3 Replies
View Related
Jan 6, 2010
Until a recent update, I had no trouble figuring out how to set my preference that a window would become active when the mouse entered it. Since then, about a month ago, I have been unable to find a means to do that.
View 5 Replies
View Related
Jun 29, 2010
Can you tell me if there is any way to follow links in samba code...
User can access files in both directories if he connects to the system (with ssh, login, ...).
So if he does "cd /dir/subdir1/link ; ls" he will see both files.
Now, dir1 is shared with samba (but not dir2). What I want is that users connect from Windows with \machinedir1dir2 and see both files.
Is that possible?
I've tried with follos links and wide links, but it hasn't work as I wanted.
View 4 Replies
View Related
Feb 16, 2010
If I want to use the locate command on a Linux machine, I usually run sudo updatedb first to update the database. I can run the locate command on OS X 10.5 but I can't find updatedb. What's the corresponding updatedb for the mac?
View 2 Replies
View Related
Aug 19, 2010
What is the equivalent of Solaris's cu command in Linux?
View 2 Replies
View Related
Jun 2, 2011
Under unix/linux, there is this extremely useful program screen: it's for bash, text-only, and I can detach a session, log out (the session is still running though), log in later (even from a different computer) and resume the session exactly as I left it. My question is, is there an equivalent to screen for X? So what I want to do is: work remotely with ssh -X in an X-session on a remote linux machine, log out, then later log in from a different computer again with ssh -X and then re-attach the X-session; practically resuming work from the moment when I logged out before. Is this possible?
View 4 Replies
View Related
Jul 14, 2011
When creating a shortcut in windows it makes a .lnk file.
I have researched and it seems these are openable in linux(with some tweaking). Does Linux have an equivalent? If so, whats the extension?
View 2 Replies
View Related
Aug 20, 2011
I'm looking for a Konsole equivalent for Gnome.I don't want a Quake-style dropdown console. I like tabs and the ability to send a command to all tabs.
View 3 Replies
View Related
Jun 24, 2011
The <Esc> key has an equivalent two-keystroke sequence within vim, I think I remember.
View 8 Replies
View Related
Sep 14, 2010
I can't seem to find the KDE equivalent of GNOME's (or Xfce's, or Windows') ALT-spacebar keystroke combination that brings up the window context menu.
View 4 Replies
View Related
Dec 2, 2010
i want to start a project in my spare time. Starting with 2 PC's and expanding to a few more in the future how can I create my own GRID? I was pointed in the location of Uni-core which i have just started having a look at. Anyway could any offer any advice if you have tried soemthing similar. If I could host my own Virtual Environment using the processors/memory of more than 1 pc ill be a happy chappy. Let me know if it isn't worth the hastle, feel free to suggest something else to try
View 2 Replies
View Related
Mar 23, 2010
I want to create a bootable flash drive that will boot and install the slackware 13.0 distro, except that I need to be able to do it from a Windows system for a Linux install. Here's what the Linux version does(from a web page written by Eric Hameleers, who also wrote the script):
"This directory contains a script (create_multipartboot.sh) and several other files that will transform your USB stick into a bootable Slackware installer. The script creates an multi-partition image file (hence the script's filename), which you need to copy onto a USB stick.A (small) FAT partition contains the slackware setup program and the bootable code, while the rest of the available space will be used up by a 'ext2' formatted partition in which as much Slackware packages are stored as can fit."
View 3 Replies
View Related
Jul 30, 2010
I was using Opensuse on Virtualbox earlier today. I issued the tail -f /var/log/messages command on Opensuse 11.3 to see the messages. Then I logged in from my Mac into Opensuse 11.3. I noticed that Opensuse was displaying realtime messages of the things happening. For eg, I entered a wrong su password and it displayed that too. But no such things were happening on my Fedora 13 installation. So is there any way if I could get some realtime messages on Fedora 13 too like the one on Opensuse..?
View 4 Replies
View Related
Jan 18, 2010
tail -f <filename> is not working as planned on my Ubuntu 9.10, it doesn't show the appended data.tail -F works, but it does not append the new line, it reopens the file with the message: "tail: <filename> has been replaced; following end of new file"
View 4 Replies
View Related
Mar 23, 2011
Is there a way to tail a log file and send each line as a syslog event to a remote server?
View 1 Replies
View Related
Jan 10, 2011
I have what I thought would be a simple issue: I have a Linux server and a bunch of people with Macs on a small business network.I'm trying to set it up so that using AFP, people can access the Linux server and drag and drop files to our test web development server. In each person's home directory there's a sym link to the /var/www/html directory, so that they can easily plop their test files there.I've got the hard part taken care of: AFP works, the Linux server appears on the network, and the Mac users can connect and log in.However, my sym link doesn't show up as a directory inside the Mac Finder...it shows up as an application. I don't know if this is something as simple as a permissions problem or whether I need to do more configuring to get AFP to play nice.
View 6 Replies
View Related
Jun 12, 2010
The date displayed in my panel is in the American format: Sat Jun 12, but my locale is set to Australian for everything. I have tried switching to different regions (System->Administration->Language Support), but this appears to have no effect on the date format.
Is this a bug? Anyone know how to fix it? code...
View 8 Replies
View Related
Mar 3, 2010
I wonder if it is possible to easily follow links in Firefox using the keyboard, for example by showing a little number next to the link.
Do you know of any add-ons for that?
View 2 Replies
View Related
Apr 12, 2010
"Something happened" to my samba install, and it was working fine, and is still largely working fine, except I cant browse via syn links created with:
[code]user@server~/medialist>ln -s /media/disk1/films/ films[code]
This used to work fine, and i cant figure out what happened...
I rebooted, (after umount -a, then commenting out the connected usb drives from fstab and turning them off...reboot...turn on drives one by one, uncomment from fstab, mount -a...its a bit of a drag rebooting! Quite a few updates happened (openSuse11.2)...
I can still browse all the samba shares directly but I cant follow a symlink anymore ("you do not have permission to view this file") from the same windows client to any of them if they are linked as above.
I have searched What am I doing wrong?
View 2 Replies
View Related