in reply to Safely capturing the output of an external program

What are the command line commands you're sending?

For searching for files if that's all you're doing, I like File::Find::Rule.

  • Comment on Re: Safely capturing the output of an external program

Replies are listed 'Best First'.
Re^2: Safely capturing the output of an external program
by AppleFritter (Vicar) on Mar 09, 2020 at 08:01 UTC
    The command would be something like kpsewhich cmr10.tfm. I'd prefer to use kpsewhich, the kpathsea library it wraps, or whatever other standard methods may exist in TeX for finding files, so as to ensure my script'll find the same files that TeX does; but if all else fails I'll try File::Find::Rule, thanks.