wildfly jboss cannot run in command prompt - jboss

Good day, I have issue on command for stop in command prompt.
In my command prompt after I key in the command: jboss-cli.bat --connect command=:shutdown
but the command prompt shows "the system cannot find the path specified".
I have try many ways to solve but still cannot solve this problem.
If successful actually will show:
"outcome" => "success",
"result" => undefined

Related

Run mongod in ZSH shell on Mac and and get command not found

I'm trying to run mongodin my terminal, but I'm getting a command not found. I've consulted other questions on this issue, including this these:
mac: command not found: mongod
Mongod: Command Not Found (OS X)
But the solutions have not worked for me.
Here is the full path of mongod:
/Users/danno/mongodb/bin/mongod
In .zshrc, I've tried two scripts, but neither one works:
Attempt 1 (from other Stack Overflow questions):
export PATH="$PATH:/usr/local/mongodb/bin"
Attempt 1 (My own guess):
export PATH="$PATH:/Users/danno/mongodb/bin/mongod"
I've restarted the terminal multiple times to no avail.
From the terminal, I'm trying to run:
mongod --dbpath=/Users/danno/mongodb-data
Getting a command not found while running that and also just with mongod alone.
Is something wrong with my pathing?
Maybe you forgot to do this step:
$ source ~/.bash_profile
It is better to put $PATH at the end.
I hope this will help. Additional options can be found in the post and the video.

second line on my system or python terminal now saying: “ -bash: zzzzz#: command not found“

I have been trying to pip install psycopg2 for some time now
I have just updated to python 3.7.4, before this problem started.
To set my path to a specific python version I used the code below.
nano .bash_profile
I thought that it would now be easy for my system to identify the path of the newly installed python, as to enable it to install psycopg2. Then the below started happening.
The second line of system terminal or python terminal is now always showing:
-bash: zzzzz#: command not found on my terminal
No matter what I type on my terminal, I am always getting command not found
This would mean you literally have "zzzzz" somewhere in the bash_profile. Bash is seeing "zzzzz" as just another command to run at startup like the rest of the profile script. As there is nothing in your PATH matching that string, bash reports the issue back to you.
Either remove the extra line from your .bash_profile. OR use a terribly wasteful work-around!
ln -s /bin/true /bin/zzzzz
This will create a symbolic link to the "true" binary (all it ever does is return true) from zzzzz. Now bash can find zzzzz and run it during start up, which does nothing. No more error and an absurd work around. You should fix the file.

Application's exit status is different than when application run by shell script

I have a confusion over the exit code of the application and the bash return value. For an eclipse application, a command line interface ran using eclipse returns the exit code as 1 (which is expected upon error). but when I run same command line using shell file and checks the return value with "echo $?" it always returns value as 0.
Application launched in command line mode in Eclipse :
Shell script :
command ="toolCli.exe -application arguments"
$command
echo $?
Output I get here is always 0, what's exactly the difference here?
$ com="echoo hi"
$ $com
No command 'echoo' found, did you mean:
Command 'echo' from package 'coreutils' (main)
echoo: command not found
$ echo $?
127
As you can see the exit value does work, I believe your issue might be to do with the environment, as in the eclipse environment be different from your bash environment?
From the java path, it looks like you have a 64 bit windows env and that eclipse might be using the standard windows command line, so I'm interested in how you are expecting it to behave as a bash env?
So maybe run the command under a windows command line and see if it fails, compare the java setup in both environments.

Why Nagios command not running from Thruk?

I have few Nagios commands, one of the command is showing "CRITICAL" status on Thruk with a message of "Could not execute command." Where as when i try to execute the same command from terminal, is shows correct status with correct message.
This is happening only for few commands. Please help me on it.

Cannot run TopShelf install remotely using psexec

I am trying to install a windows service on a remote machine. The service is implemented using TopShelf. I am running the following psexec command:
psexec \\remoteServerName "C:\PathToExe\TopShelfServiceName.exe" "install"
The error I am receiving is:
ERROR - The service terminated abnormally
Topshelf.HostConfigurationException: The service was not properly configured:
[Failure] Command Line An unknown command-line option was found: ARGUMENT: "install"
It appears that I am not running the TopShelf installer, rather executing my exe and passing "install" which is not a valid argument.
Any help is appreciated!
I don't think you need quotes around "install":
psexec \\remoteServerName "C:\PathToExe\TopShelfServiceName.exe" install