467,104 Members | 952 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,104 developers. It's quick & easy.

enable up key from keyboard to get last entered command during my script

Hi, I have a script that ask several information to users and stores it in vars.

I was wondering if it's possible to get the last information inserted by pressing the "up" key as we do in "normal" shell, while not running any script.

Did I make my self clear?

Does anyone know how to do this?


Sep 26 '08 #1
  • viewed: 1588
2 Replies
Hi, I dont understand exatly your problem

You want add a subrutin to key "up", beetwen your script run and the read dont blocked the script ?
Sep 27 '08 #2
Expert 100+
First off have you attempted this your self?

second there is a way i know of that you can get it but please attempt doing this your self then we will help you,

also it depends on the OS you are running from what i think you are using try:

Expand|Select|Wrap|Line Numbers
  1. history | less
the history command in *nix.

also posting your script may help users understand what you want.
Sep 28 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by richard | last post: by
2 posts views Thread by Michael Bendzick | last post: by
6 posts views Thread by JonQuark | last post: by
7 posts views Thread by Don Riesbeck Jr. | last post: by
2 posts views Thread by rn5a@rediffmail.com | last post: by
2 posts views Thread by Stefan Kuhr | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.