Score:0

How to start a background process in gnome-terminal automatically at the start

ca flag

I want to start a background process (tail [a log file]) in each gnome-terminal automatically when the terminal is created. I've tried gnome-terminal -e "tail -f /var/log/syslog &" which starts the tail, but in the foreground and it takes over the terminal completely. CTRL+Z has no effect. Is it possible?

waltinator avatar
it flag
Read `man journalctl`, do `sudo journalctl --follow`.
johnmuir avatar
ca flag
@waltinator Thank you, but I don't see how that relates to my problem...
johnmuir avatar
ca flag
@waltinator I'm looking for a general solution to starting background processes automatically, not just a syslog solution.
Score:0
ca flag

The solution was trivial: just add it to .bashrc

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.