On 10 Feb 2001 21:13:26 -0600, Glen Lee Edwards wrote:
>
> I have a script written that modifies some configuration settings for fvwm.
> After executing the script I'd like to be able to have fvwm automatically
> restart. I've tried the following, but it isn't working (all on one line):
>
> *Xemacs(1x1+0+0 Frame 4 Title "Use Emacs", Action Exec exec xterm -e
> "/home/glenlee/.fvwm/emacs.cgi" Restart fvwm2
You need a function to set more than one command, but even then you should
remember that Exec is asynchronous and you want some synchronization here.
PipeRead is good to synchronize non-interactive commands. Otherwise - Wait.
> Any suggestions?
*Xemacs(1x1+0+0 Frame 4 Title "Use Emacs", Action Function EditAndRestart)
AddToFunc EditAndRestart
+ I Exec xterm -e $FVWM_USERDIR/emacs.cgi; \
xmessage -g +2000+2000 -name ReadyToRestart dummy
+ I Wait ReadyToRestart
+ I Next (ReadyToRestart) Close
+ I Restart
or:
AddToFunc EditAndRestart
+ I PipeRead `xterm -e $FVWM_USERDIR/emacs.cgi >/dev/null`
+ I Restart
Please always use Restart without parameters to avoid any potential
problems.
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 Sun Feb 11 2001 - 05:36:12 GMT