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.

unter C Linux Terminal Commands auslösen

Empfohlene Antworten

Veröffentlicht

hoi,

hab mal wieder ein Problem, kennt jemand vielleicht ne seite wo das beschrieben wird wie das geht, gehts überhaupt?

Wie kann ich mit C einfache Commandos ausführen die ich auch im Terminal selber eingeben kann wie z. B.:

netscape &

fdsik /dev/hda3

oder ähnliches, ich ätte es gerne so, das in meinem Programm welches auch Konsolen basiert ist, nix grafisches, einfach die Resulatet dieser Befehle auflistet, z. B. bei fdisk, wenn ich es in meinem Programm mit dem Parameter "p" aufrufe mir gleich die Paretitionierungsdaten anzeigt

Danke im vorraus Dirk

<FONT COLOR="#a62a2a" SIZE="1">[ 21. September 2001 15:12: Beitrag 1 mal editiert, zuletzt von dirk12345 ]</font>

also einfache kommandos ausführen geht mit der funktion system. sollte es auch unter linux gehen. beispiel:

int ret = system ("netscape");

der rückgabewert ist der, der mittels return oder exit anweisung an das os zurückgegeben wurde.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.