[PD] launch a script

nico sl1200mk2 at free.fr
Wed Jun 1 12:44:26 CEST 2005

Le 1 juin 05, à 12:39, IOhannes m zmoelnig a écrit :

> nico wrote:
>> another little question,
>> how to deal with [shell] and path
>> because the result of wish1.tcl return / path when i launch it with 
>> [shell], or i would like it to return the 
>> /containing/wish1.tcl/directory/
>> ?
>> is it possible to change the current working directory with [shell]   
>> (cd command don't work)
> "cd" _does_ work with [shell]
> but:
> when you send a command to [shell], it will create a new instance of 
> shell (rooted at "/"), execute the script and quit.
> if you send another command to [shell], it will create another new 
> instance of shell (again, rooted at "/"), execute the script and quit.
> so if you send "cd /tmp" to [shell], it will change (from "/") into 
> the directory "/tmp" and quit.
> if you then send "ls" to [shell], it will list the contents of the 
> current directory ("/").
thank you for the [shell] discribe
> for a solution read x's mail (put "cd" into the scrip)
that's what i've done and it works, nice
thanks a lot
> mfg.a.dr
> IOhannes

More information about the Pd-list mailing list