The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Previous command new2ss HP-UX 5 02-14-2008 02:06 AM
Previous Command vskr72 Shell Programming and Scripting 1 04-19-2007 04:04 PM
Previous Command vskr72 UNIX for Advanced & Expert Users 0 04-19-2007 03:51 PM
Seeing previous command JackieChan UNIX for Dummies Questions & Answers 4 06-02-2006 06:35 AM
getting the previous command luft UNIX for Dummies Questions & Answers 5 08-18-2005 08:02 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-19-2007
Registered User
 

Join Date: Aug 2005
Posts: 11
Previous Command

We have a Solaris Server and I am acessing it through telnet to run various commands for my data validation like GREP, SED, AWK etc.

My requirement is how do i use the previous command that was executed. I tried the option 'ESC' and then 'k'. It displays the characters like '^[[A' etc. How do I get my previous command in this case. Pls note I am using Microsoft Telnet to access the server.

I use to get it previously when I was working on AIX Server. But, I was using a unix client called 'X-Thin Pro'. Is it not possible with Telnet??
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-19-2007
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,325
Check which shell you are using. Use 'echo $0' or 'echo $SHELL' commands for that. If your shell is sh, then the ESC+whatever is not supported. Run 'ksh -o vi' to get the functionality that you want. If the shell is ksh, then it isn't running in vi mode. Run 'set -o vi' to get it going.

Cheers
Reply With Quote
  #3 (permalink)  
Old 04-20-2007
Registered User
 

Join Date: Aug 2005
Posts: 11
It worked.

Hi - Thats great. It worked.

Thx.


Quote:
Originally Posted by blowtorch
Check which shell you are using. Use 'echo $0' or 'echo $SHELL' commands for that. If your shell is sh, then the ESC+whatever is not supported. Run 'ksh -o vi' to get the functionality that you want. If the shell is ksh, then it isn't running in vi mode. Run 'set -o vi' to get it going.

Cheers
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:56 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0