Take a look at the 'expect' program. You can customize it to login to
remote systems, run software, answer questions, etc. in a controlled
manner.
-- Jon
On Jul 2, 2009, at 5:09 PM, mike monczynski wrote:
> I have 70 + systems to go to and edit the properties file, but my
> boss doesnt want any passwd in any file.. Hw wants me to supply that
> interactively some how.. and thats what Im trying to do .. I feel
> like you just put it in the file and delete it afterwards ,but I
> have been told NOT to do it that way.
> I have tried to use ssh and run a script that echo or appends the
> userid and passwd but Im having issues with permissions updating the
> file. The hyperic user is the only one that cand read and write
> to it.. and I did a chmod on the properties file to allow me to
> change it for me to write to but Im still having permission problems
> beacuse the Hyperic directories are under /opt/ and the opt
> directory is owned by root. Have to figure out whats going on .. A
> skeleton agent properties file without userid and passwd are on each
> machine .. When I try and echo thevalues for the 2 lines foe userid
> and passwd to the skeleton file I get permission denied.. Dont know
> why even though the file say rw by other .. I want to update
> thisproperties file and upgrade in the same script ,but cant get
> pass the permisiion denied.