<div dir="ltr">I don&#39;t really understand the meaning of &#39;context&#39; (not the actual word, but the way you&#39;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">&lt;<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>&gt;</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>
&gt; I checked the help patch of [shell], but if I send a cd command<br>
&gt; for example, I don&#39;t think that something really happens. I<br>
&gt; actually would like to run a script from within Pd, but what I<br>
&gt; understand is that this can&#39;t be really done, is it so? Can anyone<br>
&gt; demonstrate something like this?<br>
<br>
</div></div>that&#39;s exactly the point: with [shell] you _should_ run scripts.<br>
<br>
each command you send to [shell] will open a new &quot;context&quot;.<br>
<br>
so if you send it a &quot;cd ..&quot;, 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 &quot;pwd&quot;, it will create a new context (in your<br>
working directory ${WD}), print the PWD and close the context.<br>
<br>
obviously your &quot;cd..&quot; did not affect &quot;pwd&quot;, 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>
&lt;snip&gt;<br>
#!/bin/sh<br>
cd ..<br>
pwd<br>
&lt;/snip&gt;<br>
<br>
and run &quot;myscript.sh&quot; 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 -&gt; <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>