• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can't pipe files to compileHelp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't pipe files to compileHelp


  • Subject: Re: Can't pipe files to compileHelp
  • From: Cameron Hayne <email@hidden>
  • Date: Sun, 4 Aug 2002 09:58:30 -0400

On Sunday, August 4, 2002, at 07:55 am, Bill Cheeseman wrote:
if I generate a list of the two files using ls and pipe it to the
compileHelp command, I'm told I have used the wrong number of parameters:

ls *Help.rtf | compileHelp -o Help.plist

The error message says:
"usage: compileHelp [options] file..."
So it seems that compileHelp does not support getting its files from stdin - it's just stupid that way.

Andy Lee has already responded suggesting a few ways you could do what you wanted.
Here's another, possibly better way.
The 'xargs' utility is designed for exactly the situation you have encountered. (man 1 xargs).
You could do your example using xargs like this:
ls *Help.rtf | xargs compileHelp -o Help.plist

--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Can't pipe files to compileHelp
      • From: Bill Cheeseman <email@hidden>
References: 
 >Can't pipe files to compileHelp (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Framework problem
  • Next by Date: Re: Can't pipe files to compileHelp
  • Previous by thread: Re: Can't pipe files to compileHelp
  • Next by thread: Re: Can't pipe files to compileHelp
  • Index(es):
    • Date
    • Thread