The UNIX and Linux Forums  

Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 06:06 AM
Previous Command vskr72 Shell Programming and Scripting 1 04-19-2007 07:04 PM
Previous Command vskr72 UNIX for Advanced & Expert Users 0 04-19-2007 06:51 PM
Seeing previous command JackieChan UNIX for Dummies Questions & Answers 4 06-02-2006 09:35 AM
getting the previous command luft UNIX for Dummies Questions & Answers 5 08-18-2005 11:02 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-19-2007
vskr72 vskr72 is offline
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??
  #2 (permalink)  
Old 04-20-2007
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
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
  #3 (permalink)  
Old 04-20-2007
vskr72 vskr72 is offline
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:19 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0