0

i have an node-app index.js at /home/pi/apps/index.js

my bash script: script.sh:

#!/usr/bin/env node
node /home/pi/apps/index.js

I want to use this bash script to run it as cron job but it already crashes when executing ./script.sh

ReferenceError: node is not defined

Thanks in advance

lightyears99
  • 101
  • 7

0 Answers0