Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-877

Redirection (<, <<) do not work in CLI

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Blocker Blocker
    • 2.0.3.Final
    • None
    • CLI
    • None

      Description of problem:
      Redirection (<, <<) do not work in CLI

      How reproducible:
      Always

      Steps to Reproduce:

      1. echo ":shutdown" > c
      2. ./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:

      1. cd bin
      2. ./standalone.sh &
      3. ./jboss-cli.sh -c command=/core-service=management/security-realm=ApplicationRealm/authentication=local:remove
      4. ./jboss-cli.sh -c command=/core-service=management/security-realm=ManagementRealm/authentication=local:remove
      5. ./jboss-cli.sh -c command=:shutdown
      6. ./add-user.sh -u bob -p admin123$ -s
      7. ./standalone.sh &
      8. ./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):

              gonthim Joe Wertz (Inactive)
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: