LOM password

Hello,

I need to run several command under LOM from unix shell.

the first command is resetsc -y and then I required to enter admin password.
Is there any way to make it with a script like:
#. <<LOM
resetsc -y
admin password
LOM

Is the password will accepted in that way ?

Thanks in advance.

this is a breach of security dude.. you wont anyone to use your script, even your admins.. LOM,ALOM,SC passwords should be kept confidential to limited "root" users. And your steps above, I have not tried that. does it works?