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.

Shellscript: Ausgabe in Logfile & auf dem Bildschirm

Empfohlene Antworten

Hallo zusammen,

ich habe mir für ein Backup ein Script erstellt.

In diesem Script habe ich eine Logdatei definiert, welches das ganze ja mitprotokoliert. (wird somit immer mit >>${logfile} angefängt!)

ist ja schön und gut, wenns zeitgesteuert läuft. Somit kann ich die Ereignisse anhang der Logdatei sehen.

Gibt es jedoch eine Möglichkeit, was wenn ich das Script manuell ausführe, das ich auch die Ergebnisse zusätzlich am Bildschirm mitverfolgen kann? (zusätzlich zur Logdatei!)

Bin leider auf noch keine Lösung gestoßen ... :(

Gruss Sanches

also die blödeste möglichkeit die mir gerade einfällt wäre >/dev/<terminal_an_demdu_angemeldet_bist>

also

z.b.

cat test.txt >/dev/tty0 und schön würd die datei an diese console ausgegeben

wennde mit putty drauf wärst, wärs cat test.txt>/dev/pts0

ist klar was ich meine?

Das Script im Hintergrund starten:

hostname# /path/to/script.sh &

und dann das Logfile mit tail Anzeigen lassen...

hostname# tail -f /path/to/logfile.log

/Edit: Jo, da war einer schneller :-P

Hi,

überwache die log mit "tail", habe hier gerade kein Linux, aber tail bietet die Möglichkeit immer die letzten Daten auszugeben. Schau dir mal die Hilfe an!

MfG

//Misst, da war einer ein paar Sekunden schneller.

Morgäään,

genau das habe ich gesucht. :D

Vielen Dank.

Gruss Sanches

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.