nico bats wrote:
is there's a simple way to find the pid of pd after i've launched it. with the unix ps command, i can find the pid, but can it be done automagically.
You can store the process id in a variable if you start a program asynchronously from a script. For example here is part of my ~/.xinitrc
# start window manager /usr/bin/fluxbox & $wmpid=$!
# launch programs here asynchronously
# wait for window manager to exit wait $wmpid
You could use pdsend to send the pid to pd after a short delay (enough time for Pd to start and load the patches that will receive the pid).