I am trying to invoke the crash utility through one of the linux startup scripts.
crash -i command.txt vmlinux vmcore

But this gives an error
/dev/tty no such device or address.

The tty is /dev/console


Once the linux box boots up and i login and use the same crash command as above it works correctly
The tty of the login shell is /dev/ttyS0

Any pointers on solving the error "/dev/tty no such device or address"


Thanks