--- Log opened Fri Apr 09 00:00:43 2021 |
00:09 | | himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
00:30 | | Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed] |
01:12 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
01:12 | | catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection reset by peer] |
01:40 | | JustBob [justbob@ServerAdministrator.Nightstar.Net] has joined #code |
01:40 | | mode/#code [+o JustBob] by ChanServ |
02:02 | | Degi [Degi@Nightstar-pfn76t.pool.telefonica.de] has quit [Ping timeout: 121 seconds] |
02:05 | | Degi [Degi@Nightstar-vksdk3.pool.telefonica.de] has joined #code |
02:13 | < Yossarian> | i'm kinda stuck in my room because of a kidney stone, I've ssh'd into my desktop in my mum's room several doors down and I want to attach the open gnome terminal, they're tabbed |
02:13 | < Yossarian> | I suppose `reptyr` could help me do this |
02:15 | <&[R]> | Yes |
02:17 | < Yossarian> | ah it lied to me saying reptyr wasn't in the repo |
02:17 | < Yossarian> | it's gnome terminal with three tabs |
02:22 | < Yossarian> | which is probably why reptyr is giving me a hard time doing it |
02:26 | <&[R]> | `who` should list all the PTYs in use |
02:27 | < Yossarian> | i just want to attach to the terminal emulator and see if it finished its task |
02:27 | < Yossarian> | and give it another |
02:33 | <&[R]> | You can cat a PTY |
02:34 | <&[R]> | Oh wait, that doesn't do what I remember it doing |
02:46 | < Yossarian> | i'm in too much pain to figure it out and it isn't that important anyway, more important that I drink this water |
02:46 | <&[R]> | Make sure when it's empty you make it another water and drink that one |
02:46 | <&[R]> | Then repeat |
02:47 | < Yossarian> | but do you understand what I'm trying to do? I was physically at the machine earlier and it has terminal emulators open and I want to attach them to my present over ssh |
02:47 | <&[R]> | Yeah |
02:47 | | * [R] hasn't attempted to do that before |
02:48 | < Yossarian> | last month I was talking about something like this and I looked into it and that's how reptyr got installed on my laptop... I forget the 'how' |
02:49 | < Yossarian> | if I instead locally launched one instance of the terminal emulator in screen or tmux then this wouldn't be an interesting exercise but not too important, something to fiddle with later |
02:50 | < Yossarian> | also the fact that there is `brltty` - refreshable braille display driver for Linux/Unix blows my mind |
02:51 | < Yossarian> | given that Unix and then Linux and all the little complexities... I bet there are a few blind or nearly blind Linux sysops out there that kick ass |
02:54 | < Yossarian> | also frens, don't get kidney stones - I've had EMTs and nurses (female ones) tell me that they've had kidney stones that were equal or worse than child birth... luckily only my first one was like that. |
03:04 | < Yossarian> | I woke up startled and I was in so much pain in my back I was touching my hand there looking for blood but there was none! |
03:04 | < Yossarian> | Because it felt like someone had literally stabbed me. |
03:04 | < Yossarian> | or shot me |
03:10 | < Mahal> | Kidney stones are, indeed, the Worst (TM) |
03:26 | < Yossarian> | I think I pee'd it out at high force before the EMTs came, I was holding onto the wall with both hands and my eyes closed everything went kinda purple-ish like when you close your eyes in the light or sunlight |
03:26 | < Yossarian> | one of my visits they caught a picture of the little fucker via x-ray I think it was |
03:27 | < Yossarian> | doctors never seem to want to use MRI machines, I know MRI time is valuble and they're expensive but I've never had one |
03:29 | < Yossarian> | my mother has a plethora of health problems :/ I got to see a V-Q scan, you breathe get injected with slightly radioisotopic material and they check for air bubbles |
03:33 | < Mahal> | I gather that the exit passage can be worse if you are equipped with a penis, as well |
04:15 | | FlowersByIrene [NSkiwiirc@Nightstar-q77.ak7.9.154.IP] has joined #code |
04:16 | | himi [sjjf@Nightstar-t83k4m.optusnet.com.au] has joined #code |
04:16 | | mode/#code [+o himi] by ChanServ |
05:04 | | ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds] |
05:18 | | ToxicFrog [ToxicFrog@Nightstar-ke03f7.cpe.distributel.net] has joined #code |
05:18 | | mode/#code [+ao ToxicFrog ToxicFrog] by ChanServ |
05:19 | | Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has joined #code |
05:19 | | mode/#code [+qo Vorntastic Vorntastic] by ChanServ |
05:53 | | VirusJTG__ [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Connection closed] |
05:53 | | VirusJTG__ [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code |
06:02 | | himi [sjjf@Nightstar-t83k4m.optusnet.com.au] has quit [Connection reset by peer] |
06:07 | | FlowersByIrene [NSkiwiirc@Nightstar-q77.ak7.9.154.IP] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client] |
06:16 | | Kindamoody[zZz] is now known as Kindamoody |
07:02 | | himi [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code |
07:02 | | mode/#code [+o himi] by ChanServ |
07:09 | | mac [macdjord@Nightstar-re5.7if.45.45.IP] has quit [Ping timeout: 121 seconds] |
07:17 | | macdjord [macdjord@Nightstar-re5.7if.45.45.IP] has joined #code |
07:17 | | mode/#code [+o macdjord] by ChanServ |
10:22 | | abudhabi [abudhabi@Nightstar-gv1p6v.adsl.tpnet.pl] has joined #code |
10:26 | | abudhabi_ [abudhabi@Nightstar-40rslo.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds] |
11:31 | | Pink [Pink@Nightstar-4dc2ar.ph.cox.net] has quit [Ping timeout: 121 seconds] |
12:06 | | catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
12:06 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection closed] |
13:31 | < abudhabi> | https://youtu.be/rsCul1sp4hQ |
13:34 | | catalyst [catalyst@Nightstar-9tic5r.dab.02.net] has joined #code |
13:37 | | catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Ping timeout: 121 seconds] |
13:46 | <@sshine> | I've got a CLI tool written in PHP that gets called from a web application via exec('cli_tool ... &'); >_< so, if cli_tool crashes, it has 'catch (\Throwable $e) { log(...) }', but since some errors in PHP can't be caught, I can only think of wrapping cli_tool in another program that runs exec(), checks the exit code, and logs if the exit code is negative. when do I stop this train? |
13:50 | <&[R]> | Are you wanting to just ignore the crash? |
13:51 | <&[R]> | Would fork-and-die help here? |
13:51 | | catalyst_ [catalyst@Nightstar-h1h.akn.26.2.IP] has joined #code |
13:51 | <&[R]> | Alternatively, can you have something proper launch your script, like cron or a service manager? |
13:52 | | catalyst [catalyst@Nightstar-9tic5r.dab.02.net] has quit [Connection reset by peer] |
13:53 | <&[R]> | BBL: commute |
13:53 | <@sshine> | sometimes the web app launches the exec('cli_tool ... &') and sometimes it's a cronjob. |
13:53 | | catalyst [catalyst@Nightstar-9tic5r.dab.02.net] has joined #code |
13:54 | <@sshine> | I'm not sure what you mean by whether fork-and-die will help. I want to catch any stdout/stderr and pipe it to a logger. I could do that by writing exec('wrapper cli_tool ... &') where wrapper has its own try-catch so that if cli_tool crashes irrecoverably, a log message is still sent despite cli_tool not reaching its catch. |
13:55 | | catalyst_ [catalyst@Nightstar-h1h.akn.26.2.IP] has quit [Ping timeout: 121 seconds] |
14:19 | | catalyst_ [catalyst@Nightstar-h1h.akn.26.2.IP] has joined #code |
14:19 | | catalyst [catalyst@Nightstar-9tic5r.dab.02.net] has quit [Connection closed] |
14:19 | | catalyst [catalyst@Nightstar-9tic5r.dab.02.net] has joined #code |
14:23 | | catalyst_ [catalyst@Nightstar-h1h.akn.26.2.IP] has quit [Ping timeout: 121 seconds] |
14:37 | | catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
14:40 | | catalyst [catalyst@Nightstar-9tic5r.dab.02.net] has quit [Ping timeout: 121 seconds] |
14:58 | | Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code |
14:58 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
15:08 | | Alek [Alek@Nightstar-kaiguq.il.comcast.net] has quit [Ping timeout: 121 seconds] |
15:11 | | Alek [Alek@Nightstar-kaiguq.il.comcast.net] has joined #code |
17:20 | <&[R]> | Fair enough |
18:11 | | Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code |
18:38 | | Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity] |
19:30 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
19:30 | | catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection reset by peer] |
23:07 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [The TLS connection was non-properly terminated.] |
23:18 | | Alek [Alek@Nightstar-kaiguq.il.comcast.net] has quit [Ping timeout: 121 seconds] |
23:20 | | Kindamoody is now known as Kindamoody[zZz] |
23:23 | | Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Ping timeout: 121 seconds] |
23:49 | | Alek [Alek@Nightstar-06ca3p.il.comcast.net] has joined #code |
--- Log closed Sat Apr 10 00:00:44 2021 |