#!/bin/bash

BASEDIR=$(dirname $0)
MINUTES=$[($RANDOM%25)]
echo "Now will execute script after $MINUTES minutes."
sleep $MINUTES
node $BASEDIR/ncu_sign.js $1 $2 $3 $4 

#!/bin/bash

MINUTES=$[($RANDOM%25)]
echo "Now will execute script after $MINUTES minutes."
sleep $MINUTES
node ncu_sign.js $1 $2 $3 $4 

--- 
+++ 
@@ -1,6 +1,7 @@
 #!/bin/bash
 
+BASEDIR=$(dirname $0)
 MINUTES=$[($RANDOM%25)]
 echo "Now will execute script after $MINUTES minutes."
 sleep $MINUTES
-node ncu_sign.js $1 $2 $3 $4 
+node $BASEDIR/ncu_sign.js $1 $2 $3 $4 
Fix basedir path problem when execute nodejs command.
