Thanks to all,
It's working now ...
I'm aware of the dead-lock or unknow things, I'm experimenting with it.
This is because I have to upload some files to an ftp server, but I must
do it trgough a VPN connection.
I want to start this VPN connection manually, and once connected, fire
all the file upload.
Thanks, I'm sure I'll have lots of new questions, but now I can go
further ...
thanks again!
regards,
r.
IO.popen("/bin/sh","r+") do |s|
s.puts "/usr/local/bin/vpnclient connect xxxxxx user xxxxxx pwd
xxxxxxxx\n"
while line = s.gets do
puts " ** #{line}"
if line =~ %r{y/n}
s.puts 'y'
end
end
end
--
Posted via http://www.ruby-forum.com/.