From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: From: =?ISO-8859-1?Q?Rub=E9n_Berenguel?= Date: Mon, 3 Mar 2014 16:23:03 +0100 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001a1135aa3c4a93ec04f3b55ebe Subject: Re: [9fans] Checking the status of a shell process Topicbox-Message-UUID: c240d226-ead8-11e9-9d60-3106f5b1d025 --001a1135aa3c4a93ec04f3b55ebe Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Oh, I found a way: 1. First check which rc process it is (check id with ps). Can be tricky, luckily it was the first rc after starting rio. 2. ns id and check to which rio.name.number /mnt/wsys $digit it is attached 3. Once you have rio.name.number and $digit, in the remote drawterm instance you can just mount /srv/rio.name.number /n/wsys $digit and cat /n/wsys/text 4. Happy! Info taken from: Tip of the day (plan9 wiki is down, cached link) http://webcache.googleusercontent.com/search?q=3Dcache:YJngblNGWpoJ:www.pla= n9.bell-labs.com/wiki/plan9/Tip_o%27_the_day/index.html+&cd=3D1&hl=3Den&ct= =3Dclnk&gl=3Des Matthias Bauer page: http://shoestringfoundation.org/cgi-bin/blosxom.cgi/2007/06/27#learned Knowing how to plug the mounted namespace screen to a current screen would be interesting, too. Thanks, Ruben On Mon, Mar 3, 2014 at 3:59 PM, Rub=E9n Berenguel wr= ote: > I have a long running process on my remote Plan9 (it's compiling a huge > thing and it's taking ages... Raspberry Pi, it explains it) and I'd like = to > remotely check if it has finished (I can already drawterm into it). I can > at least check if /proc/id has finished, but is there a better way? I.e. > for instance (better solutions welcome anyway) can I peek remotely inside > the window of a remote running process? > > Thanks, > > Ruben > --001a1135aa3c4a93ec04f3b55ebe Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Oh, I found a way:

1. First check which= rc process it is (check id with ps). Can be tricky, luckily it was the fir= st rc after starting rio.
2. ns id and check to which rio.name.nu= mber /mnt/wsys $digit it is attached
3. Once you have rio.name.number and $digit, in the remote drawterm in= stance you can just
=A0 =A0 =A0 mount /srv/rio.name.number /n/wsy= s $digit=A0
=A0 =A0 and
=A0 =A0 =A0 cat /n/wsys/text
4. Happy!

Info taken from:


Knowing how to= plug the mounted namespace screen to a current screen would be interesting= , too.

Thanks,

Ruben


On Mon, Mar 3, 201= 4 at 3:59 PM, Rub=E9n Berenguel <ruben@mostlymaths.net> = wrote:
I have a long running proce= ss on my remote Plan9 (it's compiling a huge thing and it's taking = ages... Raspberry Pi, it explains it) and I'd like to remotely check if= it has finished (I can already drawterm into it). I can at least check if = /proc/id has finished, but is there a better way? I.e. for instance (better= solutions welcome anyway) can I peek remotely inside the window of a remot= e running process?

Thanks,=A0

Ruben

--001a1135aa3c4a93ec04f3b55ebe--