In Progress from putty, wich command run to detect if I am running JAILED shell or NORMAL shell ?

000

Well-Known Member
Jun 3, 2008
310
13
68
Hi.

Some idea about wich command run to detect if I am running JAILED shell or NORMAL shell ?

Thanks

PD:
with JAILED is possible continue running app.js (NODE) AFTER of close console?, how?
 

cPanelChristine

Technical Analyst
Staff member
Aug 10, 2018
57
11
83
Houston, TX
cPanel Access Level
Root Administrator
Greetings.

From your SSH session you could use the following command to display your current shell:

Code:
echo $0
As for NodeJS, it would be possible to run a NodeJS application though we must note that both cPanel and CloudLinux have application managers that will handle this for you. More information on this can be found here and here.
 

000

Well-Known Member
Jun 3, 2008
310
13
68

000

Well-Known Member
Jun 3, 2008
310
13
68
thanks, is possible run some command from SHELL to continue running the APP NODE AFTER of close console/session?
using NORMAL shell is possible with
Code:
node path_to_APP.js &
(the trick here is the & simbol in the end)

but how is possible with JAILSHELL?
 

cPanelChristine

Technical Analyst
Staff member
Aug 10, 2018
57
11
83
Houston, TX
cPanel Access Level
Root Administrator
Greetings.

Jailshell does allow for backgrounding processes, we were able to do so in testing. If you find that you are unable to do so then there may be more to the environment that you are on than we are able to account for. It may be best to open a support ticket such that our analysts can take a look into what is preventing you from backgrounding the process through Jailshell. If you wish to open a support ticket, please use the link in our signatures to do so.

Thank you.
 

cPanelChristine

Technical Analyst
Staff member
Aug 10, 2018
57
11
83
Houston, TX
cPanel Access Level
Root Administrator
Greetings.

There would have been no need to test an application; We're simply attempting to review whether or not Jailshell would allow for running applications in the background. For the most part we were able to send processes to the background without them being terminated, which is why we wanted to know what issues you were running into in detail. Are you not able to open a support ticket regarding the issue? It would be a bit more reasonable to assess what is preventing you from doing so from the environment itself.
 

000

Well-Known Member
Jun 3, 2008
310
13
68
It would be a bit more reasonable to assess what is preventing you from doing so from the environment itself.
Thanks.

USER ABC login with JAILSHELL then ANY command dead when close PUTTY.

This result is with ANY of this lines:
Code:
nohup node /home/USER/APP.js  &
forever node /home/USER/APP.js
forever start node /home/USER/APP.js
nohup forever node /home/USER/APP.js  &
etc ...
anithing combination continue running AFTER of close PUTTY.

ONLY when SHELL is BASH then samplelly with:
Code:
node /home/USER/APP.js &
the app continue live even if we go to sleep one week and TURN OFF our local computer. . .