Re: [DNG] running script on eudev event

2018-08-08 Thread Antonio Trkdz.tab
Hi All, First of all, thank you for your help. ACTION=="add", RUN+="/bin/sh -c 'echo "message" >> log_file > This works, thanks. However, I have found a different solution to the problem, and I would like to share it with you, in case you are interested. Instead of relying on eudev to do all t

Re: [DNG] running script on eudev event

2018-08-06 Thread Antonio Trkdz.tab
Hi, Thanks for your help. > How are you running the echo command from the udev rule? ATTRS{idVendor}=="", ATTRS{idProduct}=="", ACTION=="add", RUN+="/bin/echo 'message' >> /full/path_to/log_file.log" they do not have the DISPLAY variable initialized and do not have the > appropriate ses

Re: [DNG] running script on eudev event

2018-08-06 Thread aitor_czr
Hi Anthony, El 06/08/18 a las 11:45, Antony Stone escribió: On Monday 06 August 2018 at 11:42:58, aitor_czr wrote: El 06/08/18 a las 10:24, aitor_czr escribió: |ACTION=="add", RUN+="/bin/sh -c 'echo "message" >> log_file| || ||ACTION=="add", RUN+="/bin/sh -c 'echo "message" >> log_file |'"

Re: [DNG] running script on eudev event

2018-08-06 Thread Antony Stone
On Monday 06 August 2018 at 11:42:58, aitor_czr wrote: > El 06/08/18 a las 10:24, aitor_czr escribió: > > |ACTION=="add", RUN+="/bin/sh -c 'echo "message" >> log_file| > || > ||ACTION=="add", RUN+="/bin/sh -c 'echo "message" >> log_file |'" > > The line was incomplete :) I am very confused by th

Re: [DNG] running script on eudev event

2018-08-06 Thread aitor_czr
El 06/08/18 a las 10:24, aitor_czr escribió: |ACTION=="add", RUN+="/bin/sh -c 'echo "message" >> log_file| ||ACTION=="add", RUN+="/bin/sh -c 'echo "message" >> log_file |'" The line was incomplete :) | ___ Dng mailing list Dng@lists.dyne.org https

Re: [DNG] running script on eudev event

2018-08-06 Thread aitor_czr
Hi, El 05/08/18 a las 22:03, Alessandro Selli escribió: n 05/08/2018 at 20:44, Antony Stone wrote: On Sunday 05 August 2018 at 20:24:30, Alessandro Selli wrote: On 05/08/2018 at 16:29, Antonio Trkdz.tab wrote: Dear All, I am struggling to understand how to run a script automatically upon p

Re: [DNG] running script on eudev event

2018-08-05 Thread Alessandro Selli
On 05/08/2018 at 20:44, Antony Stone wrote: > On Sunday 05 August 2018 at 20:24:30, Alessandro Selli wrote: > >> On 05/08/2018 at 16:29, Antonio Trkdz.tab wrote: >>> Dear All, >>> >>> I am struggling to understand how to run a script automatically upon >>> plugging a USB keyboard. >>> I know this

Re: [DNG] running script on eudev event

2018-08-05 Thread Antony Stone
On Sunday 05 August 2018 at 20:24:30, Alessandro Selli wrote: > On 05/08/2018 at 16:29, Antonio Trkdz.tab wrote: > > Dear All, > > > > I am struggling to understand how to run a script automatically upon > > plugging a USB keyboard. > > I know this issue is not directly related to Devuan, but I w

Re: [DNG] running script on eudev event

2018-08-05 Thread Alessandro Selli
On 05/08/2018 at 16:29, Antonio Trkdz.tab wrote: > Dear All, > > I am struggling to understand how to run a script automatically upon > plugging a USB keyboard. > I know this issue is not directly related to Devuan, but I will > certainly appreciate a little help. > > I created the following rule a

Re: [DNG] running script on eudev event

2018-08-05 Thread Antony Stone
On Sunday 05 August 2018 at 16:29:05, Antonio Trkdz.tab wrote: > I created the following rule as /etc/udev/rules.d/90-usb-keyboard.rules: > ATTRS{idVendor}=="", ATTRS{idProduct}=="", ACTION=="add", > RUN+="/full/path_to/restore_space_as_modifier.sh" > and reloaded eudev (I am on ASCII).

[DNG] running script on eudev event

2018-08-05 Thread Antonio Trkdz.tab
Dear All, I am struggling to understand how to run a script automatically upon plugging a USB keyboard. I know this issue is not directly related to Devuan, but I will certainly appreciate a little help. I created the following rule as /etc/udev/rules.d/90-usb-keyboard.rules: ATTRS{idVendor}=="X