-
Enhancement
-
Resolution: Done
-
Blocker
-
None
-
None
Description of problem:
Redirection (<, <<) do not work in CLI
How reproducible:
Always
Steps to Reproduce:
- echo ":shutdown" > c
- ./jboss-cli.sh -c < c
Actual results:
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
Expected results:
":shutdown" command will be executed
Another steps to reproduce:
- cd bin
- ./standalone.sh &
- ./jboss-cli.sh -c command=/core-service=management/security-realm=ApplicationRealm/authentication=local:remove
- ./jboss-cli.sh -c command=/core-service=management/security-realm=ManagementRealm/authentication=local:remove
- ./jboss-cli.sh -c command=:shutdown
- ./add-user.sh -u bob -p admin123$ -s
- ./standalone.sh &
./jboss-cli.sh -c <<EOF bob admin123$ batch :shutdown run-batch EOF
Actual results:
Unexpected command 'bob'. Type 'help --commands' for the list of supported commands.
Expected results:
":shutdown" command will be executed
Additional info:
Regression against 6.4.0
Regression against 7.0.0.DR7
Bugzilla from 6x
Customer cases (EAP 6x):
- clones
-
JBEAP-670 Redirection (<, <<) do not work in CLI
- Closed