스웨덴에서 드문날 ...

Sweden 2017.08.28 22:06


어제 오후에 바닷가에 섰다. 눈부신 하늘 그리고 바다. 아름다운 장면... 감사한 하루였다.





저작자 표시 비영리 변경 금지
신고

'Sweden' 카테고리의 다른 글

스웨덴에서 드문날 ...  (0) 2017.08.28
Swedish letter typing with English Keyboard for Mac  (0) 2015.10.06
posted by citadel

In the case, one want to create one pdf file from N pdf files, gs will save us to do this quickly.


For example,  one has the following pdf files :


1.pdf

2.pdf

....

10.pdf


And would like to have result.pdf from these pdf files, the following command will create the result.pdf file



gs -q -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=result.pdf -dBATCH file{1..10}.pdf


저작자 표시 비영리 변경 금지
신고
posted by citadel

Sometime, one needs to access all attribute on a device in order to create the udev rule for this device.



$ udevadm info --query=all  -n /dev/EtherCAT0 --attribute-walk

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/virtual/EtherCAT/EtherCAT0':
    KERNEL=="EtherCAT0"
    SUBSYSTEM=="EtherCAT"
    DRIVER==""



So, based on this output, we can create the udev rules in /etc/udev/rules.d/99-ethercat.rules  as follows:


KERNEL=="EtherCAT*", SUBSYSTEM=="EtherCAT", MODE="0666"


저작자 표시 비영리 변경 금지
신고
posted by citadel