#!/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,7 +1,6 @@
 #!/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 
+node ncu_sign.js $1 $2 $3 $4 
Fix basedir path problem when execute nodejs command.
