Question: I just wondering why I can't reOrder my columns from ajax callback.

```
var ranks = '0,' + callback.columns // 0,1,4,2,5,3
table.colReorder.order( [ ranks ], true );

```

I got this warning.

> 
> DataTables warning: table id=example23 - ColReorder - array reorder does not match known number of columns. Skipping.
> 
> 
> 

But When I tried to do it like this. It's working.

```
table.colReorder.order( [ 0,1,4,2,5,3 ], true );

```

DataTables init:

```
var table = $('#example').DataTable({
    ....
    colReorder: true
});

```

Answer: 
Could you please try following, not tested though should work but.

```
for element in "${array[@]}"
do
 resp=$(curl -v http://"$element":8888)
 if grep -q "Connected" "$resp"
 then
      echo resp
 fi
done

```

OR

```
for element in "${array[@]}"
do
 curl http://"$element":8888 -s -f -o /dev/null
 if [[ $? -eq 0 ]]
 then
      echo "url $element is working."
 fi
done

```
```
#!/bin/bash

for element in "${array[@]}"; do
  if curl -m1 -s "http://$element:8888"; then
    echo "'$element' connected" && break
  fi
done

```