why is this command not working?

Hi all,
Am trying to figure out a way to display error in the boot script...
i tried ,
command 2>/dev/msglog
but that is not enough for me.
so i tried using this

exec < /dev/console > /dev/console 2>&1
But it doesnt work at all...
can anyone tell me if am making a mistake in the syntax?
this is included in the script where the mounting of various files from the cdrom happens (am manipulating a live-cd ,opensolaris distro)

Thanks

I think there could be no. of reason.

  1. Don't try to write in /dev
    Try command 2>/tmp/msglog

  2. Don't give 2
    Try command >/tmp/msglog

  3. Write a script and very first line give
    set -x
    then execute as
    script >/tmp/msglog 2>&1

Best of luck
Sumit