Re: command line options

Eric Wilhelm <[email protected]>
Newsgroups gmane.comp.multimedia.grip.user
Message-ID <[email protected]>
# The following was supposedly scribed by
# Nic Pullan
# on Friday 29 April 2005 04:54 am:

> I tried to
>use this in the command line options
>
>-T Artist=%a -T Title=%n -T Album=%d -T Date=%y -T Tracknumber=`expr
> %t + 19` -T Genre=%G -V -o %m %w
>
>(it works fine with `expr %t + 19` replaced with just %t)

IIRC, we had a discussion about this before.  Your backticks aren't 
getting interpolated (probably because grip doesn't invoke a shell to 
run the encoder?)  One way to test would be with a wrapper script that 
just echo's its arguments to /tmp/args and see what is coming out.  I'm 
guessing that the backticks go through as literals.

Does ${expr %t + 19} work?

I think the work-around is to call a wrapper script instead.  Check the 
list archives.

--Eric
-- 
"Left to themselves, things tend to go from bad to worse." 
                                       -- Murphy's Corollary
---------------------------------------------
    http://scratchcomputing.com
---------------------------------------------


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.