| Summary: | CLI: Make it run from current dir (instead of CLI's home) | ||
|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Ondřej Žižka <ozizka> |
| Component: | CLI | Assignee: | Nobody <nobody> |
| Status: | NEW --- | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.0.1 | CC: | hrupp |
| Target Milestone: | --- | Keywords: | FutureFeature |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
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 ) |
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.