You could as well capture the PID and then wait.
Then you can launch the apps in whatever order you wish.
Sample below, look at $wm_pid.

=============================================
wm=fvwm
#export KDE_SESSION_VERSION=4
xrdb -merge ~/.Xdefaults
random_wallpaper.sh
xsetroot -cursor_name left_ptr
$wm > "${HOME}/logs/${wm}.log" 2>&1 &
wm_pid=$!
gkrellm -g -0-0 &
gkrellm -g -0+0 -s server &
#ossxmix -b &
urxvtd &
urxvtd_pid=$!
sleep 2
urxvtc -fade 20 -name server_htop -g 188x69+1680+0 -title server_htop -e
ssh r...@server
#urxvtc -fade 20 -name logs -g 80x29+2520+24 -title logs -e mtail -f
~/logs/${wm}.log /var/log/messages
#urxvtc -fade 20 -name htop -title htop -e htop
urxvtc -fade 20 -name main_term -g 188x69+1680+0 -e screen -D -RR
firefox &
wait $wm_pid
kill -TERM $urxvtd_pid
=============================================
-- 
Jesús Guerrero


Reply via email to