run bash command and see if command was successfull


Hello,
If there is a way to run bash commands in PhpStorm 8.0.3 and see results, as I want to see if command was successfull?

Thanks!

5 comments
Comment actions Permalink

Do you mean in Terminal, or via code?
If in Terminal, you can use "echo $?" to get the last command error code.

0
Comment actions Permalink

I mean run in bash commands inside PhpStorm

0
Comment actions Permalink

What OS do you run under?

0
Comment actions Permalink

Then just open the Terminal tool window (Alt+F12 by default), run the command from there, and use "echo $?" to get its error code.

0

Please sign in to leave a comment.