Launch a python script in a lxterminal window using supervisordAccessing googlecl using python scriptHow to launch DropBox using its python script normally?How to execute a python file from LXTerminal?lxterminal prompt unwanted characterscontrol volume using python scriptUsing Tab in an LXTerminal keyboard shortcut?Python script using webdriver (selenium) hanging foreverLXTerminal doesn't open in LubuntuHow to restore menu in LXTerminal?

What does it mean? I don't understand what >&2 mean... Please, help!

Why past tense of vomit is not 'vomitted' but 'vomited' even though it should follow the double consonants rule?

Why are so many cities in the list of 50 most violent cities in the world located in South and Central America?

I am having some trouble understanding the beginning of a story

Is it bizarre that a professor asks every student for a 3 inch by 5 inch photograph?

Iterator for traversing a tree [v2]

How can I list all flight numbers that connect two countries (non-stop)?

Continents with simplex noise

Starting a fire in a cold planet that has full of flammable gas

Tikz: Impulse response vs. pole location

How do Precipitation Reactions behave in the Absence of Gravity?

Hypothesis testing- with normal approximation

My bike's adjustable stem keeps falling down

What are the Advantages of having a Double-pane Space Helmet?

Will there be a vote in the Commons to decide the fate of Johnson's deal?

Why does Expected<T> in LLVM implement two constructors for Expected<T>&&?

Surjection from one string to two strings

Create a program that prints the amount of characters it has, in words

Meaning of "in arms"

How could a sequence of random dates be generated, given year interval?

18 month old kicked out of church nursery

Justification for excluding gravitational energy from the stress-energy tensor

What is more proper notation in piano sheet music to denote that the left hand should be louder?

How did the T-850 still function after it removed its second battery?



Launch a python script in a lxterminal window using supervisord


Accessing googlecl using python scriptHow to launch DropBox using its python script normally?How to execute a python file from LXTerminal?lxterminal prompt unwanted characterscontrol volume using python scriptUsing Tab in an LXTerminal keyboard shortcut?Python script using webdriver (selenium) hanging foreverLXTerminal doesn't open in LubuntuHow to restore menu in LXTerminal?






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









0

















I'm trying to launch a python script in a lxterminal window using supervisord. I'm stuck on using supervisord than a .desktop file. I'd like to keep the process running on loop
Below is my config:



[program:video_serve]
user=pi
environment=PYTHONPATH=/home/pi/.local/lib/python3.5/site-packages/
command=/home/pi/jack-harper/video-server.sh
directory=/home/pi/jack-harper/
autostart=true
autorestart=true
startsecs=5
log_stdout=true ; if true, log program stdout (default true)
log_stderr=true ; if true, log program stderr (default false)
stderr_logfile=/home/pi/jack-harper/video.err
logfile=/home/pi/jack-harper/video.log


[supervisord]
; When resorting to send SIGKILL to the program to terminate it
; send SIGKILL to its whole process group instead,
; taking care of its children as well.
killasgroup=true
nodaemon=true
logfile_maxbytes=2MB
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=0



I get the following error in my log file, which means the script ran and the config is okay ? But I still don't see a lxterminal window running the script:



(lxterminal:3223): Gtk-WARNING **: cannot open display:


  • I have tried running this from Desktop GUI directly after failing to do so via ssh

  • These also did not work: export DISPLAY=:0.0









share|improve this question


































    0

















    I'm trying to launch a python script in a lxterminal window using supervisord. I'm stuck on using supervisord than a .desktop file. I'd like to keep the process running on loop
    Below is my config:



    [program:video_serve]
    user=pi
    environment=PYTHONPATH=/home/pi/.local/lib/python3.5/site-packages/
    command=/home/pi/jack-harper/video-server.sh
    directory=/home/pi/jack-harper/
    autostart=true
    autorestart=true
    startsecs=5
    log_stdout=true ; if true, log program stdout (default true)
    log_stderr=true ; if true, log program stderr (default false)
    stderr_logfile=/home/pi/jack-harper/video.err
    logfile=/home/pi/jack-harper/video.log


    [supervisord]
    ; When resorting to send SIGKILL to the program to terminate it
    ; send SIGKILL to its whole process group instead,
    ; taking care of its children as well.
    killasgroup=true
    nodaemon=true
    logfile_maxbytes=2MB
    stdout_logfile_maxbytes=1MB
    stdout_logfile_backups=0



    I get the following error in my log file, which means the script ran and the config is okay ? But I still don't see a lxterminal window running the script:



    (lxterminal:3223): Gtk-WARNING **: cannot open display:


    • I have tried running this from Desktop GUI directly after failing to do so via ssh

    • These also did not work: export DISPLAY=:0.0









    share|improve this question






























      0












      0








      0








      I'm trying to launch a python script in a lxterminal window using supervisord. I'm stuck on using supervisord than a .desktop file. I'd like to keep the process running on loop
      Below is my config:



      [program:video_serve]
      user=pi
      environment=PYTHONPATH=/home/pi/.local/lib/python3.5/site-packages/
      command=/home/pi/jack-harper/video-server.sh
      directory=/home/pi/jack-harper/
      autostart=true
      autorestart=true
      startsecs=5
      log_stdout=true ; if true, log program stdout (default true)
      log_stderr=true ; if true, log program stderr (default false)
      stderr_logfile=/home/pi/jack-harper/video.err
      logfile=/home/pi/jack-harper/video.log


      [supervisord]
      ; When resorting to send SIGKILL to the program to terminate it
      ; send SIGKILL to its whole process group instead,
      ; taking care of its children as well.
      killasgroup=true
      nodaemon=true
      logfile_maxbytes=2MB
      stdout_logfile_maxbytes=1MB
      stdout_logfile_backups=0



      I get the following error in my log file, which means the script ran and the config is okay ? But I still don't see a lxterminal window running the script:



      (lxterminal:3223): Gtk-WARNING **: cannot open display:


      • I have tried running this from Desktop GUI directly after failing to do so via ssh

      • These also did not work: export DISPLAY=:0.0









      share|improve this question

















      I'm trying to launch a python script in a lxterminal window using supervisord. I'm stuck on using supervisord than a .desktop file. I'd like to keep the process running on loop
      Below is my config:



      [program:video_serve]
      user=pi
      environment=PYTHONPATH=/home/pi/.local/lib/python3.5/site-packages/
      command=/home/pi/jack-harper/video-server.sh
      directory=/home/pi/jack-harper/
      autostart=true
      autorestart=true
      startsecs=5
      log_stdout=true ; if true, log program stdout (default true)
      log_stderr=true ; if true, log program stderr (default false)
      stderr_logfile=/home/pi/jack-harper/video.err
      logfile=/home/pi/jack-harper/video.log


      [supervisord]
      ; When resorting to send SIGKILL to the program to terminate it
      ; send SIGKILL to its whole process group instead,
      ; taking care of its children as well.
      killasgroup=true
      nodaemon=true
      logfile_maxbytes=2MB
      stdout_logfile_maxbytes=1MB
      stdout_logfile_backups=0



      I get the following error in my log file, which means the script ran and the config is okay ? But I still don't see a lxterminal window running the script:



      (lxterminal:3223): Gtk-WARNING **: cannot open display:


      • I have tried running this from Desktop GUI directly after failing to do so via ssh

      • These also did not work: export DISPLAY=:0.0






      python lxterminal supervisor






      share|improve this question
















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 2 at 19:21









      Xweque

      9661 gold badge7 silver badges27 bronze badges




      9661 gold badge7 silver badges27 bronze badges










      asked Jun 2 at 12:10









      fixxxerfixxxer

      1014 bronze badges




      1014 bronze badges























          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/4.0/"u003ecc by-sa 4.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%2f1148059%2flaunch-a-python-script-in-a-lxterminal-window-using-supervisord%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%2f1148059%2flaunch-a-python-script-in-a-lxterminal-window-using-supervisord%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

          Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

          How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region

          Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?