08-30-2017
I'm afraid that with /bin/sh you're out of luck: It doesn't offer the $_ special parameter (according to its man page) nor the history command that e.g. bash provides.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello all
I'm on SunOS5.9 and I'm trying to make the arrow keys work as in DOS ..get the previous command , etc .. I searched this site and got an answer. I pasted the following code to my .kshrc file in my home directory...It still does not seem to work ...Am I missing anything here ?
I'm... (5 Replies)
Discussion started by: luft
5 Replies
2. UNIX for Dummies Questions & Answers
Hello,
I am new to this forum and relatively new to unix, but hope to become an expert soon!
My question is: How can I find out the execution time of a command that has already completed execution? More specifically, I launched a Python script to populate a PostgreSQL database on Suse... (2 Replies)
Discussion started by: marina
2 Replies
3. UNIX for Dummies Questions & Answers
Guys,
In work we have just gotten a new HP 9000 server and I'm trying to set it up so that if I press <Up arrow> key I can see the command I typed in last(and press enter to run it again).
Can anyone advise how to set this up. One friend suggested I touch a file called .toucheditXXXX (I cant... (4 Replies)
Discussion started by: JackieChan
4 Replies
4. UNIX for Advanced & Expert Users
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... (0 Replies)
Discussion started by: vskr72
0 Replies
5. Shell Programming and Scripting
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... (1 Reply)
Discussion started by: vskr72
1 Replies
6. UNIX for Dummies Questions & Answers
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... (2 Replies)
Discussion started by: vskr72
2 Replies
7. HP-UX
Hi All,
I would like to retrieve the whole command that got executed for a running process rather than a truncated string, as a result of running ps -ef on HP-UX.
Please help.
TIA (1 Reply)
Discussion started by: trocadero
1 Replies
8. HP-UX
Hi,
i would like to retrieve (only retrieve, not execute) a previous command which i executed on the command prompt. I tried the 'up arrow' key, but its not working. Instead,it showed me some funny characters. I searched around and i found the way to do it was using the way below. Several... (5 Replies)
Discussion started by: new2ss
5 Replies
9. UNIX for Advanced & Expert Users
hi
The "ps" command shows the command line arguments of running processes:
$ /bin/ps -o pid,args -e
....
26031 pico /tmp/crontab2KaG1Y
596 /usr/lib/sendmail -bd -q15m
9955 xterm -n 1 -sb -sl 800 -g 80+70+70
2627 /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd -a 1691
....
I... (2 Replies)
Discussion started by: Andrewkl
2 Replies
10. Shell Programming and Scripting
Hi
I am trying to retrieve values from a tab-delimited file.I am using
while read record
value=`echo $record | cut -f12`
done
Where 12 is the column no i want retieve and record is one line of the file.
But it is returning the full record.
Plz help (4 Replies)
Discussion started by: akashtcs
4 Replies