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

Jerry Jensen jerry at jhjensen.com
Sun May 8 16:46:30 EDT 2016


Which shell runs from the command line? Maybe not /bin/sh

> On May 8, 2016, at 1:20 PM, Sannyasin Brahmanathaswami <brahma at hindu.org> wrote:
> 
> 
> I have a stack with a field that contains a shell script:
> 
> cd /Users/Brahmanathaswami/Documents/media-books/_hap-epub-export-tool
> node index.js --epubFile ###epubPath### -e -i ###OutputDirectory###
> 
> I replace the strings with real values.
> 
> Second line looks like this:
> 
> node index.js --epubFile /Users/Brahmanathaswami/Documents/media-books/aging-gracefully_ei/aging-gracefully_ei.epub -e -i aging-gracefully_ei
> 
> This runs just fine from terminal, but when I pass it to tShell and run
> 
> Put shell(tShell) # I get this back.
> 
> /bin/sh: line 2: node: command not found
> 
> 
> What am I doing wrong?
> 
> Brahmanathaswami
> 
> 
> _______________________________________________
> 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