Skip to Content.
Sympa Menu

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

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: "David Moberg" <davidjmoberg AT lycos.com>
  • To: baslinux AT lists.ibiblio.org
  • Subject: [BL] Re: Using libc5 programs in BL2 (netpbm)
  • Date: Mon, 25 Apr 2005 21:19:35 -0500

----- 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.

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).

> 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.

> >> 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.

> >> 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.

David
--
_______________________________________________
NEW! Lycos Dating Search. The only place to search multiple dating sites at
once.
http://datingsearch.lycos.com





Archive powered by MHonArc 2.6.24.

Top of Page