republican-creole
Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » All Things Unix » Seeking help with bash command piping, redirection, e.g.
Search Topic:
Uniqs:
637
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
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
·EarthLink

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
Premium
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
Premium
join:2003-11-22
Springville, AL

edit:
May 9th, @11:10AM

reply to rolfp
Optionally even:


rolfp

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

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
·EarthLink

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
Premium
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
·EarthLink

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
·EarthLink

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  


Tuesday, 07-Oct 18:02:40 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 9 years online! © 1999-2008 dslreports.com.republican-creole
page compression OFF
Most commented news this week
· [116] It's Cable TV Rate Hike Season
· [69] Half Of New iPhone Owners Came From Verizon
· [64] Wholesale Bandwidth Prices Still Dropping
· [62] Supreme Court TiVo/Echostar Ruling
· [58] XOHM Online In Additional Launch Markets
· [54] AT&T Kills Off $20 Unlimited Pre-Paid Data
· [32] Customers Still Annoyed By FiOS Billing
· [23] Verizon Says Alltel Deal On Schedule
· [22] Verizon Pushes Toward a 100Gbps Core
· [22] Portland Lets Wi-Fi Network Rust
Most people now reading
· Valvoline put 5w20 in my camry! [Automotive]
· KFC 10.00 challenge [General Questions]
· [XP Home] I can't get past blue screen [Microsoft help]
· Extreme HD and Essentials [Verizon FIOS TV]
· [TWC] TWC SoCal, former Adelphia territory Slowness [Road Runner]
· To teksavvy and their new call back polocy & Shame on Bell [TekSavvy]
· Texas Realignment Thread - 10/6 [Verizon FIOS TV]