The CLI is non-interactive. i.e. you can just issue commands/operations via your scripts and it does "ask" for input when you run those commands. The input itself will be part of the command/operation that you run.
Is there some specific operation that you are looking at from the CLI?
the (first) need is the following:
- remove from server group
- redeploy (i know... deploy -f should avoid the remove/undeploy phase)
so i've prepared a conf file with:
- undeploy yyy
- deploy -f yyy etcetcetc
next in a sh script
- $JBADMIN < myconf_file
it works properly even if i have to fix some hardcodings
i was just wondering how to simplify the process removing in toto the conf file
1 of 1 people found this helpful
are you looking for the -c --file parameters?
it should be better than redirecting the stdin... meybe what's going around in my brain is something like sqlplus.... sqlplus <opt> @<file> but the --file should be fine