Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo,

bin ein absoluter perl nOOB und ich bin gerade dabei ein paar Sachen testweise zu machen. Hab erst angefangen, also habt nachsicht mit mir;) .

Ich wollte mir ein kleines Script schreiben, das ich über die eingabe aufforderung aufrufen kann und das mich dann nach der zu pingenden IP fragt, und diese IP dan pingt (fragt nicht wozu ich das brauch, is nur ne Übung).

Hier mal meine Zeilchen:

print "dummabua`s ping.\n\n";

$ip = "";

print "Bitte geben Sie die IP ein, die gepingt werden soll: ";

chomp ($ip = <STDIN>);

exec (ping IP $ip);

Wenn ich das ausführe, kann ich die IP zwar eingeben, aber er sagt mir dann:

"Can`t locate object methode "ping" via package "IP" (perhaps you forgot to load "IP"?) at c:/perl/bin/autoping.pl line 7...

Ich werd da aber nicht schlau daraus. Was hab ich flasch gemacht oder vergessen, oder hab ich einen total flaschen Ansatz?

Wie gesagt, bin perl Anfänger:beagolisc

hi,

ping is doch ein system befehl von windows, oder ?

müsste das nicht so ungefähr aussehen:

system(ping.....);

korea1

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.