FVWM: waiting for command?

From: Andre Bonhote <andre.bonhote_at_linux.ch>
Date: Mon, 22 Jan 2001 13:52:28 +0100

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.
Received on Mon Jan 22 2001 - 06:52:27 GMT

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