Keyboard into daemonized Python script
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
How can I insert keyboard input into a daemonized process in Debian?
Background: (At a headless raspberry pi,) I want to run a python3 script at startup (via @reboot in crontab) which is waiting for a keyboard input to control another process. Auto-Login to a shell is enabled. The keyboard input is actually a NFC card which is read and gives a number as keyboard output.
Problem: The input is only processed in the current shell and does nothing. Can this be forwarded to the script/daemon?
debian raspberry-pi startup python3
add a comment |Â
up vote
0
down vote
favorite
How can I insert keyboard input into a daemonized process in Debian?
Background: (At a headless raspberry pi,) I want to run a python3 script at startup (via @reboot in crontab) which is waiting for a keyboard input to control another process. Auto-Login to a shell is enabled. The keyboard input is actually a NFC card which is read and gives a number as keyboard output.
Problem: The input is only processed in the current shell and does nothing. Can this be forwarded to the script/daemon?
debian raspberry-pi startup python3
Maybe the answer to this Stackoverflow question can be of some help.
â Johan Myréen
Oct 1 '17 at 19:02
It could help because it sounds very similar to my problem, if only I could understand what I would need to do ;) Guess I need more reading on the subject.
â Coxeroni
Oct 1 '17 at 19:33
I came as far as loading a device and grabbing exclusive access with Python's. evdev. How do I actually read an input from it then?
â Coxeroni
Oct 1 '17 at 21:37
Here.
â Johan Myréen
Oct 2 '17 at 1:21
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
How can I insert keyboard input into a daemonized process in Debian?
Background: (At a headless raspberry pi,) I want to run a python3 script at startup (via @reboot in crontab) which is waiting for a keyboard input to control another process. Auto-Login to a shell is enabled. The keyboard input is actually a NFC card which is read and gives a number as keyboard output.
Problem: The input is only processed in the current shell and does nothing. Can this be forwarded to the script/daemon?
debian raspberry-pi startup python3
How can I insert keyboard input into a daemonized process in Debian?
Background: (At a headless raspberry pi,) I want to run a python3 script at startup (via @reboot in crontab) which is waiting for a keyboard input to control another process. Auto-Login to a shell is enabled. The keyboard input is actually a NFC card which is read and gives a number as keyboard output.
Problem: The input is only processed in the current shell and does nothing. Can this be forwarded to the script/daemon?
debian raspberry-pi startup python3
debian raspberry-pi startup python3
asked Oct 1 '17 at 17:59
Coxeroni
12
12
Maybe the answer to this Stackoverflow question can be of some help.
â Johan Myréen
Oct 1 '17 at 19:02
It could help because it sounds very similar to my problem, if only I could understand what I would need to do ;) Guess I need more reading on the subject.
â Coxeroni
Oct 1 '17 at 19:33
I came as far as loading a device and grabbing exclusive access with Python's. evdev. How do I actually read an input from it then?
â Coxeroni
Oct 1 '17 at 21:37
Here.
â Johan Myréen
Oct 2 '17 at 1:21
add a comment |Â
Maybe the answer to this Stackoverflow question can be of some help.
â Johan Myréen
Oct 1 '17 at 19:02
It could help because it sounds very similar to my problem, if only I could understand what I would need to do ;) Guess I need more reading on the subject.
â Coxeroni
Oct 1 '17 at 19:33
I came as far as loading a device and grabbing exclusive access with Python's. evdev. How do I actually read an input from it then?
â Coxeroni
Oct 1 '17 at 21:37
Here.
â Johan Myréen
Oct 2 '17 at 1:21
Maybe the answer to this Stackoverflow question can be of some help.
â Johan Myréen
Oct 1 '17 at 19:02
Maybe the answer to this Stackoverflow question can be of some help.
â Johan Myréen
Oct 1 '17 at 19:02
It could help because it sounds very similar to my problem, if only I could understand what I would need to do ;) Guess I need more reading on the subject.
â Coxeroni
Oct 1 '17 at 19:33
It could help because it sounds very similar to my problem, if only I could understand what I would need to do ;) Guess I need more reading on the subject.
â Coxeroni
Oct 1 '17 at 19:33
I came as far as loading a device and grabbing exclusive access with Python's. evdev. How do I actually read an input from it then?
â Coxeroni
Oct 1 '17 at 21:37
I came as far as loading a device and grabbing exclusive access with Python's. evdev. How do I actually read an input from it then?
â Coxeroni
Oct 1 '17 at 21:37
Here.
â Johan Myréen
Oct 2 '17 at 1:21
Here.
â Johan Myréen
Oct 2 '17 at 1:21
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f395501%2fkeyboard-into-daemonized-python-script%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Maybe the answer to this Stackoverflow question can be of some help.
â Johan Myréen
Oct 1 '17 at 19:02
It could help because it sounds very similar to my problem, if only I could understand what I would need to do ;) Guess I need more reading on the subject.
â Coxeroni
Oct 1 '17 at 19:33
I came as far as loading a device and grabbing exclusive access with Python's. evdev. How do I actually read an input from it then?
â Coxeroni
Oct 1 '17 at 21:37
Here.
â Johan Myréen
Oct 2 '17 at 1:21