Programming :: Make A Script That Plays One, Waits 500ms, Plays One, Waits?
Mar 6, 2010
I have a directory that contains a bunch of sound directories containing WAV files.I want to make a script that plays one, waits 500ms, plays one, waits, etc.i tried cat `find . -name *.wav && sleep 1` > /dev/dsp.It plays them but with no delay between.
I'm on Fedora 14, and OpenOffice 3.3.0 takes a long time to open (about 30 seconds, sometimes less). It isn't a CPU or disk performance issue, it's just simply a very long delay before the program opens. It appears to be a frivolous network connection timing out. According to Wireshark, it tries to look up:
dulcimer.(none) which fails, after which it tries to look up: dulcimer.(none).mylitestream.com (dulcimer is my hostname, and LiteStream is my ISP) Is there a way to work around this bug in OpenOffice?
Last week I installed minimal Ubuntu Karmic with XBMC live on my HTPC. I'm connecting to my fileserver thru a wireless interface and although that works like a charm most of the time, every once in a while the interface doesn't come up during boot and the PC 'hangs'.
I then press ctrl+alt+del and the pc reboots and the Grub2 boot menu appears, I suppose because the previous boot didn't go well. However, the boot menu doesn't have a timeout, I have to press <enter> to continue booting. My wireless USB-keyboard isn't working at that stage yet, so I'm unable to continue.
We have implemented a Ubuntu with Squid (2.7) & Dansguardian, Webmin and the webmin modules for these services. Server was running fine for about 6 months then suddenly there are hundreds of TIME_WAIT's when using: Code: netstat -antup
This causes the clients to get this error on their browser: Code: commBind: Cannot bind socket FD 10 to *:0 (98) Address already in use Even 1 single client working will fill 3 pages of TIME_WAIT
Clients are Mac's bound to OD & AD (magic triangle). We reverted the vm image to a snapshot back when was working fine but problem remains. We created a server from scratch and same issue. We use ldap_auth to the active directory for authentication: Server is 2008 R2
I have a very strange problem with Fedora 13 on my home PC. When booting it just hangs at random points in the boot process. When it happend the first time, I thought the PC probably is completed frozen, but then I discovered that hitting the return button got the boot process going on again, but just step by step. That means on every boot I have to keep hitting the return button until gnome starts up, that's very annoying. So for any reason the boot process seems to switch to interactive mode somehow...
I already removed the kernel boot options rhgb and quiet to see, where exactly this happens in the boot process. But as I said, it seems to be completely random. Sometimes it's when "Starting udev", sometimes, when setting up eth card, when starting atd, and so on. It's different every time.
By the way, a similar thing happens when shutting down. It can take up to half an hour until the PC really shuts down. But it's usually going faster if I just keep hitting return after issueing the shutdown command (which actually looks a bit dull). But the PC finally shuts down at some point. That's not the case when booting up. I thought, maybe there's some kind of timeout problem. But even waiting for two hours, the PC does not startup without keeping hammering the return button
I decided to install Ubuntu on my desktop after the setup went well on my laptop and I liked the OS. I already had Windows 7 and Backtrack 9 installed on my HDD, so when I was in setup I took the 200gb partition for BT9 and formatted SDA5 to ext3 with "/" as the root. Then checked "format" and selected SDA5 from dropdown list and continued to install.Everything went smooth in the installation and I was prompted to reboot which I did assuming I would soon see a GRUB screen. Instead I got an error saying
and then the computer just freezes. I've tried to boot from CD but I just get "CD-ROM Boot Priority ...Boot Ready" and then after about 30 seconds it tries to boot from the HDD and I get the same error.I've read that I need to configure GRUB somehow but I have no idea how to do that and I can't boot anything from a CD because it just waits and then jumps to the HDD. I guess what i'm asking is if there is a way to configure GRUB from the BIOS menu or make it possible to be able to boot from a CD.
I have a problem with a simple client/server socket program. the connection is done through 2 connections a udp connection and a tcp connection. the flow is that the client sends a udp packet to the server and the server returns it through a tcp connection. this is done in a loop. my code works fine on an ubuntu server, when I try to use it on redhat it sometimes get stuck. the server is stuck on recvfrom and the client waits on the recv. if i add a delay in the server or run the client through strace everything works fine.
my fedora 10 booting stops at starting udev for 5-6 minutes.when i pressed 'i' for interactive , i see ata3(i think its my DVD-R/W) responding too slow. so, booting stops there till it responds.o/p of
Mu understanding of RFC 1122 (Fast Retransmit) is that upon receipt of the 3rd duplicate ACK, the sender should react by starting to retransmit the lost packets.
In my case, looking at the Wireshark trace, I see the sender receiving hundreds of DUP ACKS from the receiver and doing nothing about it until 200 ms pass by. Only then does the sender finally starts to retransmit. That's killing performance.
The sender is running Red Hat 5.3 (which is Linux 2.6.18). Is this an indication that the sender does not support Fast Retransmit? Is there a config param that I need to turn on?
I ran a yum update this morning on my Fedora 10 box (i386), which updated the 'nfs-utils' package from 1.1.4-4.fc10 to 1.1.4-6.fc10. Before the update I was able to connect to the fedora NFS exports just fine from my Macbook Pro running latest version of Leopard on a simple home network. After the update, when I try to connect to the NFS export it waits for a while at leopard's "Connecting to Server" dialog box, and after about a minute I get a message saying "Could not connect to the server because the name or password is not correct" (though my UID's are the same on both systems). My /etc/exports and /etc/sysconfig/nfs files were unchanged by the update. I tried restarting the nfs services as well as shutting down iptables and setting SELinux to permissive, etc. with no success.
I get the following in /var/log/messages (192.168.1.102 is the address of my macbook):
I was able to download the RPM for the older version of nfs-utils and then do a 'yum localinstall' to revert to the older version. This fixed my issues completely and my setup works as it did before. However I am curious to know why the latest version of nfs-utils breaks my setup, and whether it is a problem with my setup or if I should just wait for the next version to come out and see if the same thing happens.
Here is my /etc/exports file. If I understand this correctly it should allow connections from anyone with an IP address on my local network.
I have a home movie that is currently in Video_TS format (.bup/.vob files). I burned the movie using K3b and it works awesome in both Ubuntu and on my DVD player with the television. BUT the thing will not play in XP! I understand this is because XP is the work of the devil, but that is not important. The disc shows 4Gb used (in XP) but only gives the title. I even made sure hidden files were visible, just in case somehow the movie was invisible. I have tried burning my DVD directly from the video_ts files in K3b, and first making an .iso file, then going over to XP to burn the DVD using Nero...annnnnd same thing. I can watch them on the TV and 'buntu but not XP.
What have I done wrong? Advice? Need more info? invariably someone wants to ask the irrelevant question "Why do you need to watch it in Windows?"
I just started with kubuntu 10.04 and first of all let me say I love it! I came from debian lenny with kde so a lot of it is similar. There is one problem: my microphone plays through my computer speakers but I can't record it or use skype with it (I mainly want to use skype). So first question is how do I stop it playing through the speakers and how do I use it with skype?
i am running Fedora 14 32 bits and have an problem with the soundvolume the sound is too quiet i have checked alsamixergui and the volume is 100 % but the sound is very soft. I have the following soundcard/chip:00:05.0 Audio device: nVidia Corporation MCP61 High Definition Audio (rev a2)have someone any idea how to configure the sound that it plays louder.
After a fresh install of opensuse 11.2 I followed the multimedia guide to install mm-support. Sound is working, results in xine are excellent. Compared to 11.1, vlc now plays sound with drops about every second. To be more precise: sound is ok for several seconds, then a first drop appears. Thereafter the time between the following drops slowly shortens. After a minute or so, the drops come in intervals of about a second.
SM player works yes, but how do i get the thumbnail previews. I did a fresh install of opensuse, i installed the updates they Yast told me to. I followed the guide precisely this time, using the command line method and encountered some problems. 4 files, asked to be broken or use obsolete at the point where i have to do the switch to packman repository. I chose use obsolete cuz i didn't want to break anything. When i tried to set an mkv to open in SMplayer the optionw asn't there, only banshee and totem. I opened Yast and it told me to install opensuse codec installer and another file can't remember) which i did. The option to open files in SMplayer, Xine etc came up then.
I'd like to get the thumbnails and I'd like to see Totem work as well. I know i don't need to, but considering that i downloaded the neccesary codecs, i expect it to work :/ or am i wrong with that assumption On a totally unrelated note, is there a way to increase the resolution of the bootloader? i'd like to be 1920x1200 to full my screen
In Hardy Heron, after installing xine and the usual stuff, and setting xine as the default dvd player in /etc/gnome/defaults.list in the usual way, and also linking /dev/dvd to /dev/dvd2, when I pop in a commercial dvd for autoplay, or select xine from the context menu to play it, it starts to play fine, but also produces the "source can't be read" messagebox, which goes away after being OK-clicked 10 (exactly!!) times.Launching xine directly from the application menu does not produce this problem.
when i play a song in banshee, or a videos video, i get no sound at all. however, in banshee 1 3 minute song will appear to play in about 20 seconds (the progress bar speeds along), and videos videos play back in ultra-fast motion with no sound. weirdly, when i go to system settings -> multimedia, and click test on the default sound device, the kde login sound plays back fine. this worked when i first installed; does anyone know what's going on here? i think it may be a problem with gstreamer?
i have a sony vaio vgn-n38z laptop with an external microphone which i'm trying to use with skype. the microphone (which works; i tried it on another computer) doesn't record anything, but when i speak in it, it actually plays through the speakers (kind of like karaoke).
so basically, i want it to stop playing through the speakers and start recording!
with lspci: my Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 02)
with the command: head -n 1 /proc/asound/card0/codec*, i get: Codec: Realtek ALC262
I have been using ubuntu for the last year. Everything has been working fine. One day I was in class listening to music through my headsets and closed the lid. The computer suspended and I didn't think anything about it. When I got home and opened the computer up with the headsets unplugged, the speakers were not playing. Now I only get audio through my headsets, but if I suspend the computer with the headsets plugged in and open the computer up with the headset unplugged, the speakers plays for 5 seconds and then turns off. I have an HP Pavilion Entertainment PC with Altec Lansing speakers
I have an odd problem with a copied DVD. I started with a commercial DVD and created an ISO file. The ISO file plays perfectly with VLC. I take the ISO file and burn it to a DVD+RDL without error. The burned DVD will not properly play on my computer or DVD player. It loads, but the menu is jerky and full of video block artifacts. The menu does not function properly. I tried this more than once with different software, including going directly to the DVD. I am using a drive that worked before, with the same stack of DVD+Rs that I used before.
Here is where it gets interesting: I can take the non-working burned DVD and copy it to a new ISO file. The new ISO file works fine with VLC. Obviously the data is getting properly copied from the source DVD, and it must be good on the burned DVD, but it won't play properly.
Got this weird problem. I just installed 10.10 to my Thinkpad W510. I am trying to install the proper codecs required to play .avi and other files. I can hear sound, but no vide
When I mouse over a wav file What plays it in 8.10?
I'm trying to write a small script that I can have another program run automatically.
All I want the script to do is play a short .wav file on the system speaker just as it does when I mouse over it.
I Used Mplayer on my old system but I reloaded with 8.10 and I don't want to upgrade because I'm running zoneminder and the version I like is not in the repos for the latest versions of Ubuntu. And The repo is dead for 8.10 so I cant easily install mplayer.
I have an .avi file that is a clip from a security camera recording of an incident. I am trying to edit the video with an editor and I have an issue in just playing the video. When playing the video it opens and plays just fine but reversed and upside down. I don't see any settings in any of the players I have tried (VLC, etc.) to correct this. It plays fine from the Windows computer at work. I believe there may be some special codecs related to this particular security camera software. Does anyone know how I might deal with this to correct it?
Code: #### Debian Backports - [URL] deb [URL] squeeze-backports main #### Debian Multimedia - [URL] ## Run this command: apt-get update && apt-get install debian-multimedia-keyring && apt-get update
deb [URL] stable main non-free #### Google Linux Software Repositories - [URL] ## Run this command: wget -q -O - [URL] | apt-key add - deb [URL] stable non-free main
#### Google Linux Software Repositories (Testing) - [URL] ## Run this command: wget -q -O - [URL] | apt-key add - deb [URL] testing non-free #### Skype - [URL] ## Run this command: gpg --keyserver pgp.mit.edu --recv-keys 0xd66b746e && gpg --export --armor 0xd66b746e | apt-key add - deb [URL] stable non-free
#### VirtualBox - [URL] ## Run this command: wget -q [URL] -O- | apt-key add - deb [URL] squeeze contrib #### Wine - [URL] ## Run this command: wget -O - [URL] | apt-key add -
VLC started to playing only the audio and not the video, I tried setting the video preferences but all video outputs didn't work. How do I get my video back.
I have recently swapped over to debian (KDE 32bit) from linux mint, however vlc only plays audio, no video (This is for .avi's, .wmv's and rtsp streams, probably others but that what i have available to try). I've installed debian multimedia and dragon player will play .avi's fine, though crashes with .wmv's .
Output if i start play a video vlc through terminal VLC media player 1.1.3 The Luggage (revision exported) Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
I have the default install of openSUSE 11.4 64bit and default Firefox 4.0b12 installed. I have installed multimedia support as per caf4926's guide on this page: Multi-media and Restricted Format Installation Guide
When I playback Internet web page movies in Firefox they flicker badly. The same movies played in Google Chromium play just fine. What do I do to get Internet films to play fine in Firefox?