ping on startup

Antworten
merovingi0
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 39
Registriert: Sa 8. Sep 2012, 12:31

ping on startup

#1

Beitrag von merovingi0 »

Hi, i need to run at every startup a ping (without end) to one or 2 ip....
how can i do?
Benutzeravatar
DboxOldie
Co-Admin
Co-Admin
Beiträge: 3750
Registriert: Sa 6. Aug 2011, 15:21

Re: ping on startup

#2

Beitrag von DboxOldie »

You can use the scripts in /var/etc : voremu.sh or vorneutrino.sh for putting there own commands.
The scripts will execute while starting.
MfG DboxOldie

Bild
Benutzeravatar
BPanther
Administrator
Administrator
Beiträge: 8683
Registriert: Do 11. Jan 2007, 00:06
Wohnort: Berlin
Kontaktdaten:

Re: ping on startup

#3

Beitrag von BPanther »

Why an endless ping? Maybe that slow down the network...
MfG BPanther
KEIN SUPPORT PER PN -> Bitte das Forum benutzen und ins [url=https://wiki.mbremer.de][b]Wiki[/b][/url] schauen.


Bild Bild
Thx udog für das Bild.
TV: Sony Bravia KDL-46HX755, Sony Bravia KDL-40W4500 (old)
Boxen: 7x UFS910 (128MB), UFS912, UFS913, AV700, AV7000, AV7500 (DVB-S/C/T), Edision Argus Pingulux, Vizyon820HD
merovingi0
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 39
Registriert: Sa 8. Sep 2012, 12:31

Re: ping on startup

#4

Beitrag von merovingi0 »

DboxOldie hat geschrieben:You can use the scripts in /var/etc : voremu.sh or vorneutrino.sh for putting there own commands.
The scripts will execute while starting.
how? I'm not a genius linux
BPanther hat geschrieben:Why an endless ping? Maybe that slow down the network...
i am connected with a 3g modem and I wanted to try to see if the vpn remained more stable
Benutzeravatar
DboxOldie
Co-Admin
Co-Admin
Beiträge: 3750
Registriert: Sa 6. Aug 2011, 15:21

Re: ping on startup

#5

Beitrag von DboxOldie »

Put this command in for example:

ping -w 10 google.com > /tmp/ping.txt &

and 10 packets were send and the result is print in /tmp/ping.txt.

ATTENTION !!!
without the -w param the command will run endless and after some time your box memory blows up !!!

AND !!!
use a unix - able editor for changes, otherwise the box will hang !!!!
MfG DboxOldie

Bild
Antworten