Hi, On 07.01.2011 20:49, Pierre Massat wrote: > don't know if it made it through the storm... > > 2011/1/3 Pierre Massat <pimas...@gmail.com> > >> Hi all! >> >> Happy new year first of all! >> >> Is there a way i can write a script that would start Jack and Pd in the >> proper order by clicking on a single file?
I have made two simple scripts for that, one that starts jack, qjackctl and programs, that are in a text file with each program in a seperate line, and another script to stop all started programs. To use them for puredata only, rewrite the "while["$1"]; do done" portions to start only Pd. The textfiles look like that: pdextended -rt -jack -alsamidi -inchannels 2 -outchannels 8 ardour2 >> And is there a way i can start both as root? (I need to use HID) I'm >> assuming this would be quite a big breach though. To start programs with root provileges, use gksu or gksudo for X11 programs. cu Thomas -- "[D]ie Kunst flieht, wenn ihr eure Thaten sofort mit dem historischen Zeltdach überspannt." (Friedrich Nietzsche - Vom Nutzen und Nachtheil der Historie für das Leben) http://www.residuum.org/
#! /bin/bash # mknoise v0.1 # starts jackd and qjackctl (if not already running) and programs from a # text file, each program in new line including options # takes text file(s) as argument: $ ./mknoise file1 [file2 ...] if pgrep jackd then true else /usr/bin/jackd -dalsa -r44100& > /dev/null 2>&1& fi if pgrep qjackctl then true else /usr/bin/qjackctl > /dev/null 2>&1& fi while [ "$1" ]; do cut -d " " -f 1 $1 >> .musicapplist while read; do X="$REPLY" $X > /dev/null 2>&1& done < $1 shift done
#! /bin/bash # stopnoise v0.1 # stops programs, that have been invoked by mknoise # including jackd and qjackstl # run with $ ./stopnoise while read ; do X="$REPLY" killall $X done <.musicapplist rm .musicapplist killall qjackctl killall jackd
_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list