linux - xcode build script on Mac OS X not working because env node not found / login not working, too -
i'm using crontab this
* * * * * path=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin cd /users/kaiserpatrick/documents/web-app && ./build.sh > /dev/null 2>&1 i tried things echo "1" | login kaiserpatrick or login -f command or without path variable.
but nothing works.
each time i've got error.
env: node: no such file or directory i tried change script header thing ones. - not working.
#!/bin/bash #!/usr/bin/env sh #!/usr/bin/node i dont know why apple cant use simple bashrc file or profile file ...
but none of them exists in ~. no profile, no bashrc no ......
the file /etc/bashrc. if append . /etc/bashrc on crontab doesn't work, too.
really bad morning :(
use echo $path in normal logged in shell.
then prepend path= result above cronjob/crontab , on line end ;. after ; can add script or command.
then work's!
Comments
Post a Comment