Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. slt589

    qbasic equivalent of shell eval

    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...
  2. slt589

    Test for numerals

    or simply let $x 2> /dev/null || print not numeric greater than 0
  3. slt589

    ps -ef¦ grep takes forever

    ps -fe | grep [o]ra_ avoids the 2nd pipe and associated process
  4. slt589

    ps -ef¦ grep takes forever

    BTW, how are you eliminating your grep process from the output ?
  5. slt589

    ps -ef¦ grep takes forever

    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...
  6. slt589

    ps -ef¦ grep takes forever

    How long does ps -fe take (ie. without the grep)
  7. slt589

    grep a sh_history

    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...
  8. slt589

    Enabling filename completion in csh/ksh?

    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.
  9. slt589

    Enabling filename completion in csh/ksh?

    set -o vi in ~/.kshrc sorry, can't help with csh.
  10. slt589

    Recognizing an interactive shell

    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...
  11. slt589

    comparing 2 files...

    sdiff -s file1 file2 Any good?
  12. slt589

    korn shell script in rc*.d

    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).
  13. slt589

    Server name on Logon

    vi /etc/default/telnetd Insert BANNER=""
  14. slt589

    change root shell

    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

Part and Inventory Search

Back
Top