#! /bin/ksh

#
# Name        : ${HOME}/bin/hideCmdLine.ksh
#
# Version     : 1.0
#
# Author      : Gerard van Wageningen
#
# Description : Hide password on the command line
#
# 1.0   First Version
#


if (( $# == 0 )) 
then
  skip=' '
  # Skip the first 2046 (AIX) characters so that the command line 
  # arguments are not displayed by the ps command.
  while (( ${#skip} < 4092 )) # Linux
  do
    skip="${skip}${skip}"
  done

  hideCmdLine.ksh "${skip}" "password" &
  sleep 3
  ps auxwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww | grep $!
else
  sleep 300
fi


############# EOF #############
