$ sudo ./scanir tv_on.ir
write file: tv_on.ir
scaning pin: 7 (wiringpi)
max keep time: 40(ms)
Infrared LED scanning start.
Pressed Ctrl+C, this program will exit.
Scanning has been done.
$ ls -l tv_on.ir
-rw-r--r-- 1 root root 476 Jun 26 07:56 tv_on.ir
$ sudo ./scanir tv_ch1.ir
write file: tv_ch1.ir
scaning pin: 7 (wiringpi)
max keep time: 40(ms)
Infrared LED scanning start.
Pressed Ctrl+C, this program will exit.
Scanning has been done.
$ ls -l tv_ch1.ir
-rw-r--r-- 1 root root 476 Jun 26 08:01 tv_ch1.ir