[PD] Can I run scripts with [shell]?

IOhannes m zmoelnig zmoelnig at iem.at
Tue Jan 29 12:17:31 CET 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2013-01-29 11:59, Alexandros Drymonitis wrote:
> 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?

a "context" is simply a new shell process (i tried to avoid the naming
to prevent confusion with the [shell] object; seems like i failed).

you cannot "access" it.


it's very similar to the following.
 open a terminal (which will run an instance of /bin/sh)

 me at foo$ cd /tmp
 me at foo$ pwd
 /tmp
 me at foo$ /bin/sh
 sh-4.2$ pwd
 /tmp
 sh-4.2$ cd ~
 sh-4.2$ pwd
 /home/me
 sh-4.2$ exit
 me at foo$ pwd
 /tmp
 me at foo$ /bin/sh
 sh-4.2$ pwd
 /tmp

here you are running a shell session (context, process) within another
shell; whatever you do with in the first sub-shell (lines 4..10), will
not effect what you can do in the 2nd subshell (14..15)

gvmnasdr
IOhannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlEHr8cACgkQkX2Xpv6ydvTUmgCfcc2Ua7OGYpPkMu3+MFPvM2vV
sx8AnjX/Jh2Z0CBrLDEq8xcVBBsR643d
=z8B2
-----END PGP SIGNATURE-----



More information about the Pd-list mailing list