How to start and disown a process in a single line? Announcing the arrival of Valued Associate...
What does this say in Elvish?
Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?
Co-worker has annoying ringtone
Why weren't discrete x86 CPUs ever used in game hardware?
Amount of permutations on an NxNxN Rubik's Cube
Did Mueller's report provide an evidentiary basis for the claim of Russian govt election interference via social media?
How do I find out the mythology and history of my Fortress?
What is the chair depicted in Cesare Maccari's 1889 painting "Cicerone denuncia Catilina"?
How to write capital alpha?
How does light 'choose' between wave and particle behaviour?
How would a mousetrap for use in space work?
Girl Hackers - Logic Puzzle
An adverb for when you're not exaggerating
Lagrange four-squares theorem --- deterministic complexity
In musical terms, what properties are varied by the human voice to produce different words / syllables?
Do wooden building fires get hotter than 600°C?
How could we fake a moon landing now?
One-one communication
Putting class ranking in CV, but against dept guidelines
Sum letters are not two different
Significance of Cersei's obsession with elephants?
Would it be easier to apply for a UK visa if there is a host family to sponsor for you in going there?
Is there hard evidence that the grant peer review system performs significantly better than random?
AppleTVs create a chatty alternate WiFi network
How to start and disown a process in a single line?
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” questionWhat happens to the output of a process that has been disowned and lost its terminal?any way to un-disown / re-attach an interactive process to the tty?How to completely detach a processCPU and Memory usage monitoring for a single processstart process (as root) upon user loginIn zsh, how can I more quickly disown the foreground process?Why the kernel kills my process with disown when I logout?How can I detach a process from a bash script?bash - How to make a process works while Skype is workingWhy do I still receive stdout or stderr after disowning a process?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I noticed that many times I need to start a process and disown it immediately. I trying to achieve this in a single line. Any ideas how to do it?
bash process disown
add a comment |
I noticed that many times I need to start a process and disown it immediately. I trying to achieve this in a single line. Any ideas how to do it?
bash process disown
1
sleep 600 & disown
. If it's something else you're after, add more details to your Q.
– mosvy
33 mins ago
add a comment |
I noticed that many times I need to start a process and disown it immediately. I trying to achieve this in a single line. Any ideas how to do it?
bash process disown
I noticed that many times I need to start a process and disown it immediately. I trying to achieve this in a single line. Any ideas how to do it?
bash process disown
bash process disown
edited 25 mins ago
Hardik Khane
asked 35 mins ago
Hardik KhaneHardik Khane
165
165
1
sleep 600 & disown
. If it's something else you're after, add more details to your Q.
– mosvy
33 mins ago
add a comment |
1
sleep 600 & disown
. If it's something else you're after, add more details to your Q.
– mosvy
33 mins ago
1
1
sleep 600 & disown
. If it's something else you're after, add more details to your Q.– mosvy
33 mins ago
sleep 600 & disown
. If it's something else you're after, add more details to your Q.– mosvy
33 mins ago
add a comment |
1 Answer
1
active
oldest
votes
The following works for me as desired:
intended_process & disown $!
It seems that the $! part is optional
Thanks for the suggestion @mosvy
add a comment |
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
});
}
});
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%2f513513%2fhow-to-start-and-disown-a-process-in-a-single-line%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
The following works for me as desired:
intended_process & disown $!
It seems that the $! part is optional
Thanks for the suggestion @mosvy
add a comment |
The following works for me as desired:
intended_process & disown $!
It seems that the $! part is optional
Thanks for the suggestion @mosvy
add a comment |
The following works for me as desired:
intended_process & disown $!
It seems that the $! part is optional
Thanks for the suggestion @mosvy
The following works for me as desired:
intended_process & disown $!
It seems that the $! part is optional
Thanks for the suggestion @mosvy
answered 26 mins ago
Hardik KhaneHardik Khane
165
165
add a comment |
add a comment |
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.
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%2f513513%2fhow-to-start-and-disown-a-process-in-a-single-line%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
1
sleep 600 & disown
. If it's something else you're after, add more details to your Q.– mosvy
33 mins ago