From guake, pass command to gnome-terminal to kill and respawn guake
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
Background
I have tried to provide an answer to Restart Guake inside Guake.
So far, I have achieved to:
create a
gnome-terminal
deamon, fromguake
:screen -dmS other_terminal gnome-terminal
kill and respawn
guake
as a daemon, fromgnome-terminal
:pkill -f guake; screen -dmS guake_respawn bash --login -c "guake; exec sh"; exit
It is basically what I want to achieve, except that it's a two step process: you need to first run commands in guake
, then in gnome-terminal
.
Problem
I have tried to create a one-liner, passing gnome-terminal
's commands as an argument:
screen -dmS other_terminal gnome-terminal -- bash --login -c 'pkill -f guake; screen -dmS guake_respawn bash --login -c "guake; exec sh"; exit'
However, it fails after guake
has been killed.
Question
➥ How to pass, from guake
, commands that kill and respawn it from `gnome-terminal?
Or, in other word, how to restart guake inside guake! My final objective is to have one command only to restart guake
.
scripting gnu-screen gnome-terminal guake
add a comment |
up vote
0
down vote
favorite
Background
I have tried to provide an answer to Restart Guake inside Guake.
So far, I have achieved to:
create a
gnome-terminal
deamon, fromguake
:screen -dmS other_terminal gnome-terminal
kill and respawn
guake
as a daemon, fromgnome-terminal
:pkill -f guake; screen -dmS guake_respawn bash --login -c "guake; exec sh"; exit
It is basically what I want to achieve, except that it's a two step process: you need to first run commands in guake
, then in gnome-terminal
.
Problem
I have tried to create a one-liner, passing gnome-terminal
's commands as an argument:
screen -dmS other_terminal gnome-terminal -- bash --login -c 'pkill -f guake; screen -dmS guake_respawn bash --login -c "guake; exec sh"; exit'
However, it fails after guake
has been killed.
Question
➥ How to pass, from guake
, commands that kill and respawn it from `gnome-terminal?
Or, in other word, how to restart guake inside guake! My final objective is to have one command only to restart guake
.
scripting gnu-screen gnome-terminal guake
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Background
I have tried to provide an answer to Restart Guake inside Guake.
So far, I have achieved to:
create a
gnome-terminal
deamon, fromguake
:screen -dmS other_terminal gnome-terminal
kill and respawn
guake
as a daemon, fromgnome-terminal
:pkill -f guake; screen -dmS guake_respawn bash --login -c "guake; exec sh"; exit
It is basically what I want to achieve, except that it's a two step process: you need to first run commands in guake
, then in gnome-terminal
.
Problem
I have tried to create a one-liner, passing gnome-terminal
's commands as an argument:
screen -dmS other_terminal gnome-terminal -- bash --login -c 'pkill -f guake; screen -dmS guake_respawn bash --login -c "guake; exec sh"; exit'
However, it fails after guake
has been killed.
Question
➥ How to pass, from guake
, commands that kill and respawn it from `gnome-terminal?
Or, in other word, how to restart guake inside guake! My final objective is to have one command only to restart guake
.
scripting gnu-screen gnome-terminal guake
Background
I have tried to provide an answer to Restart Guake inside Guake.
So far, I have achieved to:
create a
gnome-terminal
deamon, fromguake
:screen -dmS other_terminal gnome-terminal
kill and respawn
guake
as a daemon, fromgnome-terminal
:pkill -f guake; screen -dmS guake_respawn bash --login -c "guake; exec sh"; exit
It is basically what I want to achieve, except that it's a two step process: you need to first run commands in guake
, then in gnome-terminal
.
Problem
I have tried to create a one-liner, passing gnome-terminal
's commands as an argument:
screen -dmS other_terminal gnome-terminal -- bash --login -c 'pkill -f guake; screen -dmS guake_respawn bash --login -c "guake; exec sh"; exit'
However, it fails after guake
has been killed.
Question
➥ How to pass, from guake
, commands that kill and respawn it from `gnome-terminal?
Or, in other word, how to restart guake inside guake! My final objective is to have one command only to restart guake
.
scripting gnu-screen gnome-terminal guake
scripting gnu-screen gnome-terminal guake
edited Nov 22 at 11:56
Jeff Schaller
36.8k1052121
36.8k1052121
asked Nov 22 at 9:42
ebosi
1033
1033
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2funix.stackexchange.com%2fquestions%2f483398%2ffrom-guake-pass-command-to-gnome-terminal-to-kill-and-respawn-guake%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