A nohup bug?

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

A nohup bug?

Postby mla » Jun 16th, '16, 19:09

Maybe my Unix/Linux is too rusty, but the nohup command seems to be bugged.

I have an ssh session to a remote machine with the DISPLAY variable set to my current screen. I start an X application (e.g. firefox) with "nohup firefox &". If I now exit the remote shell (be it with ^D or exit), the response is "logout"... and nothing happens. That ssh session just sits there, echoing what I type but not doing anything. If I hit ^C, the ssh session terminates but so does the process started with nohup! Surely, that's not supposed to happen!
mla
 
Posts: 292
Joined: Sep 16th, '11, 16:10

Re: A nohup bug?

Postby doktor5000 » Jun 17th, '16, 17:51

So you want your firefox to still be running when you logoff, right?

Can you try if it works differently if you use disown instead of nohup, at least when using bash?
Code: Select all
firefox disown &

should work the same way.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18057
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: A nohup bug?

Postby mla » Jun 17th, '16, 18:33

Same problem with disown. Yes, given my firefox problems, I wanted to start a completely detached firefox on the remote machine. Surely that must be possible. (I am sure I remember using nohup under bash on Unix to do this some years ago.)
mla
 
Posts: 292
Joined: Sep 16th, '11, 16:10


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest