Just wrap the command in a #! /bin/sh script (make executable), put it in the init.d directory, make a symbolic link to it at whatever runlevel (rc#.d) directory on the machine and view the README in the /etc/rc#.d directory for the naming convention, at least there is in Ubu. As far as what the Unsupported IOCTL is (or if it's causing a major problem) you'd have to do some Googling. :^) WINEDEBUG=+comm wine test_wrapper.exe 5000