FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Redhat > Crash Utility

 
 
LinkBack Thread Tools
 
Old 07-14-2008, 04:16 PM
"SUJIT V"
 
Default /dev/tty no such device or address

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



--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
 
Old 07-14-2008, 06:17 PM
Dave Anderson
 
Default /dev/tty no such device or address

SUJIT V wrote:



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




I see what you're seeing running from /etc/rc.local,
where there's no /dev/tty file available to commands
run from startup scripts.

Try this -- which works for me:

crash vmlinux vmcore < command.txt

Dave

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
 
Old 07-15-2008, 12:13 AM
James Washer
 
Default /dev/tty no such device or address

As a followup..

If I'm running crash, and now I want to 'source' a file of commands..
(i.e. like the shells "." command).. is there anyway to do this?

- jim


On Mon, 2008-07-14 at 14:17 -0400, Dave Anderson wrote:
> SUJIT V wrote:
> >
> >
> > 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
> >
> >
>
> I see what you're seeing running from /etc/rc.local,
> where there's no /dev/tty file available to commands
> run from startup scripts.
>
> Try this -- which works for me:
>
> crash vmlinux vmcore < command.txt
>
> Dave
>
> --
> Crash-utility mailing list
> Crash-utility@redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility
>

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
 
Old 07-15-2008, 12:27 PM
Dave Anderson
 
Default /dev/tty no such device or address

James Washer wrote:

As a followup..

If I'm running crash, and now I want to 'source' a file of commands..
(i.e. like the shells "." command).. is there anyway to do this?

- jim


Sure -- the directions are part of "help input", and it's just a
matter of input redirection:

crash> < yourfile
...

Dave





On Mon, 2008-07-14 at 14:17 -0400, Dave Anderson wrote:

SUJIT V wrote:


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



I see what you're seeing running from /etc/rc.local,
where there's no /dev/tty file available to commands
run from startup scripts.

Try this -- which works for me:

crash vmlinux vmcore < command.txt

Dave

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility



--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility


--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
 
Old 07-15-2008, 11:01 PM
"SUJIT V"
 
Default /dev/tty no such device or address

worked for me.

Thanks


On Mon, Jul 14, 2008 at 11:17 AM, Dave Anderson <anderson@redhat.com> wrote:

SUJIT V wrote:






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








I see what you're seeing running from /etc/rc.local,

where there's no /dev/tty file available to commands

run from startup scripts.



Try this -- which works for me:



*crash vmlinux vmcore < command.txt



Dave



--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
 

Thread Tools




All times are GMT. The time now is 08:06 PM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org