www.broadbandreports.com
  republican-creole
Search:  

 
   AllHot TopicsCable SupportTelco SupportHardware etcSecurityClubsGallery»»
 
Forums » Tech and Talk » OS and Software » All Things Unix » Seeking help with bash command piping, redirection, e.g.
 
Search Topic:
  Social:
topic feed
 
Posting
toggle:
flat / full
normal / watch
Post a:
Post a:
Permissions problem with ntfs-3g »
« Quest SQL Navigator equivalent for Linux  
AuthorAll Replies


rolfp

join:2001-09-12
Oakland, CA
·Comcast

Seeking help with bash command piping, redirection, e.g.

My treo phone creates voice memos that, when emailed as attachments, get formatted as a .qcp file. Not finding a linux player that can deal with this, I did find a decoder/encoder program owned by QualComm[SCO?] that has worked fine, so far:
»www.qctconnect.com/downloads/pur···1.tar.gz

It makes a .wav that plays nice and clear. My dream is to create a one-line or script, even, that I'll try to have the browser (Seamonkey) call when such a .qcp file is encountered. I've tried various combinations but cannot get it to go. A short sampling:


Can I get some guidance, please?

pablo2525

join:2003-06-23

I think I understand what you're trying to do.

Let me recap and see if I've understood your request, you wish to unpack a `.qcq' file and have `play' play the unpacked .wav file.

There are several ways to tackle this but first I might ask a question on what additional data `pvconv' might provide when executed.

Please post the output of the following


I have `play' on my machine but I'd rather see what version you're using.

If `pvconv' can't tell us what file it created, we'll need to take a different tack (create a temporary subdirectory, unpack there, look for any .wav file and play it).

Please let me know.

Cheers,

--
pablo
openSUSE 10.3/KDE
ISP: TekSavvy DSL; backhauled via a 6KM wireless link


evilghost

join:2003-11-22
Springville, AL
·Windstream


edit:
May 9th, @11:06AM

reply to rolfp
Find all .qcp files, convert to WAV, remove qcp, play converted wav.



evilghost

join:2003-11-22
Springville, AL

edit:
May 9th, @11:10AM

reply to rolfp
Optionally even:


rolfp

join:2001-09-12
Oakland, CA
·Comcast

reply to pablo2525
Hi, I can get the wav file and play it, I just wanted to automate the process in order to give a 'helper application' to seamonkey or konqueror so the browser will be able to play a qcp file when I click on it. Thanks.



rolfp

join:2001-09-12
Oakland, CA
·Comcast

reply to evilghost
Hi, one of them works for me, the one from your first post but, it seems to me, something similar that can be called as a helper application can be done. I was thinking calling the conversion executable and piping stdout (?) to play would do the trick but not so much.

Thanks.



evilghost

join:2003-11-22
Springville, AL
·Windstream

reply to rolfp
pvconv doesnt' support output to stdout, therefore, you're stuck writing a WAV file unless you write it to /dev/dsp directly, which may work but I doubt it...



rolfp

join:2001-09-12
Oakland, CA
·Comcast

Yeah, not having stdout seems to be a problem, thanks for the perspective. I've used your command that works for me in a modified fashion that, in my imagination, can be further developed to be called when a .qcp file is clicked in seamonkey or konqueror. Both use %u for this sort of thing and there is an exec statement documented for konqueror, so I'm going to try along those lines after work.


rolfp

join:2001-09-12
Oakland, CA
·Comcast

reply to rolfp
Well, I've made a text file application and associated it with .qcp in konqueror:

rm -rf ~/tmp/test/; mkdir ~/tmp/test/; cp %u ~/tmp/test/; find ~/tmp/test/ -type f -name *.qcp |while read line;do ~/tarballs/pure_voice_conv/pvconv "${line}" && rm -f "${line}" && echo "\"${line}\""|sed 's/\.qcp/\.wav/i'|xargs play;done

The first two commands get executed but my attempt to use %u, apparently, is not working:


The two listings were done just before and just after clicking on the .qcp file in konqueror.
Forums » Tech and Talk » OS and Software » All Things UnixPermissions problem with ntfs-3g »
« Quest SQL Navigator equivalent for Linux  

Most commented news this week
· [169] Obama Addresses FISA Immunity Critics
· [126] July Fourth Open Thread
· [120] Time Warner Cable: Caps 'Make Your Internet Experience Better'
· [116] AOL Raises Dial-Up Prices
· [105] SMS: You're Paying $1,310 (Or More) Per Megabyte
· [99] Video Wall at Comcast Building Draws Tourist Attention
· [87] Canadian iPhone: Get Less, Pay More
· [83] How Much Bandwidth Do We Really Need?
· [78] Additional AT&T iPhone Pricing Details
· [77] AT&T, CT Settle Dispute Over 'Lawn Fridges'
Sunday, 06-Jul
04:28:12
Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
8th year online! © 1999-2008 dslreports.com.
page compression OFF