Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-12-2007, 01:24 PM   #1
Senior Member
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Rep: Reputation: 57
How to enter a password before running script, with you irda remote controller ?


As I have a lirc remote controller, I would like that irexec launch a script when I press the "Enter value" key, that read 6 key inputs and if the 6 keys inputs are valid, starts me a script (program bash/sh script).

Is that possible ?
Old 11-17-2007, 09:06 AM   #2
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 978

Rep: Reputation: 118Reputation: 118
I think so - using a script that fires up a shell like xterm - but you'll have to disable some security settings of the shell in order to make it accept the input - this should be mentioned, as far as I remember, somewhere in the lirc docs.

ps.: found it

There are programs that do not accept any synthetic X-events by default because they can cause security problems. Currently xterm and xemacs are known to ignore events simulated by irxevent.

You can however make xterm accept external events by enabling "Allow SendEvents" in the "Main Options" (hold down the Ctrl button and press the left mouse button inside the xterm window). You can as well place this line into your .Xresources file to change this permanently:

XTerm.vt100.allowSendEvents: true

Yet another possibility is to start xterm like this:

xterm -xrm "XTerm.vt100.allowSendEvents: true"

Last edited by Pearlseattle; 11-17-2007 at 09:09 AM.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
automating scp copy, how to enter password via script? stefaandk Programming 3 11-29-2006 10:57 AM
running script on a remote host p_test Programming 5 10-02-2006 04:40 PM
Running a script as root with sudo without entering the user password kloss Linux - General 8 10-10-2005 12:39 PM
IR Remote ./ built in IRDA Laptop using lirc nandish Linux - Laptop and Netbook 0 07-09-2004 06:52 AM
Running a script in background on a remote machine TheCoffeeMug Linux - Networking 3 11-06-2003 11:08 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:00 PM.

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