Skip to main content

Questions tagged [disown]

Question related to the "disown" builtin command from shells like bash, zsh or ksh.

0 votes
1 answer
96 views

A borgmatic backup command that runs for many hours: long_running_cmd &> file.txt I did Strg+Z then bg then disown to keep the command running I case my laptop goes to sleep or disconnects. I ...
Destro's user avatar
  • 15
0 votes
0 answers
298 views

when i run this script with a shortcut(sxhkd): #!/bin/sh MUSIC_DIR="$HOME/music" songs=$(ls "$MUSIC_DIR") filename=$( echo -e "random\n$songs" | dmenu -l 30 -i -p &...
grayhatter's user avatar
2 votes
3 answers
916 views

I'm trying to write a quick-and-dirty shell script daemon to run on a home router that has a busybox shell, which doesn't support disown. Is there any way to do either of the following? Run a command ...
joshlf's user avatar
  • 405
3 votes
1 answer
242 views

I'm trying to bring up a terminal to interactively ask for a file, and open it using a GUI program: foot /bin/sh -c 'file=`fzf`;(setsid xdg-open "$file" &)' I'm using setsid, because ...
Remko's user avatar
  • 133
1 vote
2 answers
1k views

The question is about running a bash script in background with the ability to logout and the process to continue. The issue is that websocat and wscat don't like when I close the terminal or logout.......
John R's user avatar
  • 125
0 votes
2 answers
1k views

When a program/process is started in bash WITHOUT nohup, is it later possible(do something further) to let this program run even after the shell/terminal is closed. Here is a great discussion on ...
samshers's user avatar
  • 748
1 vote
0 answers
662 views

After running a process, then using: ctrl+z bg disown [-h] Closing the connection still results in interrupting the running process.
cookiemonster's user avatar
0 votes
0 answers
1k views

I've been using nohup for years on my server without any issue. Suddenly today it stopped working and the process ends as soon as I exit SSH. I have multiple accounts on this server and the problem is ...
Ray's user avatar
  • 101
0 votes
1 answer
1k views

I'm trying to reboot the server after a specified time. If logged in on the server this can be achieved with a command like this: sleep 10 && reboot To make this command stay alive (without ...
miu's user avatar
  • 295
1 vote
1 answer
2k views

I would like to create a process that runs in the background and waits for 2 seconds and prints a literal. I'm trying to do `sleep 2 && echo "hello"` & However, it's trying to ...
Tobias Feil's user avatar
1 vote
1 answer
3k views

I have an executable (a server made with Unity) which I want to continue to run after I log out. All the interwebs say that I should be able to accomplish this with nohup or disown or both. But it ...
Joe Strout's user avatar
0 votes
1 answer
246 views

I am executing a command using timeout in the following way that waits for seconds and then exits timeout -k 1 10 <command> &> error.log & disown % However, I've realized that since ...
user782400's user avatar
1 vote
0 answers
2k views

I have a bg process disowned like so: (idea "$code_home/jenkins-jobs" ) & disown The problem is it will start writing its stdout/stderr to the terminal from which I launched it. I would have ...
Alexander Mills's user avatar
1 vote
2 answers
1k views

I need to run a process in the background and then exit the current terminal. The following command results in error: > google-chrome-stable &! && exit zsh: parse error near '&&...
Ian Melendez's user avatar
3 votes
1 answer
2k views

On a Linux system, the bash builtin command disown can be used to remove jobs from the current session. How does bash implement this feature? Is setsid() used here, and if so, how does bash trigger ...
Vince.Wu's user avatar
  • 131

15 30 50 per page