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

Sannyasin Brahmanathaswami brahma at hindu.org
Sun May 8 22:20:32 CEST 2016


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




More information about the use-livecode mailing list