title: How to invoke ioctl in shell script?
body: <p>I'm trying to execute an ioctl call on a system with only bash and primitive base utilities.</p>
  
  <p>Is there any way to execute arbitrary ioctl command (if the params are simply integers) to a specific device file in /dev in shell script, without writing C / perl / python programs? Something like
   "magic_ioctl /dev/console 30 1 2" which would calls "ioctl(open("/dev/console"), 30, 1, 2);".</p>