I downloaded and tested that exec.dll and I could not get it to execute any unix commands with mIRC under wine. Maybe I'm using it wrong? by documentation its /exec <mirc command> <shell command> so i tried /exec echo uname -r but only got that text returned in my active window.

This solution I posted was meant for linux users who emulate mIRC with wine and would like to output the results of unix commands to the active window just like XChat. Thanks for the idea but it seems as if this dll is a windows-only thing.