This page is READ-ONLY. It is generated from the old site.
All timestamps are relative to 2013 (when this page is generated).
If you are looking for TeX support, please go to VietTUG.org

start many programs at the same time

Added by over 3 years ago

My previous openbox's startup file wasn't good because firefox, liferea,... wait for the stardict.

The key is that we have start some programs in the background. We have to use the eval otherwise the error occurs (command not found).

appso="firefox3 pidgin claws-mail liferea" 
apps="stardict" 

/sbin/ping -t 2 -c 1 208.67.222.222

if [ $? -eq 0 ]; then
        apps="$apps $appso" 
fi

st="echo 1" 
for a in $apps; do
        st="$st ; (/usr/local/bin/$a &)" 
done

eval $st

It works fine now.


Comments