in reply to passing a parameter to an outside program

That depends on how you're calling the other program. If you're using backticks, the called program can just print the string and the calling program will capture it.

Caution: Contents may have been coded under pressure.
  • Comment on Re: passing a parameter to an outside program