[PD] launch a script

B. Bogart ben at ekran.org
Wed Jun 1 15:48:54 CEST 2005


Hey,

OR use "cd" in the tcl script. This is also a valid tcl command.

That is if your tcl part is actually getting run.

But you should really look at toxy, uses the same interpeter to do the
tcl stuff as PD does.

B>

nico wrote:
>
> 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
> nico
>
>>
>> mfg.a.dr
>> IOhannes
>>
>
>
>
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20050601/3e123099/attachment.pgp>


More information about the Pd-list mailing list