<StarOnD>
havenwood : The latter will prevail I think/
cliluw has joined #ruby
<StarOnD>
?
<StarOnD>
havenwood : now that I think about it : `rvm gemdir system` is the ruby installed using sudo and `rvm gemdir system user` is installed by the current user?
<StarOnD>
is that right?
Furai has quit [Quit: WeeChat 2.9]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
teardown has quit [Remote host closed the connection]
teardown has joined #ruby
Furai has joined #ruby
Sauvin has quit [Read error: Connection reset by peer]
adu has quit [Quit: adu]
howdoi has quit [Quit: Connection closed for inactivity]
nakilon has quit [Quit: Ping timeout (120 seconds)]
nakilon has joined #ruby
Liothen has quit [Ping timeout: 264 seconds]
Liothen has joined #ruby
<Tuor>
Hi, when using `shellcommand` or system('shellcommand') ruby uses a shell to run the commands. Is it possible to execute a programm without having a shell interpreting anything? I would like this to fail with a "file 'echo *' not found in $PATH" system('echo *').
Liothen has quit [Read error: Connection reset by peer]
<leftylink>
IIRC if you pass a list, the first element of the list is the command and the rest are the args. so in this case you'd want 'echo *' to be the command, it appears
<leftylink>
s/list/array/
<leftylink>
hmm, no, my suggestion does not quite have the desired behaviour
<leftylink>
too bad
<leftylink>
I tried
<Tuor>
I thought exactly that and found out it's not true. That's exactly the reason I'm asking. :)
<Tuor>
I can use escaping so the shell does what I want it to, but I would rather prefer not having to.
Liothen has joined #ruby
bocaneri has joined #ruby
bocaneri has quit [Max SendQ exceeded]
bocaneri has joined #ruby
ur5us has joined #ruby
burgestrand has joined #ruby
Glumetu has joined #ruby
ruurd has joined #ruby
teardown_ has joined #ruby
teardown has quit [Ping timeout: 240 seconds]
Glumetu has quit [Ping timeout: 265 seconds]
cnsvc has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
Glumetu has joined #ruby
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
yxhuvud has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
imode has quit [Ping timeout: 264 seconds]
maxmanders has joined #ruby
TomyWork has joined #ruby
dionysus69 has joined #ruby
ur5us has joined #ruby
evdubs has quit [Remote host closed the connection]
evdubs has joined #ruby
mtsd has joined #ruby
Glumetu has quit [Ping timeout: 265 seconds]
Glumetu has joined #ruby
mtsd has left #ruby ["Leaving"]
ur5us has quit [Ping timeout: 260 seconds]
al2o3-cr has quit [Quit: WeeChat 2.9]
akem has joined #ruby
burgestrand has quit [Quit: burgestrand]
Hol_La has joined #ruby
Glumetu has quit [Ping timeout: 240 seconds]
Hol_La has quit [Ping timeout: 256 seconds]
akem_ has joined #ruby
akem has quit [Ping timeout: 264 seconds]
StarOnD has quit [Ping timeout: 245 seconds]
Glumetu has joined #ruby
ruurd has joined #ruby
TCZ has joined #ruby
kindwindfall__ has joined #ruby
teardown has joined #ruby
teardown_ has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 2.9]
Technodrome has joined #ruby
burgestrand has joined #ruby
bmurt has joined #ruby
paul0 has joined #ruby
<paul0>
hello, someone here uses mongodb with ruby? Trying to figure out how to find an item by ID
ruurd has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
SeepingN has joined #ruby
davispuh has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ruurd has quit [Read error: Connection reset by peer]
dionysus69 has quit [Remote host closed the connection]
ruurd has joined #ruby
dionysus69 has joined #ruby
bmurt has joined #ruby
teardown has quit [Ping timeout: 240 seconds]
nakilon has quit [Quit: Ping timeout (120 seconds)]
nakilon has joined #ruby
mynameisdebian has joined #ruby
<mynameisdebian>
I am on a Windows machine, trying to connect to a remote SSH server that I frequently connect to. I generated a fresh DSS key and put it into authorized_hosts on the server. When I try to connect with Ruby it tells me: "could not connect to ssh-agent: pageant process not running". I'm not clear on what an SSH agent is or why I need one here. Can't Ruby's "net/ssh" library just generate an SSH session on its own, like every SSH
<mynameisdebian>
client in the world? Can someone help me understand what I'm missing here?
<mynameisdebian>
I know there's only like 10 people in the world using Ruby these days, but any help is appreciated
ruurd has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
ruurd has quit [Client Quit]
<adam12>
mynameisdebian: A lot of keys have passphrases. The agent keeps the key in memory so you don't have to enter your passphrase every time.
<adam12>
mynameisdebian: That's pageant (and ssh-agent from the OpenSSH tools)
<adam12>
mynameisdebian: What does your net ssh connect line look like?
<adam12>
mynameisdebian: brb. gotta watch my kid for a sec.
<mynameisdebian>
adam12: np, thanks for the help
teardown has joined #ruby
<adam12>
mynameisdebian: I'd try passing the key you generated using the `keys` or `key_data` option. Unless you have a passphrase on the SSH key, which then I think you only really have a choice of using Pageant.
<adam12>
mynameisdebian: Depending on how you're running Ruby on the Windows machine will likely determine the key location. Linux ssh clients will automatically look in ~/.ssh/id_{} for a key to use, but because Windows has both WSL and non-WSL integrations, it's too hard to say. And since you mention pageant it makes me wonder if the OpenSSH port is being used or Putty.
davispuh has quit [Ping timeout: 240 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crankharder has joined #ruby
maryo87 has quit [Quit: Leaving]
<mynameisdebian>
I added this line ssh_options[:keys] = ['C:\Users\john\.ssh\id_dsa'] but I still get the Pageant error. I think I'm using "non-WSL" because I'm on Windows 7. I do have Cygwin/openssh installed. I generated my DSA key using ssh-keygen (Cygwin) and copied it from my Cygwin home folder to my Windows home folder (.ssh folder).
maryo has joined #ruby
adu has quit [Quit: adu]
adu has joined #ruby
crankharder has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
<adam12>
mynameisdebian: Yeah in that case I'm not sure. I presume on Windows 7 you're using Putty and not the OpenSSH port, which makes things slightly more interesting. What about key_data? Maybe you can just key_data: File.read(your_id_dsa_path)
<adam12>
mynameisdebian: net/ssh does do native SSH connections so if you can get the key data to it successfully it should _just_ work.
powerhouse has quit [Read error: No route to host]
powerhouse has joined #ruby
fippy has joined #ruby
davispuh has joined #ruby
crankharder has joined #ruby
bmurt has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
maryo has quit [Quit: Leaving]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
DTZUZU_ has joined #ruby
DTZUZU has quit [Ping timeout: 272 seconds]
TomyWork has quit [Quit: Leaving]
orbyt_ has joined #ruby
pienkowb has joined #ruby
adu has quit [Quit: adu]
ivz_hh has quit [Remote host closed the connection]
ivz_hh has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
adu has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
cd has joined #ruby
akem has quit [Ping timeout: 260 seconds]
akem has joined #ruby
TCZ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]