You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
1If you prefer to have the output of your commands on the tty itself, tmux is the tool you want to use (and your only choice, as neither "nohup" nor "at" prints the output to your tty). Install tmux on your VPS, then try this: ssh into your VPS --> execute "tmux" --> execute "while true; do echo test; sleep 1; done" (you will see "test" printed out each second) --> press Ctrl+B, then press "d" to detach your session --> execute "exit" to disconnect from your VPS --> ssh into it again --> execute "tmux attach" and you will see that, while you were disconnected, the loop kept working.Mario Vitale– Mario Vitale2016-12-29 22:01:14 +00:00Commented Dec 29, 2016 at 22:01
-
Any way to auto disabling this message about output redirected to /home/user/nohup.out ?user149572– user1495722016-12-29 22:10:27 +00:00Commented Dec 29, 2016 at 22:10
-
1Yes, if you don't want the "nohup.out" message from showing, you can add "2>/dev/null" at the end of the command from option 3, before the "&". Thus, the complete command would be ---> nohup bash -c " ...your commands here... ; kill $$" 2>/dev/null &Mario Vitale– Mario Vitale2016-12-29 22:10:48 +00:00Commented Dec 29, 2016 at 22:10
-
Also, if you have new questions please create new ones.Mario Vitale– Mario Vitale2016-12-29 22:23:37 +00:00Commented Dec 29, 2016 at 22:23
-
1Yes, and I deleted comments that might heavy on newcomers. It's good your replies are there as it helps. It now worked. Thank you for everything. A few days I ate straw with this and you helped me in a dark time.user149572– user1495722016-12-29 22:26:10 +00:00Commented Dec 29, 2016 at 22:26
|
Show 2 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. shell-script), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you