Sorry, the full command should be: nohup tiddlywiki ~/TW --listen port=8090 2>&1 >mylogfile &
The & at the end puts the command in the background
The nohup at the start detaches the command from the terminal
The 2>&1 >mylogfile redirects both the standard error and the standard output to a file.
Once you leave the terminal, the process continues to live until you kill it or it crashes by itself, the latter being very rare nowadays with modern node and tiddlywiki So if you need to kill it, you should rather look for its process id, for instance with the command ps auxww |grep tiddlywiki and then issue a kill <that_id>. Or more directly kill $(pgrep -f "tiddlywiki"), although this one would kill all tiddlywiki processes…
You may want to learn how to embed these commands in scripts, so that this horrid shell syntax gets hidden
@xcazin Thanks. That was useful. Just one more point. Like there is a way to launch TW in a way we want by putting additional flags, etc. is not there a way to stop/ restart TW? Do we have to depend on the commands of the OS?
Since modifying tiddlers generally results into modifying .tid files on the filesystem (under ~/TW/tiddlers/ in your case) —as well as modifying the standard output by the way—, it is indeed possible to write a shell script that loops over this directory to check whether some files meet some conditions, in which case it would kill the wiki process. I must say that I never felt the need to go that route.
Otherwise, the Bob implementation has some provisions for starting and stopping nodejs wikis from the user interface, and that is an approach that you may want to investigate.