Skip to main content
1 of 2
user avatar
user avatar

That is because the backgrounded process runs in a subshell. To do what you want you could do this:

bash -c 'node process.js 1>$LOGFOLDER.$$.log' &
user218374