Re: FVWM: PipeRead help

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Sat, 7 Sep 2002 22:49:27 +0000

On 07 Sep 2002 23:28:29 +0200, Johan Svedberg wrote:
>
> I need some help. What I want to do is check if a program is on my
> system, and if it is I want to run it in my InitFunction. I'm guessing
> this could be done in a Function using PipeRead, but I have no idea how
> to do it... :-) Help would be greatly appriciated.

Do what you would do from a script or command line. Something like this:

  Exec which myprogram >/dev/null 2>&1 && myprogram params

Some propretary unices (Solaris) have pretty unusable "which" that always
returns 0 and write errors on stdout. There are also "whereis" (external),
"where", "filetest -X" (tcsh/csh), "hash", "type" (sh).

Regards,
Mikhael.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sat Sep 07 2002 - 17:50:38 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:53 BST