havenwood changed the topic of #ruby to: Ruby 3.4.1, 3.3.7 https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
grenierm has joined #ruby
rvalue has quit [Quit: 'forgot to sleep']
TomyWork has quit [Ping timeout: 272 seconds]
fercell has quit [Quit: ZNC - https://znc.in]
fercell has joined #ruby
brw2 has quit [Quit: The Lounge - https://thelounge.chat]
brw has joined #ruby
Linux_Kerio has joined #ruby
Linux_Kerio has quit [Ping timeout: 248 seconds]
grenierm has quit [Ping timeout: 240 seconds]
brokkoli_origin has quit [Ping timeout: 248 seconds]
brokkoli_origin has joined #ruby
Linux_Kerio has joined #ruby
zph1nx has joined #ruby
zphinx has quit [Remote host closed the connection]
s-liao-200 has joined #ruby
grenierm has joined #ruby
s-liao-200 has quit [Quit: Client closed]
xdminsy has quit [Ping timeout: 252 seconds]
xdminsy has joined #ruby
TomyWork has joined #ruby
dalan03822833508 has quit [Quit: dalan03822833508]
dalan03822833508 has joined #ruby
dalan03822833508 has quit [Ping timeout: 248 seconds]
dalan03822833508 has joined #ruby
dalan03822833508 has quit [Client Quit]
dalan03822833508 has joined #ruby
mange has quit [Remote host closed the connection]
mange has joined #ruby
grenierm has quit [Quit: Client closed]
dalan03822833508 has quit [Ping timeout: 272 seconds]
TomyWork has quit [Remote host closed the connection]
dalan03822833508 has joined #ruby
TomyWork has joined #ruby
TomyLobo2 has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
mange has quit [Quit: Zzz...]
Linux_Kerio has quit [Ping timeout: 252 seconds]
rvalue has joined #ruby
Inline has quit [Ping timeout: 265 seconds]
Inline has joined #ruby
s-liao-200 has joined #ruby
s-liao-200 has quit [Quit: Client closed]
constxd has quit [Ping timeout: 252 seconds]
s-liao-200 has joined #ruby
constxd has joined #ruby
smp has quit [Ping timeout: 252 seconds]
bhaak has quit [Ping timeout: 252 seconds]
aindilis_ has joined #ruby
smp has joined #ruby
aindilis has quit [Ping timeout: 252 seconds]
bhaak has joined #ruby
xdminsy has quit [Remote host closed the connection]
xdminsy has joined #ruby
Linux_Kerio has joined #ruby
s-liao-200 has quit [Quit: Client closed]
denvermullets has joined #ruby
hwpplayer1 has joined #ruby
user71 has joined #ruby
denvermullets has quit [Remote host closed the connection]
JulioPapel has joined #ruby
JulioPapel has quit [Remote host closed the connection]
graywolf has joined #ruby
tweeeaks has joined #ruby
jhass_ has joined #ruby
hwpplayer1 has quit [*.net *.split]
brokkoli_origin has quit [*.net *.split]
jhass has quit [*.net *.split]
jmcgnh has quit [*.net *.split]
crespire has quit [*.net *.split]
tweaks has quit [*.net *.split]
jhass_ is now known as jhass
jmcgnh has joined #ruby
crespire has joined #ruby
hwpplayer1 has joined #ruby
brokkoli_origin has joined #ruby
jmcgnh has quit [Excess Flood]
jmcgnh has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
jasfloss has quit [Ping timeout: 260 seconds]
hwpplayer1 has quit [Remote host closed the connection]
jasfloss has joined #ruby
dalan03822833508 has quit [Ping timeout: 276 seconds]
MsInput has joined #ruby
dalan03822833508 has joined #ruby
hwpplayer1 has joined #ruby
Sampersand has joined #ruby
joako has quit [Quit: quit]
joako has joined #ruby
ixti has joined #ruby
ixti has quit [Quit: Leaving]
hwpplayer1 has quit [Quit: bbl]
xdminsy has quit [Ping timeout: 246 seconds]
xdminsy has joined #ruby
xdminsy has quit [Ping timeout: 252 seconds]
xdminsy has joined #ruby
Vonter has quit [Ping timeout: 252 seconds]
tweeeaks is now known as tweaks
Vonter has joined #ruby
Sampersand has quit [Quit: Client closed]
donofrio_ has joined #ruby
Sampersand has joined #ruby
Guest78 has joined #ruby
ih8u2 has joined #ruby
ih8u has quit [Ping timeout: 246 seconds]
ih8u2 is now known as ih8u
donofrio_ has quit [Ping timeout: 248 seconds]
ggggs has joined #ruby
<ggggs> I've run into problem, can i use Open3.capture and if it spawns sth like python3 then use popen? I mean this is my code:
<ggggs> and i want to know when it spawns new process
<Sampersand> probably `Open3.cappture3` ?
<Sampersand> idk ive never used open3
<ggggs> it return empty when i run sth like python
<ggggs> but if I do ls -lha it is fine
<weaksauce> is python printing out to stdout?
<ggggs> it returns empty line to stdout
<ggggs> i mean i dont know what exactly it return, i'll check
<Sampersand> ah
<Sampersand> i see your problem
<Sampersand> when i ran it, i tried `python3 -c 'print("foo")'` and it didnt work
<Sampersand> are you talking about that ggggs?
<ggggs> yes
<ggggs> but I think I figured it out, need test
<ggggs> brb
<Sampersand> it's cause you're passing in the literal string `'print("foo")'` to python
<Sampersand> so python's just executing a string, and does nothing
<Sampersand> try `python3 -c print("foo")`
<ggggs> doesnt work for me
<Sampersand> ```% ruby ~/desktop/tmp.rb
<Sampersand> [me@mycomp.here]$ python3 -c print("hello")
<Sampersand> hello
<Sampersand> ```
<ggggs> ok it works, but what if I want to spawn python instance there
<Sampersand> wdym
<ggggs> because i think it should be popen3
<ggggs> but i dont know what it returns for capture3
<Sampersand> do the docs help?
<Sampersand> ive never used open3 before
<ggggs> yes this should do the trick
<ggggs> ah ok
<ggggs> i found it
<weaksauce> are... you using ruby 2.0?
<ggggs> nah 3.3.5
<ggggs> but it should work the same in this case
<weaksauce> yeah generally most will
<weaksauce> https://rubyapi.org/3.4/o/open3 is nicer most times
<weaksauce> though the docs are getting better on the official site
dalan03822833508 has quit [Ping timeout: 276 seconds]
Guest78 has quit [Quit: Client closed]
<ggggs> ok, nice site, now it obeys
<ggggs> I found the best solution on it
<ggggs> i mean the website
hwpplayer1 has joined #ruby
user71 has quit [Quit: Leaving]
<ggggs> ok it doesnt but I'm fighting
<ggggs> ok done, gn
<Sampersand> gl
ggggs has quit [Remote host closed the connection]
graywolf has quit [Quit: WeeChat 4.5.1]
dalan03822833508 has joined #ruby
LainExperiments has joined #ruby
hwpplayer1 has quit [Remote host closed the connection]
Linux_Kerio has quit [Quit: Konversation terminated!]
Linux_Kerio has joined #ruby
hwpplayer1 has joined #ruby
hwpplayer1 has quit [Remote host closed the connection]
dalan03822833508 has quit [Ping timeout: 264 seconds]
hwpplayer1 has joined #ruby
mange has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
<o0x1eef> If you only need to read from the command, there's also test-cmd.rb https://github.com/0x1eef/test-cmd.rb#readme
<o0x1eef> cmd("python3", "-c", "print(123)").stdout
<o0x1eef> => "123\n
TomyLobo2 has quit [Ping timeout: 246 seconds]
hwpplayer1 has quit [Remote host closed the connection]
xdminsy has quit [Read error: Connection reset by peer]
xdminsy has joined #ruby
Sampersand has quit [Quit: Client closed]