LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-19-2012, 06:37 AM   #1
Pjanc
LQ Newbie
 
Registered: Nov 2012
Posts: 1

Rep: Reputation: Disabled
Talking Emulate keyboard in bash


Hi

I've stumbled upon a problem. When I run a program, this program asks me for a security password. I'm looking for a way to convince bash to enter it on my behalf.

I've tried with echo pass, but this doesn't work as the commands are executed sequentially.

program <- this is where the password must be entered
echo pass

Thanks for your answers,

Cheers
 
Old 11-19-2012, 06:59 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
This is what Expect is for: http://expect.sourceforge.net/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using keyboard to emulate left and right mouse buttons Jolly Viking Linux - Newbie 3 10-16-2010 07:35 AM
How to emulate user on terminal (without bash scripts) Laedrus Linux - Server 2 08-20-2008 02:59 AM
Emulate keyboard key "left" Ephracis Linux - Software 1 05-22-2005 09:59 AM
mapping the keyboard scroll whell to emulate + & - keys micker Linux - Software 2 01-25-2005 08:15 AM
weird question: Can a MOUSE emulate a KEYBOARD? Leonig Mig Linux - Software 2 04-13-2004 03:54 PM


All times are GMT -5. The time now is 04:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration