Gebruik -s en -N :
> id=`mysql -uroot -ppwd -s -N -e "SELECT id FROM nagios.host WHERE name='$host'"`
> echo $id
0
Uit de handleiding :
BEWERKEN
Lijkt op -ss werkt ook en is veel gemakkelijker te onthouden.
Gebruik -s en -N :
> id=`mysql -uroot -ppwd -s -N -e "SELECT id FROM nagios.host WHERE name='$host'"`
> echo $id
0
Uit de handleiding :
BEWERKEN
Lijkt op -ss werkt ook en is veel gemakkelijker te onthouden.