我正在尝试在只有bash和原始基础实用程序的系统上执行ioctl调用.
有没有办法在shell脚本中的/ dev中执行任意ioctl命令(如果params只是整数),而不编写C/perl/python程序?像"magic_ioctl/dev/console 30 1 2"这样的东西会调用"ioctl(open("/ dev/console"),30,1,2);".
bash shell ioctl
bash ×1
ioctl ×1
shell ×1