On Thursday 06 November 2003 16:36, alben benavente alteza wrote:
> I've tried that. The thing is when I issue that command in the shell, it
> work but when it is run on a script, it does not work. the file is empty
> all the time. Makes no sense to me that's why I'm looking to the file the
> kernel store to.
>
> Is there a way to use the history command on a script?

#!/usr/bin/bash
history -n
history

will show you the history.  beyond that, it's going to be up to you
to figure out what else you want to do.  

uh, what *are* you trying to do?  why are you trying to manipulate the 
history in a shell script?

tiger
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to