On Feb 16 11:12:37, Per-Erik Persson wrote:
> If I pass options to a script or to something similar like this:
> 
> some_sql_stuff.sh $username $password $database
> 
> The content of the variables can be viewed with top or ps while the 
> script is running.
> If I don't remember completely wrong from the bad old days the text that 
> was displayed was actually the variablename and not its content.

Hardly. The content is put in place of the variable by the shell
that you used to run the command.

> Or do I have to do some tricks to hide the text that I don't remeber?

You remember it.

Or, you put that in a config file that can only be read by
some_sql_stuff.sh and you. (Is that a trick?)

> I do know that the proper solution would be not to pass the options at 
> all but some pieces of software insists on having the credentials passed 
> as strings to stdin.

... which is not the same thing as passing them
as commandline arguments.

        Jan

Reply via email to