How to check fork() hierachy in other terminal?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












A have a simple fork.c program and I would like to check the fork hierachy by using ps f -e command.



I do as following:



  1. gcc fork.c


  2. ./a.out &


  3. open another terminal and type ps f -e


In step 3, I couldn't find the process ./a.out running anywhere. I tried to do ps -a and there is also no luck. Furthermore, when I tried to run a process background in one terminal, I could only find that process by using jobs in that same terminal. If I use jobs in other terminal while the process is still running, I still cannot see the process.



The problem is I did exactly the same steps in my university's lab and everything worked fine. Now I am trying to review for the exam by using my personal laptop and this happens. Could anyone identify the problem and how to fix it?



Thank you.







share|improve this question























    up vote
    0
    down vote

    favorite












    A have a simple fork.c program and I would like to check the fork hierachy by using ps f -e command.



    I do as following:



    1. gcc fork.c


    2. ./a.out &


    3. open another terminal and type ps f -e


    In step 3, I couldn't find the process ./a.out running anywhere. I tried to do ps -a and there is also no luck. Furthermore, when I tried to run a process background in one terminal, I could only find that process by using jobs in that same terminal. If I use jobs in other terminal while the process is still running, I still cannot see the process.



    The problem is I did exactly the same steps in my university's lab and everything worked fine. Now I am trying to review for the exam by using my personal laptop and this happens. Could anyone identify the problem and how to fix it?



    Thank you.







    share|improve this question





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      A have a simple fork.c program and I would like to check the fork hierachy by using ps f -e command.



      I do as following:



      1. gcc fork.c


      2. ./a.out &


      3. open another terminal and type ps f -e


      In step 3, I couldn't find the process ./a.out running anywhere. I tried to do ps -a and there is also no luck. Furthermore, when I tried to run a process background in one terminal, I could only find that process by using jobs in that same terminal. If I use jobs in other terminal while the process is still running, I still cannot see the process.



      The problem is I did exactly the same steps in my university's lab and everything worked fine. Now I am trying to review for the exam by using my personal laptop and this happens. Could anyone identify the problem and how to fix it?



      Thank you.







      share|improve this question











      A have a simple fork.c program and I would like to check the fork hierachy by using ps f -e command.



      I do as following:



      1. gcc fork.c


      2. ./a.out &


      3. open another terminal and type ps f -e


      In step 3, I couldn't find the process ./a.out running anywhere. I tried to do ps -a and there is also no luck. Furthermore, when I tried to run a process background in one terminal, I could only find that process by using jobs in that same terminal. If I use jobs in other terminal while the process is still running, I still cannot see the process.



      The problem is I did exactly the same steps in my university's lab and everything worked fine. Now I am trying to review for the exam by using my personal laptop and this happens. Could anyone identify the problem and how to fix it?



      Thank you.









      share|improve this question










      share|improve this question




      share|improve this question









      asked Jun 12 at 3:18









      Username00097

      11




      11

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1045783%2fhow-to-check-fork-hierachy-in-other-terminal%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1045783%2fhow-to-check-fork-hierachy-in-other-terminal%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

          Trouble downloading packages list due to a “Hash sum mismatch” error

          How do I move numbers in filenames, in a batch renaming operation?