escputil 디버그 모드
빌드해보려니 이래저래 답이 안나와서
(gutenprint/gutenprint-intl-internal.h 요 파일이 포함된 devel 패키지 찾는데 실패..)
소스를 보다보니
오잉?
환경변수로 판별하는 부분을 발견!
static int stp_debug = 10; #define STP_DEBUG(x) do { if (stp_debug || getenv("STP_DEBUG")) x; } while (0) |
[링크 : https://www.ibm.com/support/knowledgecenter/ko/ssw_ibm_i_73/rtref/putenv.htm#putenv]
걍 귀찮으니 아래와 같이 디버그 메시지 출력하는데 성공!
$ export STP_DEBUG=1 $ escputil -c Gutenprint 5.2.10 18 May 2014 Escputil version 5.2.10, Copyright (C) 2000-2006 Robert Krawitz Escputil comes with ABSOLUTELY NO WARRANTY; for details type 'escputil -l' This is free software, and you are welcome to redistribute it under certain conditions; type 'escputil -l' for details. ***Initialize print command ***Initialize print command ***Start remote sequence ***Remote command: CH 02 00 00 00 ***End remote sequence Cleaning heads... ***Sending print command to lpr -l: *** 0: 1b @ 1b ( R 08 00 00 R E M O T E 1 C *** 16: H 02 00 00 00 1b 00 00 00 1b 00 0c 1b 00 1b 00 |
-l은 -o raw와 동일한 내용이라고 한다.