a question in shell script# Unix - 噫吁兮,危乎高哉
w*s
1 楼
How can I let others su me without entering password in a script? I know it
is dumb and dangous, but it seems it's the need.
Some previous posts said use "expect", while I can't find it in Sun.(I got
it in Linux machine) Can somebody tell me whether I can get it from Sun?
And if don't use "expect", is it possible for a shell script to talk and
control other process? Can I give the password to su in a script?
Thanks very much.
is dumb and dangous, but it seems it's the need.
Some previous posts said use "expect", while I can't find it in Sun.(I got
it in Linux machine) Can somebody tell me whether I can get it from Sun?
And if don't use "expect", is it possible for a shell script to talk and
control other process? Can I give the password to su in a script?
Thanks very much.