Re: Hiding password from ps - Need better solution

From: Martin Purbrook <martin_at_kbss.bt.co.uk>
Date: 1996/04/10
Message-ID: <316B9820.41C67EA6_at_kbss.bt.co.uk>#1/1


badri wrote:
>
> Hi:
>
> If my command is
>
> sqlplus username/password _at_command arguments
>
> I want ps (or ps -ef) to show
>
> sqlplus _at_command arguments
>
> Any ideas?
>

Badri,

Why not try a 'here' document:

#!/bin/sh

sqlplus << 'END_OF_SCRIPT'
username
password
_at_command arguments
exit
'END_OF_SCRIPT'

-- 

Martin Purbrook      (MP) +44 1473 605208
martin_at_kbss.bt.co.uk (FAX)+44 1473 622451
Received on Wed Apr 10 1996 - 00:00:00 CEST

Original text of this message