Bug 728304 - CLI: Make it run from current dir (instead of CLI's home)
Summary: CLI: Make it run from current dir (instead of CLI's home)
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: CLI
Version: 3.0.1
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-04 16:18 UTC by Ondřej Žižka
Modified: 2022-03-31 04:28 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Ondřej Žižka 2011-08-04 16:18:14 UTC
STR:

  mkdir -p ~/cli-scripts
  cd ~/cli-scripts
  $RHQ_CLI_HOME/bin/rhq-cli.sh -c "java.lang.System.getProperty('user.dir')"
     >>> /home/ondra/work/JON/rhq-cli

It would be more logical/useful if the client started in the CWD.
There's a way:

  export RHQ_CLI_JAVA_OPTS=-Duser.dir=`echo ~/cli-scripts`
  $RHQ_CLI_HOME/bin/rhq-cli.sh -c "java.lang.System.getProperty('user.dir')"
     >>> /home/ondra/cli-scripts

But it would be nice to have it out of the box.

Comment 1 Ondřej Žižka 2011-08-04 16:19:24 UTC
BTW there's a bit confusing comment in rhq-client.sh:

# Prepare the command line arguments passed to the RHQ Agent
(should be
# Prepare the command line arguments passed to the RHQ CLI
)


Note You need to log in before you can comment on or make changes to this bug.