Skip to main content

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

Comments

7 comments

  • WasChristine
    Greetings. From your SSH session you could use the following command to display your current shell: 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.
    0
  • 000
    echo $0

    Excellent!, [user@cocacola ~]$ echo $0 -bash [user@cocacola ~]$
    vs [user@pepsicola ~]$ echo $0 -jailshell [user@pepsicola ~]$
    both cPanel and CloudLinux have application managers that will handle this for you

    thanks, is possible run some command from SHELL to continue running the APP NODE AFTER of close console/session?
    0
  • 000
    thanks, is possible run some command from SHELL to continue running the APP NODE AFTER of close console/session?

    using NORMAL shell is possible withnode path_to_APP.js &
    (the trick here is the & simbol in the end) but how is possible with JAILSHELL?
    0
  • WasChristine
    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.
    0
  • 000
    Greetings. Jailshell does allow for backgrounding processes, we were able to do so in testing.

    Thanks, in yours tests the command FROM PUTTY is the same? ( node path_to_APP.js & ) ???
    0
  • WasChristine
    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.
    0
  • 000
    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: 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:node /home/USER/APP.js &
    the app continue live even if we go to sleep one week and TURN OFF our local computer. . .
    0

Please sign in to leave a comment.