D
Dave Moore
I'm trying to use ruby to write a system admin script.
I have a bash scripted called ask, which prompts me
for a passcode.
What is the passcode: <enter here and hit ENTER>
I would like to have ruby to do the above for me automatically,
so in my script I have
#!/usr/bin/ruby -w
`ask`
Now how do I make ruby to enter the passcode without my interaction?
TIA!
I have a bash scripted called ask, which prompts me
for a passcode.
What is the passcode: <enter here and hit ENTER>
I would like to have ruby to do the above for me automatically,
so in my script I have
#!/usr/bin/ruby -w
`ask`
Now how do I make ruby to enter the passcode without my interaction?
TIA!