hi,
I'm executing some scripts via qx//, but they require password to contiune. the problem is that I can't see the password prompt...ex:
qx[ssh -t user\@machine sudo /bin/mv file file.dest]
Now if I remove the '-t' flag I see the the password prompt, but then there is the problem with sudo i.e. in this case when I type the password it is seen on the screen.
In the shell script I used successfuly '-t' flag to hide
the password, now in I'm rewriting it in perl, but...
Could u give some hints how overcome this problem...
man ssh
-t Force pseudo-tty allocation. This can be used to execute arbitrary screen-based programs on a remote machine, which can be very useful, e.g., when implementing menu services. Multiple -t options force tty allocation, even if ssh has no local tty.
tia