] The program in question is sqr for Sybase. The new problem is that when I
] try to redirect the user and password into sqr it prompts me for the password;
] I think it is somehow bypassing stdin! What can I do, I really don't want the
] password available to the person executing the autamated command.
] Once again I don't have the source.
Use expect; it can tell the program the password and make it think it is
coming from the /dev/tty instead of stdin. At any point you can still
transfer control back to the user, to continue using the Sybase as usual.
It can do much more, but it certainly can do what you are asking.
--
n r
a JAMax "If you walk around carrying a hammer,
h o w an awful lot of things look like nails."
tan lle --Mark Twain