On 2016-02-04 02:57, Richard Gaskin wrote:
I've successfully exported variables to a process run with shell, e.g.:
put shell("export somevar='Hello!'; ./test.sh")
...where test.sh simply echoes somevar to verify that it got it.
Now I have a process I need to read and write to, but I don't know how
to export variables to it - clues?
A process that gets launched either via shell or open process will
inherit the environment variables set by the engine... So I think doing:
put "Hello!" into $somevar
put shell("./test.sh")
or
open process ... for ...
Should both have the effect that the launched process will see 'somevar'
as specified.
Warmest Regards,
Mark.
--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode