LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

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

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


Hi,

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, 08:06 AM   #2
Pearlseattle
Member
 
Registered: Aug 2007
Location: Switzerland
Distribution: Gentoo
Posts: 703

Rep: Reputation: 80
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
here

Quote:
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 08:09 AM.
 
  


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 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 09:57 AM
running script on a remote host p_test Programming 5 10-02-2006 03:40 PM
Running a script as root with sudo without entering the user password kloss Linux - General 8 10-10-2005 11:39 AM
IR Remote ./ built in IRDA Laptop using lirc nandish Linux - Laptop and Netbook 0 07-09-2004 05:52 AM
Running a script in background on a remote machine TheCoffeeMug Linux - Networking 3 11-06-2003 10:08 AM


All times are GMT -5. The time now is 09:08 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration