ivorytux
ivorytux

Reputation: 359

Is there a difference in how && and || are used between Debian and Ubuntu

The following runs fine from Debian squeeze, but in Ubuntu 12.04 always returns "Aggregate instance is DOWN" regardless of whether the instance is up or down.

wget -O/dev/null -q https://myhost:8443/inst/openid_login.html && echo Aggregate instance is UP || echo Aggregate instance is DOWN

I wrote and tested the script in Debian, but need it to work on Ubuntu also. I'm assuming there's some simple substitute I need to make but not sure what

Upvotes: 1

Views: 82

Answers (1)

ivorytux
ivorytux

Reputation: 359

Solved it by specifying SSL verion, like so:

wget -O/dev/null --secure-protocol=sslv3 https://myHost:8443/inst/openid_login.html && echo Aggregate instance is UP || echo Aggregate instance is DOWN

Upvotes: 2

Related Questions