dzoe changed the topic of #racket to: Racket v8.0 has been released: https://blog.racket-lang.org/2021/02/racket-v8-0.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
badkins has joined #racket
louis771 has quit [Quit: My M1 has gone to sleep. ZZZzzz…]
badkins has quit [Ping timeout: 252 seconds]
rgherdt has quit [Ping timeout: 240 seconds]
phillbush has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 240 seconds]
dbmikus has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 240 seconds]
Lowl3v3l has joined #racket
dbmikus has quit [Ping timeout: 240 seconds]
phillbush has quit [Remote host closed the connection]
dbmikus has joined #racket
astronavt has joined #racket
dbmikus has quit [Ping timeout: 252 seconds]
epony has quit [Ping timeout: 240 seconds]
dbmikus has joined #racket
dbmikus has quit [Ping timeout: 246 seconds]
aeth has quit [Quit: Reconnecting]
aeth has joined #racket
orivej has quit [Ping timeout: 246 seconds]
sxmx has quit [Quit: WeeChat 3.1]
badkins has joined #racket
badkins has quit [Ping timeout: 240 seconds]
dustyweb has quit [Remote host closed the connection]
mzan has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
mzan has joined #racket
sxmx has joined #racket
caente has quit [Ping timeout: 265 seconds]
casaca has quit [Remote host closed the connection]
casaca has joined #racket
dbmikus has joined #racket
dbmikus has quit [Ping timeout: 240 seconds]
jjjd has joined #racket
endformationage has quit [Quit: WeeChat 2.9]
badkins has joined #racket
narimiran has joined #racket
badkins has quit [Ping timeout: 246 seconds]
dbmikus has joined #racket
dbmikus has quit [Ping timeout: 240 seconds]
fredmanglis has joined #racket
kupi has quit [Quit: Connection closed for inactivity]
aidalgol_ has joined #racket
aidalgol has quit [Ping timeout: 265 seconds]
fredmanglis has quit [Read error: Connection reset by peer]
fredmanglis has joined #racket
Sgeo has quit [Read error: Connection reset by peer]
badkins has joined #racket
badkins has quit [Ping timeout: 252 seconds]
epony has joined #racket
narimiran has quit [Quit: leaving]
phillbush has joined #racket
phillbush has quit [Client Quit]
rgherdt has joined #racket
badkins has joined #racket
orivej has joined #racket
badkins has quit [Ping timeout: 252 seconds]
phillbush has joined #racket
ermo has quit [Ping timeout: 240 seconds]
ermo has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 265 seconds]
badkins has joined #racket
badkins has quit [Ping timeout: 260 seconds]
badkins has joined #racket
badkins has quit [Ping timeout: 240 seconds]
phillbush has quit [Ping timeout: 260 seconds]
caente has joined #racket
phillbush has joined #racket
orivej has quit [Ping timeout: 240 seconds]
badkins has joined #racket
badkins has quit [Ping timeout: 260 seconds]
fredmanglis has quit [Read error: Connection reset by peer]
fredmanglis has joined #racket
endformationage has joined #racket
louis771 has joined #racket
louis771 has quit [Ping timeout: 265 seconds]
badkins has joined #racket
badkins has quit [Ping timeout: 240 seconds]
louis771 has joined #racket
orivej has joined #racket
louis771 has quit [Ping timeout: 246 seconds]
louis771 has joined #racket
Sgeo has joined #racket
louis771 has quit [Ping timeout: 268 seconds]
badkins has joined #racket
badkins has quit [Ping timeout: 246 seconds]
aeth has quit [Ping timeout: 246 seconds]
aeth has joined #racket
<jA_cOp> Is there a nice way with the standard library to run a subprocess until it finishes, and capture its stdout *and* exit code to variables? I'm using `(with-output-to-string (lambda () (system* ...)))` which evaluates to the standard output, but then I have to handle the exit code inside the lambda, and if I wanted stderr it would be a similar story
srandon111 has joined #racket
paddymahoney has joined #racket
orivej has quit [Ping timeout: 246 seconds]
badkins has joined #racket
badkins has quit [Ping timeout: 268 seconds]
notzmv has quit [Ping timeout: 252 seconds]
<winny> jA_cOp; subprocess, though you could simplify it by lifting the code into a utility procedure. a contrived example in a simple tool i wrote https://github.com/winny-/ssh-hack/blob/9e8099a385fed26def70690279ad9d4ff3a097d0/ssh-hack.rkt#L79-L89
fredmanglis has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<winny> i think system kind of maps to the system(3) libc thing, it's not very flexible. https://www.gnu.org/software/libc/manual/html_node/Running-a-Command.html#Running-a-Command
dustyweb has joined #racket
<winny> another option https://docs.racket-lang.org/reference/subprocess.html?q=system#%28def._%28%28lib._racket%2Fsystem..rkt%29._process%29%29
simendsjo has joined #racket
simendsjo has quit [Client Quit]
louis771 has joined #racket
epony has quit [Ping timeout: 240 seconds]
louis771 has quit [Quit: My M1 has gone to sleep. ZZZzzz…]
louis771 has joined #racket
aidalgol_ is now known as aidalgol
louis771 has quit [Quit: My M1 has gone to sleep. ZZZzzz…]
badkins has joined #racket
louis771 has joined #racket
badkins has quit [Ping timeout: 260 seconds]
<jA_cOp> Thanks a lot winny ; that's a good example, I think I'll use subprocess!
<jA_cOp> I guess the only adjustment I would need is to call `(port->string stdout)` to get the stdout as a string after the wait and status check
louis771 has quit [Quit: My M1 has gone to sleep. ZZZzzz…]
louis771 has joined #racket
notzmv has joined #racket
epony has joined #racket
louis771 has left #racket ["Textual IRC Client: www.textualapp.com"]
badkins has joined #racket
badkins has quit [Ping timeout: 240 seconds]
orivej has joined #racket
notzmv has quit [Ping timeout: 246 seconds]
badkins has joined #racket
badkins has quit [Ping timeout: 265 seconds]
notzmv has joined #racket