On 27/02/2010 11:10, Michael Reifenberger wrote:
> Hi,
> for compiling a list of ports inside a emulated FreeBSD-current environment
> I would need to use portmaster as:
> 
> cat ./myports.txt | xargs portmaster -r -R -G -g -d -m "WITHOUT_GSSAPI=YES"
> (myports.txt contains a list of to be installed/updated ports)

Useless use of cat.
xargs < ./myports.txt portmaster ...

> Unfortunately this doesn't work (specifying -m "BATCH=yes" doesn't help
> too).

xargs(1) holds the solution, this one will work:
xargs -o < ./myports.txt portmaster ...

-- 
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail? 
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to