Starting and stopping a program from a shell scriptSimple shell scriptHow to record user input to a file in a...

Are all players supposed to be able to see each others' character sheets?

Are these two graphs isomorphic? Why/Why not?

Do Paladin Auras of Differing Oaths Stack?

How to educate team mate to take screenshots for bugs with out unwanted stuff

Use Mercury as quenching liquid for swords?

How to install round brake pads

What is better: yes / no radio, or simple checkbox?

Is there a way to make cleveref distinguish two environments with the same counter?

How should I solve this integral with changing parameters?

Yet another question on sums of the reciprocals of the primes

What is the purpose of a disclaimer like "this is not legal advice"?

Either of .... (Plural/Singular)

Movie: boy escapes the real world and goes to a fantasy world with big furry trolls

Writing text next to a table

Is there a logarithm base for which the logarithm becomes an identity function?

Why aren't there more Gauls like Obelix?

What happened to the colonial estates belonging to loyalists after the American Revolution?

Insult for someone who "doesn't know anything"

Sampling from Gaussian mixture models, when are the sampled data independent?

Cycles on the torus

Finding the minimum value of a function without using Calculus

Volume of hyperbola revolved about the y -axis

I am the person who abides by rules, but breaks the rules. Who am I?

Did Amazon pay $0 in taxes last year?



Starting and stopping a program from a shell script


Simple shell scriptHow to record user input to a file in a shell script?Problem starting Gnome-Shell after loginWhat am I doing wrong with the shell script? NoobHow to execute a script from trusted shellHow to automatically answer interactive cli program (not script) with bash script?Scripting a script that tests a shellHow to stop file-roller from outputting anything and hanging on the processwget in shell script using a patternReading lines from a file and storing their content to pass to a C program in a shell script













0















This is probably a simple question but I haven't found the answer anywhere.



I want to start a program from a shell script, and then close it from the shell script a little later.



Once the program loads, the script hangs because the focus is now on the opened program.



How do I return the focus to the script?









share



























    0















    This is probably a simple question but I haven't found the answer anywhere.



    I want to start a program from a shell script, and then close it from the shell script a little later.



    Once the program loads, the script hangs because the focus is now on the opened program.



    How do I return the focus to the script?









    share

























      0












      0








      0








      This is probably a simple question but I haven't found the answer anywhere.



      I want to start a program from a shell script, and then close it from the shell script a little later.



      Once the program loads, the script hangs because the focus is now on the opened program.



      How do I return the focus to the script?









      share














      This is probably a simple question but I haven't found the answer anywhere.



      I want to start a program from a shell script, and then close it from the shell script a little later.



      Once the program loads, the script hangs because the focus is now on the opened program.



      How do I return the focus to the script?







      command-line gnome scripts





      share












      share










      share



      share










      asked 8 mins ago









      ubuntu_is_coolubuntu_is_cool

      164




      164






















          0






          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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%2faskubuntu.com%2fquestions%2f1124424%2fstarting-and-stopping-a-program-from-a-shell-script%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • 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%2faskubuntu.com%2fquestions%2f1124424%2fstarting-and-stopping-a-program-from-a-shell-script%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

          List of shipwrecks in 1808...

          Is there a lightweight tool to crop images quickly?Cropping Images using Command Line Tools OnlyHow to crop...

          Unit packagekit.service is masked Announcing the arrival of Valued Associate #679: Cesar...