Pular para o conteúdo

isOnline

Testa se a estação está online e avisa usando a libnotify.
Andreas Zaia andreaszaia
Hits: 4.924 Categoria: Shell Script Subcategoria: Miscelânea
  • Download
  • Nova versão
  • Indicar
  • Denunciar

Descrição

Testa se a estação está online e avisa usando a libnotify.
Download isOnLine.sh Enviar nova versão

Esconder código-fonte

#!/bin/bash

############################
#Autor: Andreas Zaia
#Email: andreaszaia@gmail.com
#Ver: 1.2
#Dependencias: kdialog;libnotify;
#Novidades:
#  Notificações via libnotfy
############################


## pedir host
HOST=`kdialog --title "isOnline" --inputbox "Ip/host remoto para teste" "www.googl\
e.com"`

if ping -c 3 $HOST <<<” 1>>/dev/null 2>>/dev/null ; then
#    kdialog --title "isOnline" --passivepopup "Conectado!!
#    Host testado: $HOST" 10 &>/dev/null &
     notify-send -u low -i /usr/share/icons/hicolor/scalable/apps/apport.svg "Cone\
ctado" "testato o Host : "$HOST
else
#    kdialog --title "isOnline" --passivepopup "Conectado!!
#    Host testado: $HOST" 10 &>/dev/null &
     notify-send -u low -i /usr/share/icons/hicolor/scalable/apps/apport.svg "Não \
Conectado" "testato o Host : "$HOST
fi


######### Versão texto############
## Text mode
#HOST=www.google.com
#PORTA=80
#if [ $# != 0 ]; then
# echo “utilize: $0”
# exit 0
#else
# if ping -c 3 $HOST <<<” 1>>/dev/null 2>>/dev/null ; then
#   echo "Connected!!…"
#  else
#   echo "Not Connected!!…"
#   fi
#fi

Install/Update ClamAV

Montando compartilhamentos windows

Baixar recursivamente links de um arquivo texto

modem.sh

Gerenciador de contas de usuários

Nenhum comentário foi encontrado.

Contribuir com comentário

Entre na sua conta para comentar.