General :: How To Use Tail -f With Sound
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
ADVERTISEMENT
Jul 4, 2011
I'm trying to write a script that will either tail or watch /var/log/messages for the words
PHP Code:
signal Gone into alarm state
From this line below.
I would then like the script execute:
And have run at start up.
I'm stuck with grep-ping only one word
PHP Code:
View 14 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
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
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
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
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
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
Sep 29, 2010
I need to printout auth.log each line by log event, I think it should be running using the following command:
~# tail -f /var/log/auth.log | lpr
but it's not, why?
the lpr package already is installed in myserver, there is no problem to print directly.
~# cat /var/log/auth.log | lpr
View 2 Replies
View Related
Mar 28, 2011
I have had update problems for a very long time in my desktop e-machine. Maybe since 5.3. Usually something about Gwenview and other things. And, while --skip-broken got other packages updated, sorry, an incomplete update just isn't acceptable. Because of this I stopped using Centos for a long time. Yesterday, I got ambition and gave it another try. I had a lot of yum upgrade failures when upgrading 5.4 to 5.5, using --skip-broken.
I decided to fix things or delete Centos completely. But, I like the idea of free R****t. I realize this may have been posted, but I had no luck finding it via Google, So I started Googling. I soon found the --disablerepo option, and playing with repos, got most of the failures to upgrade. But, still hung up on a lot of stuff, like 11 packages or more.
Next, I learned about yum-prioroties and setting repo prorities. Yum-priorities was already installed, but I did go in and set the priorities. Since Google has a lot of information on this, I will not repeat here. You go into the repo config files and add a priority number to each repo listing. Here is a script to display repo priorities that I found online, sorry, I lost the author:
[Code]...
View 5 Replies
View Related
May 29, 2010
Installed Fedora 12 in vmware and during the installation of a professional program versioned 2003, following error encountered.
tail: cannot open `+124' for reading: No such file or directory
gzip: tmptarfile.tar.Z: not in gzip format
tar: This does not look like a tar archive
tar: Error exit delayed from previous errors
extract error, installation cannot proceed.
Checked the google and tried ncompress and export_posix2_version=199209, but the problem persists.Is fedora compatible to this program, MEDICI 2003 ver?
View 4 Replies
View Related
Feb 7, 2010
I'm running ubuntu 9.10 with the latest networkmanager (from ppa)I thought this could be wrong credentials setting, so i've tried a huge amount of setups (user: phonenumber, password: phonenumber, avp:telenor, seems to be the general consensus for how it should be)Is there something I'm missing or is there any way I could tail the output as NetworkManager tries to connect (hopefully seeing something like "wrong password" etc.)
View 6 Replies
View Related
Jun 18, 2011
By invoking x11vnc with the -gui tray option the TCL/TK GUI attempts to embed itself onto the system tray, but I encounter the error message "tail: cannot watch /tmp/x11vnc.tray.*", after the first settings dialog approved [clicked OK]. I believe that a package is still missing to be installed and this is not really a software bug. I use the XFCE version shipped along F15, and the GUI can be started but not as a docked-applet.
View 3 Replies
View Related
Aug 17, 2010
sound card is working well inside SuSE and everything is ok there. But when I install Windows 7 or XP inside Xen Virtualization software, I can't use sound card and Windows is unable to find any sound hardware.
View 1 Replies
View Related
Jun 16, 2010
trying to get everything set up in Debian lenny on my new Toshiba staellite L500. I have successfully installed the wireless drivers and graphics card and have them both up and running. But I'm having trouble with the sound card. Specifically, it appears to be installed but I cant get any sound or any devices related to sound (speakers, volume control, alsamixer) to work at all.
this is my kernel:
uname -r
2.6.26-2-686
and this is the result of lspci:
00:00.0 Host bridge: Intel Corporation Device 0044 (rev 02)
00:01.0 PCI bridge: Intel Corporation Device 0045 (rev 02)
00:16.0 Communication controller: Intel Corporation Ibex Peak HECI Controller (rev 06)
[code]...
View 4 Replies
View Related
Feb 21, 2010
This problem presented itself upon upgrading to ubuntu 9.10. Any time something affects the sound system the buzz goes away. If a song plays, no buzz. If I simply adjust or mute the volume, no buzz. But after 10 seconds of no sound related activity, the buzz returns. This is a very loud and aggravating buzz, most likely made worse by the fact that I run my sound through an amplifier.
View 2 Replies
View Related
May 7, 2010
I'm trying to use an application (e.g., mplayer) to play sound that comes in my sound card (via the mic jack). (What I'm really trying to do is sync a sports broadcast by putting a delay on AM audio, as described here. I'm stuck at the part where it says "this shouldn't be too difficult".) I've seen some hints that there might be code-heavy solutions using LADSPA or some JACK SDK, but there's just gotta be a simpler way. I'm hoping for something like
Code:
mplayer -delay -7 - < /dev/mic
but I'm darned if I can find it. I'm sure there are plenty of other sports fans who would find this useful for syncing radio with the digital TV feed...
View 2 Replies
View Related
May 12, 2011
My usb sound card has been identified by alsamixer, however it won't make any sound when i put headphones in it. The volume is up, I know the sound card works.
View 1 Replies
View Related
Aug 3, 2010
I was just using the mic and watched it stop working suddenly. I was in the middle of a skype test call when the graphical mixer level died down to zero in the middle of the call. When the test call was played back, the first part sounded fine then the sound got lower until it became inaudible. Since then I can't get any sound from my mic in skype.
Also, the audio input level graphically shown in Sound Preferences shows no fluctuations in sound as it used to before. The input device is enabled. I tried using Sound Recorder to record some sound clips and that worked fine. So the mic is working but Sound Preferences and Skype seem to have the mic level really low. I'm not sure what else to think considering it was working perfectly a few minutes ago. I've tried restarting, but that didn't fix it either.
View 4 Replies
View Related
Feb 22, 2010
no sound but have sound with Windows?
View 2 Replies
View Related
Mar 24, 2010
After installing an external sound card, Im having some weird issues. The cards chipset is fully supported by suse, (CM8738) so I dont think thats the problem. Besides, I'm getting sound, but not in some applications. The system's sounds work just fine (login, logout themes) amarok plays without any problems, kaffeine, mplayer they all work flawlessly, in fact I can see the difference in quality between the onboard sound and my new card. However, no web browser is able to play any sound at all, firefox, opera or chrome, nothing,zip. Plus, vlc cant reproduce sound either, nor can smplayer.
I've tried switching channels on and off(muting)in kmixer and in alsamixer, on the console, with no results. I disabled the onboard audio on the bios before installing the new card, however my ati video card has integrated sound, which I cant disable.... I used to get this exact same problem randomly with the onboard sound, but I just had to go to kmixer and turn up the "pcm" channel volume, which was set to 0, and I had sound again on my browser. However this card's pcm channel is at max and turning it up or down affects the whole systems volume, not just the browser's. Is it better to just reinstall the sound system, if so how could I do that.
View 7 Replies
View Related
Jul 28, 2009
I bought a Diamond Xtreme Sound 5.1 sound card because I had read online that this card was a good choice with Linux and came with universal driver software. I installed the hardware correctly (as it works with WinXP) but I'm not able to get it working with Ubuntu.
View 1 Replies
View Related
Sep 20, 2010
Since I upgraded to Ubuntu 10.40, I no longer have sound, except for the Ubuntu sound when it loads during start up. Does anyone know how I can recover sound on my computer?
View 3 Replies
View Related
Feb 12, 2010
I'm attempting to apply the quota patch to postfix 2.5.1. I have done the following..
Code:
cd /usr/src/
apt-get source postfix
wget http://vda.sourceforge.net/VDA/postf...da-ng.patch.gz{code]....
dpkg-buildpackage: failure: tail of debian/changelog gave error exit status 1
I have searched hi and low and still can't work out how to resolve this.
View 2 Replies
View Related
Feb 3, 2011
So everytime I resume Ubuntu from hibernation, it remains black for a time then 2 messages on the screen appear for about 10 seconds before I can log-in:
Code: [ 0.556247] [drm:init_ring_common] *ERROR* render ring head not reset to zero ctl 00000000 head 02001000 tail 00000000 start 02001000 [ 0.556320] [drm:init_ring_common] *ERROR* render ring head forced to zero ctl 00000000 head 00000000 tail 00000000 start 02001000
View 3 Replies
View Related