<div dir="ltr">I don't really understand the meaning of 'context' (not the actual word, but the way you're using it)..how are these contexts accessible? How are commands being executed when sent to the same object?<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 29, 2013 at 12:41 PM, IOhannes m zmoelnig <span dir="ltr"><<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<div><div class="h5"><br>
On 2013-01-29 11:23, Alexandros Drymonitis wrote:<br>
> I checked the help patch of [shell], but if I send a cd command<br>
> for example, I don't think that something really happens. I<br>
> actually would like to run a script from within Pd, but what I<br>
> understand is that this can't be really done, is it so? Can anyone<br>
> demonstrate something like this?<br>
<br>
</div></div>that's exactly the point: with [shell] you _should_ run scripts.<br>
<br>
each command you send to [shell] will open a new "context".<br>
<br>
so if you send it a "cd ..", it will create a new context (in your<br>
working directory, lets call it ${WD}), move one directory up (so we<br>
are now in ${WD}/.., report any output (not very much in this case),<br>
and close the context.<br>
if you then send it a "pwd", it will create a new context (in your<br>
working directory ${WD}), print the PWD and close the context.<br>
<br>
obviously your "cd.." did not affect "pwd", as they have been executed<br>
in different contexts.<br>
<br>
in order to do anything more complex, you have to create a<br>
script-file, and run this via [shell].<br>
e.g.<br>
<snip><br>
#!/bin/sh<br>
cd ..<br>
pwd<br>
</snip><br>
<br>
and run "myscript.sh" via [shell] should give you ${WD}/..<br>
<br>
fgamsdr<br>
IOhannes<br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.12 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br>
<br>
iEYEARECAAYFAlEHp1UACgkQkX2Xpv6ydvQxewCgoxOK3SpyBVJOD+/WkFCt3CjT<br>
UPkAoNnAAwJwK9f5kaQNRysEesOexAU5<br>
=bZxD<br>
-----END PGP SIGNATURE-----<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</div></div></blockquote></div><br></div>