We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I don't know if it is bug or enhancement but
This works
if ( { ping -c 1 -w 1 192.168.0.1 } ) then echo "LAN is up" endif
This does not works (works but redirection does not)
if ( { ping -c 1 -w 1 192.168.0.1 >& /dev/null } ) then echo "LAN is up" endif
The text was updated successfully, but these errors were encountered:
Alternative approaches:
ping -c 1 -w 1 192.168.0.1 >& /dev/null && echo "LAN is up"
or
ping -c 1 -w 1 192.168.0.1 >& /dev/null if ( $? == 0 ) then echo "LAN is up" endif
Sorry, something went wrong.
No branches or pull requests
I don't know if it is bug or enhancement but
This works
This does not works (works but redirection does not)
The text was updated successfully, but these errors were encountered: