You are not logged in.

#1 2012-10-18 09:22:49

dejavu
Member
Registered: 2008-05-26
Posts: 103

[Solved] makepkg into background

Hey,
I would like to know if there is a possibility to send the 'makepkg' command into background. I have tried it by adding an '&', but at anytime the compilation stopped. Without the '&' the compilation was successfully.
Scenario which I wanna have:
1. Connect to the compilation server per ssh (e.g.: from other client, mobile phone)
2. Start compilation using 'makepkg'
3. Disconnect the ssh session
4. Anytime connect per ssh with any device and look at the compilation state.

Is this possible?

Last edited by dejavu (2012-10-18 09:56:35)

Offline

#2 2012-10-18 09:25:35

headkase
Member
Registered: 2011-12-06
Posts: 1,976

Offline

#3 2012-10-18 09:26:32

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: [Solved] makepkg into background

You can start build in tmux session, dettach it, and attach it when you want to check state.

Startx tmux, run makepkg, dettach with ^b d and attach it with tmux a.

Offline

#4 2012-10-18 09:52:32

dejavu
Member
Registered: 2008-05-26
Posts: 103

Re: [Solved] makepkg into background

Thanks a lot for your fast answers.
Tried tmux and it seems to be exactly what I was searching for.

Offline

#5 2012-10-18 09:53:44

headkase
Member
Registered: 2011-12-06
Posts: 1,976

Re: [Solved] makepkg into background

Don't forget to edit your first post and put "[Solved]" somewhere in the title.. wink

Offline

#6 2012-10-18 09:59:49

dejavu
Member
Registered: 2008-05-26
Posts: 103

Re: [Solved] makepkg into background

headkase wrote:

Don't forget to edit your first post and put "[Solved]" somewhere in the title.. wink

For sure. ;-)
Just thought about an additionally button for marking a thread as solved. Then it would be much easier not to forget about this. ;-)

Offline

#7 2012-10-18 10:10:50

headkase
Member
Registered: 2011-12-06
Posts: 1,976

Re: [Solved] makepkg into background

Marking a thread as solved is most useful for people googling their problems.  When they see the "solved!" they can click right into a productive thread. wink big_smile

Offline

#8 2012-10-18 12:52:22

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [Solved] makepkg into background

Moving from Arch Discussion to Creating & Modifying Packages.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB