[PD] [shell] on OSX...
IOhannes m zmoelnig
zmoelnig at iem.at
Thu Oct 18 18:04:00 CEST 2007
Derek Holzer wrote:
> Hi IOhannes,
>
> thanks for the clarifications. I understand now why [shell] doesn't stay
> in "/home/derek" between commands.
>
> I'm not so good at shell scripts, so bear with me for a second....
>
> What I'd like to do is pass variables.... so, for example:
>
> cd /home/derek && mkdir test_$1
in this complicated example i would suggest to run
"mkdir /home/derek/test_$1" :-)
>
> --where $1 is a number created by PD and sent to the shell script. The
> dir name could be constructed by [nsprint], for example, as it may have
> other variable as well. The shell script would only need a single
> variable to receive the constructed dir name.
>
> Does that make sense? Is this easy to do?
>
if it get's more complicated just do it like this
#!/bin/sh
cd /home/derek
mkdir test_$1
and call your script with [/path/to/myscript.sh $1(
mfga.sdr
IOhannes
More information about the Pd-list
mailing list