Getting out of while loop on console Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) 2019 Community Moderator Election Results Why I closed the “Why is Kali so hard” questionHow to write the output of live-f1 into a fileShell console clearingComputer terminal and virtual consoleBash while loop and reading from pipeEndless data loop from dev/ttyUSB while sending AT commandsHow to change keyboard speed in the Linux console?How to open process again?How to find PID of a while loop?Getting console width using a bash scriptexit terminal window

RSA find public exponent

Why does electrolysis of aqueous concentrated sodium bromide produce bromine at the anode?

What is the "studentd" process?

A proverb that is used to imply that you have unexpectedly faced a big problem

Is CEO the "profession" with the most psychopaths?

How to force a browser when connecting to a specific domain to be https only using only the client machine?

Monty Hall Problem-Probability Paradox

Connecting Mac Book Pro 2017 to 2 Projectors via USB C

Tips to organize LaTeX presentations for a semester

Universal covering space of the real projective line?

Why do early math courses focus on the cross sections of a cone and not on other 3D objects?

Does silver oxide react with hydrogen sulfide?

Does the Black Tentacles spell do damage twice at the start of turn to an already restrained creature?

One-one communication

What to do with repeated rejections for phd position

Random body shuffle every night—can we still function?

Can two person see the same photon?

Tannaka duality for semisimple groups

Positioning dot before text in math mode

Did any compiler fully use 80-bit floating point?

How do living politicians protect their readily obtainable signatures from misuse?

Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?

Why is std::move not [[nodiscard]] in C++20?

What would you call this weird metallic apparatus that allows you to lift people?



Getting out of while loop on console



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionHow to write the output of live-f1 into a fileShell console clearingComputer terminal and virtual consoleBash while loop and reading from pipeEndless data loop from dev/ttyUSB while sending AT commandsHow to change keyboard speed in the Linux console?How to open process again?How to find PID of a while loop?Getting console width using a bash scriptexit terminal window



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








1















I ran a command:



while true ; do ..... ....... ; done


on the Linux console/terminal, and now this while loop is continuously running.



I have two questions here:



  1. How to get out of this while loop?

  2. If my PuTTY session to Linux gets disconnected, how can I go back and find this loop and kill it?









share|improve this question









New contributor




VikasB is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


























    1















    I ran a command:



    while true ; do ..... ....... ; done


    on the Linux console/terminal, and now this while loop is continuously running.



    I have two questions here:



    1. How to get out of this while loop?

    2. If my PuTTY session to Linux gets disconnected, how can I go back and find this loop and kill it?









    share|improve this question









    New contributor




    VikasB is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      1












      1








      1








      I ran a command:



      while true ; do ..... ....... ; done


      on the Linux console/terminal, and now this while loop is continuously running.



      I have two questions here:



      1. How to get out of this while loop?

      2. If my PuTTY session to Linux gets disconnected, how can I go back and find this loop and kill it?









      share|improve this question









      New contributor




      VikasB is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I ran a command:



      while true ; do ..... ....... ; done


      on the Linux console/terminal, and now this while loop is continuously running.



      I have two questions here:



      1. How to get out of this while loop?

      2. If my PuTTY session to Linux gets disconnected, how can I go back and find this loop and kill it?






      shell command-line terminal






      share|improve this question









      New contributor




      VikasB is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      VikasB is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 2 hours ago









      G-Man

      13.8k93870




      13.8k93870






      New contributor




      VikasB is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 hours ago









      VikasBVikasB

      61




      61




      New contributor




      VikasB is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      VikasB is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      VikasB is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes


















          2














          You can cancel the loop with: CTRL + C



          Your session would have ended when your putty session closed so the loop will no longer be running



          • unless it was running in a screen session or similar in which case you would have to reattach it using the method of that particular program.





          share|improve this answer

























            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
            );



            );






            VikasB is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f513588%2fgetting-out-of-while-loop-on-console%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









            2














            You can cancel the loop with: CTRL + C



            Your session would have ended when your putty session closed so the loop will no longer be running



            • unless it was running in a screen session or similar in which case you would have to reattach it using the method of that particular program.





            share|improve this answer





























              2














              You can cancel the loop with: CTRL + C



              Your session would have ended when your putty session closed so the loop will no longer be running



              • unless it was running in a screen session or similar in which case you would have to reattach it using the method of that particular program.





              share|improve this answer



























                2












                2








                2







                You can cancel the loop with: CTRL + C



                Your session would have ended when your putty session closed so the loop will no longer be running



                • unless it was running in a screen session or similar in which case you would have to reattach it using the method of that particular program.





                share|improve this answer















                You can cancel the loop with: CTRL + C



                Your session would have ended when your putty session closed so the loop will no longer be running



                • unless it was running in a screen session or similar in which case you would have to reattach it using the method of that particular program.






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 2 hours ago









                terdon

                134k33270450




                134k33270450










                answered 2 hours ago









                Jesse_bJesse_b

                14.4k33574




                14.4k33574




















                    VikasB is a new contributor. Be nice, and check out our Code of Conduct.









                    draft saved

                    draft discarded


















                    VikasB is a new contributor. Be nice, and check out our Code of Conduct.












                    VikasB is a new contributor. Be nice, and check out our Code of Conduct.











                    VikasB is a new contributor. Be nice, and check out our Code of Conduct.














                    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%2f513588%2fgetting-out-of-while-loop-on-console%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

                    Францішак Багушэвіч Змест Сям'я | Біяграфія | Творчасць | Мова Багушэвіча | Ацэнкі дзейнасці | Цікавыя факты | Спадчына | Выбраная бібліяграфія | Ушанаванне памяці | У філатэліі | Зноскі | Літаратура | Спасылкі | НавігацыяЛяхоўскі У. Рупіўся дзеля Бога і людзей: Жыццёвы шлях Лявона Вітан-Дубейкаўскага // Вольскі і Памідораў з песняй пра немца Адвакат, паэт, народны заступнік Ашмянскі веснікВ Минске появится площадь Богушевича и улица Сырокомли, Белорусская деловая газета, 19 июля 2001 г.Айцец беларускай нацыянальнай ідэі паўстаў у бронзе Сяргей Аляксандравіч Адашкевіч (1918, Мінск). 80-я гады. Бюст «Францішак Багушэвіч».Яўген Мікалаевіч Ціхановіч. «Партрэт Францішка Багушэвіча»Мікола Мікалаевіч Купава. «Партрэт зачынальніка новай беларускай літаратуры Францішка Багушэвіча»Уладзімір Іванавіч Мелехаў. На помніку «Змагарам за родную мову» Барэльеф «Францішак Багушэвіч»Памяць пра Багушэвіча на Віленшчыне Страчаная сталіца. Беларускія шыльды на вуліцах Вільні«Krynica». Ideologia i przywódcy białoruskiego katolicyzmuФранцішак БагушэвічТворы на knihi.comТворы Францішка Багушэвіча на bellib.byСодаль Уладзімір. Францішак Багушэвіч на Лідчыне;Луцкевіч Антон. Жыцьцё і творчасьць Фр. Багушэвіча ў успамінах ягоных сучасьнікаў // Запісы Беларускага Навуковага таварыства. Вільня, 1938. Сшытак 1. С. 16-34.Большая российская1188761710000 0000 5537 633Xn9209310021619551927869394п

                    Partai Komunis Tiongkok Daftar isi Kepemimpinan | Pranala luar | Referensi | Menu navigasidiperiksa1 perubahan tertundacpc.people.com.cnSitus resmiSurat kabar resmi"Why the Communist Party is alive, well and flourishing in China"0307-1235"Full text of Constitution of Communist Party of China"smengembangkannyas

                    ValueError: Expected n_neighbors <= n_samples, but n_samples = 1, n_neighbors = 6 (SMOTE) The 2019 Stack Overflow Developer Survey Results Are InCan SMOTE be applied over sequence of words (sentences)?ValueError when doing validation with random forestsSMOTE and multi class oversamplingLogic behind SMOTE-NC?ValueError: Error when checking target: expected dense_1 to have shape (7,) but got array with shape (1,)SmoteBoost: Should SMOTE be ran individually for each iteration/tree in the boosting?solving multi-class imbalance classification using smote and OSSUsing SMOTE for Synthetic Data generation to improve performance on unbalanced dataproblem of entry format for a simple model in KerasSVM SMOTE fit_resample() function runs forever with no result