Skip to Content.
Sympa Menu

baslinux - Re: [BL] Re: Using libc5 programs in BL2 (netpbm)

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: sindi keesan <keesan AT sdf.lonestar.org>
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] Re: Using libc5 programs in BL2 (netpbm)
  • Date: Tue, 26 Apr 2005 02:39:20 +0000 (UTC)

On Mon, 25 Apr 2005, David Moberg wrote:

----- Original Message -----
From: "sindi keesan" <keesan AT sdf.lonestar.org>

I wonder how we got so far off subject.

Deleted old subject lines...

On subject, now that I have installed the full wget, it is counting
all the bytes for me
6900K .> .......... .......... .........
while I play wdav with wget -O - http://|mpg123 -

A friend who tried straight mpg321 without wget said it stopped
playing after 10 minutes, so wget is not the cause of this.

You deleted the old subject line too soon ;=)


mpg321 or mpg123? mpg123 hasn't ever died on me in midstream, except
when I use it on a wget'ed file (the file has an EOF, which mpg123
takes as a signal to quit).
321, he says. He thought 123 was proprietary.


I already have BL3 set up and could
install the netpbm programs there and chroot to it.

Odd that I never even thought of that. Yes, this seems to be a good
solution. Learning to chroot is a very useful skill.

But this is not going to help other users of BL2, for whom I would like another solution. Let's just hope they are not using delilinux links2.
The BL3 links2 should work in BL2, I just don't like X.

I tried to use Abiword while chrooted and could not get it to work.


LD_LIBRARY_PATH="/usr/libc5" %1 %2

Isn't %1 %2 two arguments? I would need to specify the program and
the file it acts on (tiff or pnm).

Oh yeah, in ash I believe it's $1 $2, not %1 %2. $1 = program name,
$2 = first argument to a program.

So if I change the above to $1 $2 (where is it %?) it should let me do the following?

Then type

libc5 tifftopnm filename.tiff > filename.png ?

Similarly for pnmtotiff pngtopnm pnmtopng.

Yes. Of course, you're limited to just one argument. I would do

#!/bin/sh
LD_LIBRARY_PATH="/usr/libc5" exec "*@"


Another typo. :( It should be exec "$@". Dollar sign instead of
asterisk.

I thought exec was only used in X.

It is used anywhere. It basically means to have the program
which is exec'ed take over the script. Any line after a
successful exec line is ignored.

What does *@ mean

You should recognize the correct one: $@. The bzcat script I
posted earlier uses it. It's equivalent to $1 $2 $3 $4 $5...
ad infinitum.

and how would
I run tifftopnm with this script? Do I substitute tifftpnm for
"*@"?

You would run it the same way as the %1 %2 version that you made.
It just allows you many more arguments.

When would I want more arguments, besides the program and the file it is converting?


David




Archive powered by MHonArc 2.6.24.

Top of Page