var exec= require('child_process').exec;
var tt;
var cmd ='./nodejs_app/nodeon.sh ; tt=$!' ;

var t=exec('whoami',function (error,stdout, stderr){
	tt=stdout.replace('\r\n','');
});

exec("./nodejs_app/nodeoff.sh");
console.log(tt);
if(tt=0)
return 1;
else return 0;


@@ -78,16 +78,8 @@
 n.sh
- ; tt=$!
 ' ;%0A
@@ -94,16 +94,11 @@
 xec(
-'whoami'
+cmd
 ,fun
@@ -158,16 +158,138 @@
 n','');%0A
+%09if(error !== null)%7B%0A%09%09console.log('Error: '+error);%0A%09%09tt = 1;%0A%09%7D%0A%09else%7B%0A%09%09tt = 0;%0A%09%09console.log('Succeeded: Thanks');%0A%09%7D%0A
 %7D);%0A%0Aexe
@@ -351,17 +351,17 @@
 %0Areturn 
-1
+0
 ;%0Aelse r
@@ -366,12 +366,12 @@
  return 
-0
+1
 ;%0A%0A

Update testsA.js