You are not logged in.

#1 2022-09-12 06:05:29

abc12345
Member
Registered: 2022-03-30
Posts: 57

[SOLVED] nohup makepkg?

Is it okay to run

nohup makepkg -s

? Or what's the right way to leave compilation going when the session logs off? Is there anything that users should be mindful of?

Last edited by abc12345 (2022-09-12 14:26:22)

Offline

#2 2022-09-12 06:48:35

abc12345
Member
Registered: 2022-03-30
Posts: 57

Re: [SOLVED] nohup makepkg?

To add, I found this thread where someone wanted to start compilation on a remote server, disconnect, and let it run: https://bbs.archlinux.org/viewtopic.php?id=150906

But I don't think it applies to my question because the actual session on the remote server that runs makepkg is not terminated/logged off when the user disconnects from the remote server. And I can't even get makepkg going in the background to start with (without even logging off).

Offline

#3 2022-09-12 07:21:42

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,486

Re: [SOLVED] nohup makepkg?

Becuse makepkg will most likely require some stdin (first)
You could ctrl+z it, then bg %1 and disown %1
You still want to use its logging capabilities (-L) to get an idea what happened while you were not paying attention.

Also look into tmux or gnu screen which allow to de- and re-attach terminal sessions.

Offline

#4 2022-09-12 09:01:42

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [SOLVED] nohup makepkg?

You could get around interaction (when using -s/-r for handling dependencies) by using --noconfirm.  But I agree that screen/tmux are the way to go.

Offline

Board footer

Powered by FluxBB