Trying to do the equivalent to this shell fragment
set -A MyArray1 q w e r t y
set -A MyArray2 a s d f g h
x=1
eval print \${MyArray${x}}
If you're familiar with unix, the first parse (eval) expands ${x} to 1, and removes the
The second parse expands to ${MyArray1} and prints q w e r t y...
6 seconds to print 1st line seems a long time.
Once it starts printing, does it stall?
Does aix have vmstat, or top? (or something else)
Start vmstat or top before you run ps.
Observe behaviour when ps starts.
Look for excessive paging, context switches, run queue
How long does it take for...
can you cat the file and see normal text?
There are special characters in the file, but your command history is in plain text. (well, it is on every flavour of *nix I've worked on)
Maybe the string you're grepping for doesn't exist. Aged out, maybe? What's your HISTSIZE set to ?
I'm assuming...
2 different things.
The vi you use for command line recall and edit is built into the shell (/bin/ksh). At the command prompt, when you type esc - , you're in the inbuilt vi.
To invoke /bin/vi by typing vi at the command prompt, you need /bin in your $PATH.
From the ksh man page...
Invocation
If the shell is invoked by exec(2), and the first character
of argument zero ($0) is -, then the shell is assumed to be
a login shell and commands are read from /etc/profile and
then from either .profile in the current...
yep that would work, but an OS upgrade might re-install the original script.
Personally, I would leave the rc3 as is, and get the S?? startup script call the korn shell script.
BTW, the S?? should be a sym link to the script in /etc/init.d (but you probably already knew that).
revert to root's original .profile
add the following line:-
ENV=~/.kshrc
in .profile
create .kshrc in root's home directory
put all the ksh specific commands in .kshrc
login as root
ksh
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.