Re: FVWM: ExitFunction?

From: Thomas A. Gardiner <gardiner_at_pas.rochester.edu>
Date: Wed, 21 Feb 2001 10:20:30 -0500 (EST)

Hi,

I'm not really sure of the answer, but think it might have to do with the
process getting killed before it can be completed...

Try adding a PipeRead command before the Exec. This will cause the
function to wait for the shell script to exit.

Hope it works...

Tom

On Wed, 21 Feb 2001, Andrew Sullivan wrote:

>Hi,
>
>I'm trying to get something to work with ExitFunction, and it's not
>happening. I wonder whether I mightn't be doing something wrong.
>I've looked for example .fvwm2rc files that use this function, and
>haven't had any luck.
>
>I have a shell script that a user wants to move her .forward file out
>of the way when she logs in, and move it back when she leaves.
>Simple enough; but she always logs in through X, and (of course) I
>don't want the script to run every time she closes a shell.
>
>I figured the answer was ExitFunction, since the man page says
>
> Fvwm also has a special exit function: ExitFunction, exe­
> cuted when exiting or restarting before actually quitting
> or anything else.
>
>But when I run the script, it has no effect. (The script works
>otherwise.) Initially I thought there might be an issue with
>ExitFunction passing arguments, but that doesn't seem to be the case,
>because there are no errors of any kind generated. Here's the call:
>
>AddToFunc ExitFunction "I" Exec /home/ajs/moveforward mvback-ni
>
>Any suggestions welcome.
>
>A
>
>

-- 
_________________________________________________________________________
Thomas Gardiner
gardiner_at_pas.rochester.edu
University of Rochester
Department of Physics and Astronomy
P. O. Box 270171
Rochester, NY 14627-0171
(716) 275-8557 Office
(716) 275-8527 fax
__________________________________________________________________________
The scientist does not study nature because it is useful; he studies it
because he delights in it, and he delights in it because it is beautiful.
If nature were not beautiful, it would not be worth knowing, and if nature
were not worth knowing, life would not be worth living.- Henri Poincare
__________________________________________________________________________
--
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 Wed Feb 21 2001 - 09:20:16 GMT

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