On Wed, Jan 10, 2007 at 10:16:02PM +0900, Ken'ichi Ohmichi wrote: > > Hi. > > 2007/01/10 09:59:49 +0530, Vivek Goyal <[EMAIL PROTECTED]> wrote: > >Still don't understand why do I need -R? I think it comes from that fact > >that mkdumpfile needs a way to recognize whether input file is vmcore > >or its that intermediate file generated by mkdumpfile. > > Do you think that makedumpfile should create dumpfile from STDIN without > any option like the following? > > # makedumpfile dumpfile < dumpfile.tmp > > I want to add the option of representing "create dumpfile from STDIN" clearly. > I think the following commandline. > > * makedumpfile outputs a dump data of "flattening format (intermediate)" to > STDOUT. > # makedumpfile [-O | --to-stdout] /proc/vmcore > > * makedumpfile creates a normal dumpfile from STDIN of "flattening format". > # makedumpfile [-I | --from-stdin] dumpfile >
If you want to create an explicit option for taking input from stdin, then '-' might be a good choice. tar utility already uses it. So you should be able to use following. # makedumpfile -O -cd31 -x vmlinux /proc/vmcore | ssh [EMAIL PROTECTED] "makedumpfile - dumpfile" or cat dumpfile.tmp > makedumpfile - dumpfile or makedumpfile - dumpfile < dumpfile.tmp Thanks Vivek _______________________________________________ fastboot mailing list [email protected] https://lists.osdl.org/mailman/listinfo/fastboot
