在AIX上使用脚本命令安装脚本

我的软件有一个安装脚本,我需要它在Linux和AIX上都可以运行。

On Linux I can use a wrapper myinstaller.ksh like this one:

#!/usr/bin/ksh
script -c myrealinstaller.ksh /var/log/myinstaller.log

But on AIX script does not support the -c option.

How can I run my myrealinstaller.ksh inside the forked shell created by script?