Re: FVWM: waiting for command?

From: Thomas A. Gardiner <gardiner_at_pas.rochester.edu>
Date: Mon, 22 Jan 2001 08:00:32 -0500 (EST)

I think you might be looking for the PipeRead command. This will cause
the function to wait for the return of the mount call.

T.

On Mon, 22 Jan 2001, Andre Bonhote wrote:

>Hi there!
>
>I am trying to mount my CD-Drive and popup an Xterm-Window with the
>content of /cdrom afterwards. Now I found out, that one line in a
>function doesn't wait for the previous line to be completed. This is a
>problem, for mounting takes some time. Here's my example code:
>
>AddToFunc MountCdromFunc
>+ I Exec mount /cdrom ; sleep 2
>+ I Function OpendirFunc /cdrom
>
>AddToFunc OpendirFunc
>+ I Exec cd $0 ; aterm -tr -sh 30 -bg black -fg white -ls
>
>This mounts the CD-Rom and opens a terminal window in /cdrom, but i have
>to do cd ..; cd /cdrom in that window again, cos the content of it was
>not there when the terminal window opened.
>
>Is there any way to wait for "mount" to be finished? I guess it would
>work, if "Function OpendirFunc" and "Exec" would be in one line, but I
>don't know a way to have a Function call after an Exec, except having it
>on a separate line.
>
>thank you
>
>andré
>--
>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.
>

--
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 Mon Jan 22 2001 - 07:03:56 GMT

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