[Crash-utility] How to use scripts in crash?
Dave Anderson
anderson at redhat.com
Wed Mar 7 16:08:54 UTC 2012
----- Original Message -----
> Hi Dave,
>
> Do you have some guide doc that describe how to use the scripts in
> crash?
> Like the example, I want to print out current filesystems registered.
> I then need do following
> 1. using "p" to get "file_systems" symbol value
> 2. using "list" with command as "list -o file_system_type.next -s
> file_system_type.name,fs_flags <the file_systems symbol value>"
>
> So if the previous file_systems symbol value could be stored, and
> then I don't need to copy the "p" result to "list" command by hand,
> but could let script do such kind of thing.
>
> I also notice there is "sial" script support in crash, but that is
> too complex for me... I don't know how to start a basic usage with
> that... Is there any detailed doc that could help me from a start?
>
> Thanks,
> Lei
I can't help you with sial usage, but there is a ~1000-page README
file in crash-6.0.4/extensions/libsial. And perhaps the sample
ps.c and files.c sial scripts from the crash extensions page could
be used as templates for your requirements.
Dave
More information about the Crash-utility
mailing list