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

Programming :: Tail The Message Log| Grep - Several Words - Play A Sound When It's Found

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

General :: Tail -f Not Tracking File Changes?

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

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 View Related

General :: Tail File If The Name Is Changeable?

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

General :: Tail Command Does Not Refresh All The Time?

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

General :: Tail The Latest Log File In One Command Line?

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

General :: Tail Command Syntax To Print A Sequence Of Line ?

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

General :: Place A Shell Script With Tail -f In The Back Ground?

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

Ubuntu :: Tail Logs On 11.04

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

Fedora :: Tail -f /var/log/messages Info

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

Ubuntu :: Tail -f <filename> Is Not Working

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

Ubuntu :: Tail Log Files To Syslog?

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

Ubuntu Servers :: How To Tail Log File And Printout

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

CentOS 5 :: RPM Tail Chasing Clobbered Yum Upgrade

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

Fedora :: Tail: Cannot Open `+124' For Reading: No Such File Or Directory

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

Ubuntu Networking :: Any Way Could Tail Output As NetworkManager Tries To Connect

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

Fedora Installation :: X11vnc : Tail: Cannot Watch /tmp/x11vnc.tray.*

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

General :: XEN - Can't Use Sound Card And Windows Is Unable To Find Any Sound Hardware

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

General :: Sound Card Apparently Installed But Sound Doesnt Work

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

General :: Buzzing Sound From Speakers ONLY When No Sound Is Playing Ubuntu

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

General :: Getting Sound To Application From Sound Card Line-in/microphone?

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

General :: Usb Sound Card Won't Make Sound When I Put Headphones In It In Alsamixer / Fix It?

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

Ubuntu :: Sound: Mic Doesn't Work - Audio Input Level Graphically Shown In Sound Preferences Shows No Fluctuations In Sound

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

General :: No Sound But Have Sound With Windows?

Feb 22, 2010

no sound but have sound with Windows?

View 2 Replies View Related

OpenSUSE Hardware :: Sound With New Sound Card - Web Browser Is Unable To Play Any Sound

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

Software :: No Sound With Diamond Xtreme Sound 5.1 Sound Card - PCI Port?

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

General :: Lost Sound When Upgrading To Ubuntu 10.40, Except For Ubuntu Sound During Start-up?

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

Ubuntu Servers :: Dpkg-buildpackage Error "dpkg-buildpackage: Failure: Tail Of Debian/changelog Gave Error Exit Status 1"?

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

Ubuntu :: Bootup Error Messages "render Ring Head Not Reset To Zero Ctl 00000000 Head 02001000 Tail 00000000 Start 02001000"

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







Copyrights 2005-15 www.BigResource.com, All rights reserved