badkins has quit [Remote host closed the connection]
bkhl_ has quit [Quit: bkhl_]
orivej has joined #racket
Codaraxis_ has quit [Read error: Connection reset by peer]
teardown has quit [Read error: Connection reset by peer]
iyzsong has joined #racket
Lowl3v3l has quit [Quit: Leaving.]
badkins has joined #racket
badkins has quit [Ping timeout: 265 seconds]
endformationage has quit [Ping timeout: 255 seconds]
teardown has joined #racket
Codaraxis_ has joined #racket
sauvin has joined #racket
narimiran has joined #racket
jsomedon has joined #racket
gour has joined #racket
gour has left #racket [#racket]
kritixilithos has joined #racket
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
endobson has joined #racket
Codaraxis_ has quit [Ping timeout: 240 seconds]
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fanta1 has joined #racket
kritixilithos has quit [Ping timeout: 240 seconds]
ski has joined #racket
kritixilithos has joined #racket
fanta1 has quit [Quit: fanta1]
badkins has joined #racket
badkins has quit [Ping timeout: 260 seconds]
kritixilithos has quit [Ping timeout: 240 seconds]
kritixilithos has joined #racket
mario-goulart has quit [Remote host closed the connection]
Fernando-Basso has joined #racket
tilpner has quit [Quit: tilpner]
fanta1 has joined #racket
KDr21 has joined #racket
iyzsong has quit [Remote host closed the connection]
iyzsong has joined #racket
KDr2 has quit [Ping timeout: 258 seconds]
Codaraxis_ has joined #racket
kritixilithos has quit [Ping timeout: 240 seconds]
Codaraxis_ has quit [Ping timeout: 240 seconds]
kritixilithos has joined #racket
fanta1 has quit [Quit: fanta1]
kritixilithos has quit [Ping timeout: 240 seconds]
kritixilithos has joined #racket
ArthurStrong has joined #racket
iyzsong has quit [Ping timeout: 245 seconds]
tilpner has joined #racket
tilpner has quit [Remote host closed the connection]
tilpner has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 255 seconds]
notzmv has quit [Ping timeout: 265 seconds]
Guest83927 has joined #racket
Guest83927 is now known as notzmv
notzmv is now known as zmv
zmv is now known as notzmv
kritixilithos has quit [Ping timeout: 240 seconds]
lockywolf has joined #racket
lockywolf has quit [Remote host closed the connection]
lockywolf has joined #racket
kritixilithos has joined #racket
lockywolf has quit [Remote host closed the connection]
lockywolf has joined #racket
lockywolf has quit [Max SendQ exceeded]
lockywolf has joined #racket
vraid has joined #racket
panico has joined #racket
<panico>
Hello, I am trying to use subprocess to run dmenu and then write some new line separated strings to dmenu's std input (which is the output port returned from subprocess).
ArthurStrong has left #racket [#racket]
<panico>
Sorry, I will have to paste the code here as I am unable to get past the recaptcha on pasterack.org
<panico>
(define-values (s o i e) (subprocess #f #f #f "dmenu" "-i -l 2"))
<panico>
(write "Hello\nWorld" i)
<panico>
(flush-output i)
<panico>
The program does not error but dmenu never visually appears display Hello and World.
<panico>
I am able to print out the subprocess pid, via (subprocess-pid s), and also when I print (subprocess-status s) I see "running".
lockywolf_ has joined #racket
<panico>
I don't need to read anything from the dmenu process, only write the strings to be displayed. The racket program can quit once the dmenu process has exited.
lockywolf__ has quit [Remote host closed the connection]
endobson has quit [Client Quit]
lockywolf_ has quit [Ping timeout: 260 seconds]
endobson has joined #racket
endformationage has joined #racket
kritixilithos has quit [Ping timeout: 240 seconds]
kritixilithos has joined #racket
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TempeVolcano has joined #racket
vraid has quit [Ping timeout: 265 seconds]
<friscosam>
panico: I don't think subprocess splits the arguments for you so dmenu is getting one argument with the value "-i -l 2"
<friscosam>
panico: also I don't think subprocess uses the PATH environment variable to look for programs so you should either put the absolute path or use find-executable-path
TempeVolcano has quit [Ping timeout: 265 seconds]
<friscosam>
If you use the "simple" flavors as suggested you can avoid these problems as they work more like a command line string.
mario-goulart has joined #racket
narimiran has quit [Ping timeout: 258 seconds]
ziyourenxiang has quit [Ping timeout: 265 seconds]
YuGiOhJCJ has joined #racket
orivej has quit [Ping timeout: 272 seconds]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 258 seconds]
badkins has joined #racket
badkins has quit [Remote host closed the connection]
vraid has joined #racket
ccamel has joined #racket
camelCaser has quit [Ping timeout: 272 seconds]
kritixilithos has quit [Ping timeout: 240 seconds]
badkins has joined #racket
badkins has quit [Ping timeout: 240 seconds]
kritixilithos has joined #racket
efm has joined #racket
badkins has joined #racket
_whitelogger has joined #racket
badkins has quit [Ping timeout: 260 seconds]
sauvin has quit [Read error: Connection reset by peer]
badkins has joined #racket
kritixilithos has quit [Quit: quit]
badkins has quit [Ping timeout: 255 seconds]
badkins has joined #racket
wingsorc has joined #racket
badkins has quit [Ping timeout: 272 seconds]
badkins has joined #racket
badkins has quit [Ping timeout: 265 seconds]
badkins has joined #racket
badkins has quit [Ping timeout: 258 seconds]
DGASAU has quit [Read error: Connection reset by peer]
DGASAU has joined #racket
sagax has quit [Ping timeout: 265 seconds]
sagax has joined #racket
badkins has joined #racket
DGASAU has quit [Ping timeout: 272 seconds]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
DGASAU has joined #racket
TempeVolcano has joined #racket
TempeVolcano has quit [Ping timeout: 265 seconds]
DGASAU has quit [Ping timeout: 255 seconds]
DGASAU has joined #racket
narimiran has joined #racket
asumu_ has quit [Ping timeout: 265 seconds]
jsomedon has quit [Quit: jsomedon]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 260 seconds]
vraid has quit [Read error: Connection reset by peer]
badkins has joined #racket
TempeVolcano has joined #racket
narimiran has quit [Ping timeout: 258 seconds]
efm has quit [Quit: Konversation terminated!]
TempeVolcano has quit [Ping timeout: 260 seconds]
TempeVolcano has joined #racket
Codaraxis has joined #racket
TempeVolcano has quit [Ping timeout: 258 seconds]
Fernando-Basso has quit [Quit: Leaving]
FreeFull has joined #racket
badkins has quit [Remote host closed the connection]