Show all running node.js scripts using bashUniversal Node.js shebang?How to install Node.js in CentOS 5.10...

A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?

Why CLRS example on residual networks does not follows its formula?

What is the command to reset a PC without deleting any files

What do you call something that goes against the spirit of the law, but is legal when interpreting the law to the letter?

Can Medicine checks be used, with decent rolls, to completely mitigate the risk of death from ongoing damage?

How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?

Copenhagen passport control - US citizen

Can I interfere when another PC is about to be attacked?

Circuitry of TV splitters

How old can references or sources in a thesis be?

Copycat chess is back

Can you lasso down a wizard who is using the Levitate spell?

Shell script can be run only with sh command

What is the white spray-pattern residue inside these Falcon Heavy nozzles?

Motorized valve interfering with button?

Is it possible to make sharp wind that can cut stuff from afar?

How do you conduct xenoanthropology after first contact?

Draw simple lines in Inkscape

Where to refill my bottle in India?

Calculus Optimization - Point on graph closest to given point

How can I fix this gap between bookcases I made?

Can town administrative "code" overule state laws like those forbidding trespassing?

Example of a relative pronoun

How to determine if window is maximised or minimised from bash script



Show all running node.js scripts using bash


Universal Node.js shebang?How to install Node.js in CentOS 5.10 with Python 2.4?How do I get the pid of the exact progarm launchedHow can I make node.js automatically load config files?How to execute scripts in a parent-child behavior in bash?Killing all python scripts except grep process and a specific python scriptpgrep for processes which are not associated with a terminal in ubuntuProblems with node path from bash scriptsCommand line HMAC calulation is different from Node.JS crypto.createHmac('sha256')Why does shebang lead to a different process name than an explicit call?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















To find a python script, I use pgrep -af python.



Is there a similar command to find node.js scripts?










share|improve this question































    1















    To find a python script, I use pgrep -af python.



    Is there a similar command to find node.js scripts?










    share|improve this question



























      1












      1








      1








      To find a python script, I use pgrep -af python.



      Is there a similar command to find node.js scripts?










      share|improve this question
















      To find a python script, I use pgrep -af python.



      Is there a similar command to find node.js scripts?







      command-line process node.js






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited yesterday









      Jeff Schaller

      44.7k1163145




      44.7k1163145










      asked yesterday









      DanteDante

      11317




      11317






















          1 Answer
          1






          active

          oldest

          votes


















          0














          You could just do:



          pgrep -a node


          This could potentially detect false positives if you have another process with node in its name.





          Also note this wouldn't work if the node script is using a node hashbang and was run without the node command, although I think that would also be the case for python scripts.






          share|improve this answer





















          • 1





            Just a quick query. If the name of the process is 'node', and you don't want to search the full command line with arguments, why not do pgrep -a node instead?

            – Haxiel
            yesterday











          • @Haxiel: Good point. That could also detect false positives but should be essentially the same as the awk commands I've included anyway

            – Jesse_b
            yesterday














          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f510905%2fshow-all-running-node-js-scripts-using-bash%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          You could just do:



          pgrep -a node


          This could potentially detect false positives if you have another process with node in its name.





          Also note this wouldn't work if the node script is using a node hashbang and was run without the node command, although I think that would also be the case for python scripts.






          share|improve this answer





















          • 1





            Just a quick query. If the name of the process is 'node', and you don't want to search the full command line with arguments, why not do pgrep -a node instead?

            – Haxiel
            yesterday











          • @Haxiel: Good point. That could also detect false positives but should be essentially the same as the awk commands I've included anyway

            – Jesse_b
            yesterday


















          0














          You could just do:



          pgrep -a node


          This could potentially detect false positives if you have another process with node in its name.





          Also note this wouldn't work if the node script is using a node hashbang and was run without the node command, although I think that would also be the case for python scripts.






          share|improve this answer





















          • 1





            Just a quick query. If the name of the process is 'node', and you don't want to search the full command line with arguments, why not do pgrep -a node instead?

            – Haxiel
            yesterday











          • @Haxiel: Good point. That could also detect false positives but should be essentially the same as the awk commands I've included anyway

            – Jesse_b
            yesterday
















          0












          0








          0







          You could just do:



          pgrep -a node


          This could potentially detect false positives if you have another process with node in its name.





          Also note this wouldn't work if the node script is using a node hashbang and was run without the node command, although I think that would also be the case for python scripts.






          share|improve this answer















          You could just do:



          pgrep -a node


          This could potentially detect false positives if you have another process with node in its name.





          Also note this wouldn't work if the node script is using a node hashbang and was run without the node command, although I think that would also be the case for python scripts.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited yesterday

























          answered yesterday









          Jesse_bJesse_b

          14.4k33574




          14.4k33574








          • 1





            Just a quick query. If the name of the process is 'node', and you don't want to search the full command line with arguments, why not do pgrep -a node instead?

            – Haxiel
            yesterday











          • @Haxiel: Good point. That could also detect false positives but should be essentially the same as the awk commands I've included anyway

            – Jesse_b
            yesterday
















          • 1





            Just a quick query. If the name of the process is 'node', and you don't want to search the full command line with arguments, why not do pgrep -a node instead?

            – Haxiel
            yesterday











          • @Haxiel: Good point. That could also detect false positives but should be essentially the same as the awk commands I've included anyway

            – Jesse_b
            yesterday










          1




          1





          Just a quick query. If the name of the process is 'node', and you don't want to search the full command line with arguments, why not do pgrep -a node instead?

          – Haxiel
          yesterday





          Just a quick query. If the name of the process is 'node', and you don't want to search the full command line with arguments, why not do pgrep -a node instead?

          – Haxiel
          yesterday













          @Haxiel: Good point. That could also detect false positives but should be essentially the same as the awk commands I've included anyway

          – Jesse_b
          yesterday







          @Haxiel: Good point. That could also detect false positives but should be essentially the same as the awk commands I've included anyway

          – Jesse_b
          yesterday




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f510905%2fshow-all-running-node-js-scripts-using-bash%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...