jorhelp / Ingram

网络摄像头漏洞扫描工具 | Webcam vulnerability scanning tool
GNU General Public License v3.0
1.7k stars 273 forks source link

OSError: [Errno 25] Inappropriate ioctl for device #38

Open Haoke98 opened 1 year ago

Haoke98 commented 1 year ago

When I use the script on the backgroud of CentOS7 via nohup, but it has occurred some errors like below:

nohup python3 run_ingram.py -i targets.txt -o 218 -t 1248 &

Traceback (most recent call last):
  File "/home/projects/Ingram/run_ingram.py", line 10, in <module>
    from Ingram.utils import config
  File "/home/projects/Ingram/Ingram/utils/__init__.py", line 4, in <module>
    from Ingram.utils.logo import logo
  File "/home/projects/Ingram/Ingram/utils/logo.py", line 351, in <module>
    logo = generate_logo()
  File "/home/projects/Ingram/Ingram/utils/logo.py", line 329, in generate_logo
    if font_width + icon_width + 2 < os.get_terminal_size()[0]:
OSError: [Errno 25] Inappropriate ioctl for device

but when i run it directly with console , everything is ok. How can i fix this and run it on backgroud correctly?