Running Node (or any unix cmd line program) from Shell from a LC Stack

David Bovill david at viral.academy
Mon May 9 21:56:17 EDT 2016


But on El Capitan you don't have a .bash_profile or .profile by default I
think? And put shell ("echo $PATH") does not fetch the users shell? Any
suggestions?

On 10 May 2016 at 02:02, Mike Bonner <bonnmike at gmail.com> wrote:

> Ah, I see. And thank you!  I now have a plugin that does a shell (source
> blah blah echo $PATH) so that I always have my full terminal path available
> to lc shell.  No extra/custom paths added yet, but it'll be nice to always
> have the full path so I don't have to mess with absolute pathing (or
> building the path in the shell every time)
>
> Thanks for sharing!
>
> On Mon, May 9, 2016 at 5:36 PM, [-hh] <hh at hh.on-rev.com> wrote:
>
> > Mike B. worte:
> > > Try this:
> > > set the shellcommand to "/bin/bash"
> > > get shell("source ~/.bash_profile ; <yourcommands here> ")
> >
> > You are right, of course. For one's own machine this is the
> > simplest. One could even vice versa write a full (temporary)
> > shell-profile before using shell.
> > But if you wish to know if a user has installed a 'default'
> > binary you wish to use at the 'default' place or elsewhere,
> > then this could fail.
> > I am for example nearly always working as root (that's the
> > only way to avoid silly errors) but never would allow others
> > to use my root shell.
> >
> > > Is there any way to get lc to process .bash_profile by default?
> >
> > Why not set $PATH or $PATH-additions in the preferences?
> >
> >
> >
> > --
> > View this message in context:
> >
> http://runtime-revolution.278305.n4.nabble.com/Running-Node-or-any-unix-cmd-line-program-from-Shell-from-a-LC-Stack-tp4704464p4704490.html
> > Sent from the Revolution - User mailing list archive at Nabble.com.
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list