Can the password be hidden on the process line when running JBoss ON CLI via a Cron job

Solution Verified - Updated -

Issue

  • Running a cron job that periodically executes "rhq-cli.sh -u username -p password_clear_text -s server JON_cli_script". Unfortunately ps displays the password for anyone to see. How can this be run from cron so that the password is not revealed?

Environment

  • Red Hat JBoss Operations Network (ON) 3.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content