Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a tripwire program that I need to automate during its system check and accept the changes made on the system. The problem is that its an interactive process and its asking twice for a passphrase to be entered. Based on the man pages it looks like its trying to accept the passphrase from /dev/tty stdin. I wanted to find out if there is a way to redirect the passphrase ran by a shell script to /dev/tty so the process running tripwire can accept the stdin from a script and finish its run.
However, the reason I suggested expect was because you said it asks for input twice. That makes it a perfect candidate for expect which allows for multiple ask/response setups.
Hi yes I did take a look at the rest of your post and tried it out using the here document approach, however the results were not successful. Tripwire makes its run but fails to accept input twice in automated fashion.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.