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;
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
add a comment
|
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
add a comment
|
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
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
python lxterminal supervisor
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
add a comment
|
add a comment
|
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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