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,

ich möchte ein Programm in C schreiben, mit dem ich unter Linux eine Prozedur aufrufen kann. Leider habe ich sowohl von Linux als auch von C noch nicht besonders viel Ahnung. Eigendlich brauch ich dafür doch nur einen Befehl welcher die Prozedur aufruft, oder? Weiss zufällig jemand, wie dieser Befehl heisst und welche Datei ich dafür includen muss?

Danke schonmal im Vorraus

Gruß

Chris

Mit Prozedur meine ich im Prinzip nichts anderes als ein Script, welches allerdings nicht in C geschrieben wird (Da ich das aber nicht selbst schreibe, weiss ich auch nicht worin sonst).

Danke, das mit System() hat funktioniert. Thx!

Hallo,

gibt es die ganzen Funktionen wie ShellExecute und Exec (einschließlich der

_?exec-Funktionen) unter Linux garnicht ?

Es gibt Bibliotheksfunktionen mit einer ähnliches Funktionalität, die auf das Prozessmodell von Linux abgestimmt ist.

"system()" ist die "Keule", fürs Fine-Tuning sollte man lieber auf fork(), exec() & friends ausweichen, da man hierüber die Prozesse, Rückgabewerte, Prozesskommunikation usw. wesentlich besser (bzw.: überhaupt) steuern kann.

Nic

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.