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

Mike Bonner bonnmike at gmail.com
Tue May 10 04:39:47 CEST 2016


I've been avoiding el capitan so far, but on my system, /etc/paths contains
the bare minimum paths.  /etc/profile adds /opt/local/bin and
/opt/local/sbin, then ~/.bash_profile tacks on a few more (like the path to
mysql and inferno, plus some adjustments made by macports (which appear to
be duplicates of the /opt paths)

Also just discovered "path_helper" which looks for files in /etc/paths.d
and adds paths from any files in there.  (there's one for X11 (Quartz)
another for git, and com.apple.server for the mac server app on my system.)

Nothin like spreading things around a bit..path_helper fires off from
/etc/profile

On Mon, May 9, 2016 at 7:56 PM, David Bovill <david at viral.academy> wrote:

> 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
> >
> _______________________________________________
> 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