What version Perl are you running?
I just ran it on my machine and it worked fine.
$ perl -v
This is perl, v5.8.7 built for i486-linux
Hope this helps.
> hmm, i got this error trying to run the perl script:
>
>
> [EMAIL PROTECTED] home]# ./lame.pl
> unknown warnings category 'File::Find'
>
> Did you write a script called /tmp/z with these contents and make it
> executable?
I made a script called z and put it in the /tmp/ directory, with the script
that you gave me, then i set the file permissions to 755.
> > #!/bin/sh
> > > infile=$1
> > > dir=`dirname $infile`
> > > base=`basen
On Fri, Aug 04, 2006 at 11:01:08AM -0400, Ken wrote:
> I'm getting this error when it try to run your script:
> "find: /tmp/z: No such file or directory"
> and the command I'm running it with, not sure if this is right,
> find /home/www.site.com/members/ -name '*.mp3' -exec /tmp/z {} \;
> thanks a
I often use grep in conjunction with "find" and "xargs". Check out xargs, it
might do exactly what you want or at least some of it.
On 8/4/06, Ken <[EMAIL PROTECTED]> wrote:
>
> I'm getting this error when it try to run your script:
> "find: /tmp/z: No such file or directory"
>
> and the command I
I'm getting this error when it try to run your script:
"find: /tmp/z: No such file or directory"
and the command I'm running it with, not sure if this is right,
find /home/www.site.com/members/ -name '*.mp3' -exec /tmp/z {} \;
thanks again,
-Ken
On 8/3/06, Warren Toomey <[EMAIL PROTECTED]> wro
hmm, i got this error trying to run the perl script:
[EMAIL PROTECTED] home]# ./lame.pl
unknown warnings category 'File::Find' at ./lame.pl line 8
BEGIN failed--compilation aborted at ./lame.pl line 8.
so I guess 'File::Find' isn't installed? but i can't remember the commands
to install it, i ha
ah, i've got it, had to initialize cpan first:-P
On 8/4/06, Ken <[EMAIL PROTECTED]> wrote:
>
> hmm, i got this error trying to run the perl script:
>
>
> [EMAIL PROTECTED] home]# ./lame.pl
> unknown warnings category 'File::Find' at ./lame.pl line 8
> BEGIN failed--compilation aborted at ./lame.p
awesome! thanks guys!
I'll try that this morning.
cheers,
-Ken
On 8/3/06, Stephen Swinsburg <[EMAIL PROTECTED]> wrote:
>
> Heres the perl equivalent:
>
> #!/usr/bin/perl -w
>
> #
> # script to process all mp3 files under a given directory or directories
> #
>
> use File::Find;
> no warnings 'Fil
Heres the perl equivalent:
#!/usr/bin/perl -w
#
# script to process all mp3 files under a given directory or directories
#
use File::Find;
no warnings 'File::Find';
#the @array holds the dirs you want to search, you can specify
multiple dirs here or just one,
#uncomment appropriate one
[EMAIL
On Thu, Aug 03, 2006 at 06:29:12PM -0400, Ken wrote:
> such I've added code to re-encode mp3's as they are being uploaded, but all
> for the existing mp3's, is it possible in the Linux shell to use maybe grep
> or something to go though all the folders and re-encode every single mp3 one
> at a time
hmm, i don't really know perl, though i know php/asp/vb very well.
but i thought that maybe i could just use grep to find the files and parse
the names into the lame command line.
On 8/3/06, Stephen Swinsburg <[EMAIL PROTECTED]> wrote:
>
> Hi Ken,
> Probably easiest to write a quick perl script
Hi Ken,
Probably easiest to write a quick perl script to search through the
directories and encode each one it finds with your settings.
Hint: Use the File::Find module and give it the top most directory
and it will recurse through every directory it finds.
Hope this helps!
Steve
On 04/08/
Hello,
I'm new to the list, and new to lame, but i love it so far!! it's exactly
what we need for our web site.
I'm posting because I'm wondering how this can be done.
I've got about 30 gig's of mp3's on our web site ( all legal! ), all the
mp3's are in folders for the bands they belong too, we'd
13 matches
Mail list logo