command line question.

  • Thread starter Dmitrii PapaGeorgio
  • Start date
D

Dmitrii PapaGeorgio

i want to use ruby under UNIX for launching different apps under
different users. how would i implement something like this

let's say i create/launch a shell command from ruby like

ssh (e-mail address removed)

this will prompt the user for a password, and i would like a string
variable to be executed when it prompts for the password.
 
G

gabriele renzi

il Mon, 29 Sep 2003 21:45:16 GMT, Dmitrii PapaGeorgio
this will prompt the user for a password, and i would like a string
variable to be executed when it prompts for the password.

I think you may look for expect (there is something on raa, but I cant
really remeber..)
It is aimed at interactive commands interazction (login,ftp,telnet..)
 
R

Robert Klemme

Dmitrii PapaGeorgio said:
i want to use ruby under UNIX for launching different apps under
different users. how would i implement something like this

let's say i create/launch a shell command from ruby like

ssh (e-mail address removed)

this will prompt the user for a password, and i would like a string
variable to be executed when it prompts for the password.

It's not completely clear to me what you want. Do you want to execute a
program on the server side whenever a user logs in via SSH? Or do you
want to build a client side application that does SSH login and then
starts an application on the server?

robert
 
D

Dmitrii PapaGeorgio

Actually I made up the example using ssh.

I have a lot of apps which asks for user id, password, host, etc. So I
wanted to know if there was something I could use...for an example.

id = "james"
pwd = "pwd"
host = "local"

have the code above launch to a specific system command like ssh

so when prompted for user id...vairable id would be sent, for pwd, etc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,135
Messages
2,570,783
Members
47,341
Latest member
hanifree

Latest Threads

Top