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.

anderes programm ausführen

Empfohlene Antworten

hallo, ich habe in perl ein programm geschriebn das eine übergebene textdatei auswertet und dann eine chartgrafik daraus erstellt!

nun ist es so das wenn ich aus meinem c programm das die textdatei erstell ein

sprintf(cmd,"chmod 775 %s/%s",path,datei);

system(cmd);

ausführe funktioniert es ... bekomme 0 zurück

danach mach ich ein

sprintf (cmd,"%s/createchart.pl < %s",path,datei);

system(cmd);

aus und da funktioniert dann nicht...und ich kommen eine 256 zurück! was bedeutet die 256 und wie bekomme ich das zum laufen? das ganze wird von einem server ausgefrüht als user: webuser und gruppe: webgroup....die rechte von createchart.pl sind 777 und gleiche grp und own

sprintf (cmd,"%s/createchart.pl < %s",path,datei);
Die Datenstromumleitungen der Shell funktionieren nicht direkt in einem system-Aufruf.

was bedeutet die 256
Das musst du das Perlskript fragen.

und wie bekomme ich das zum laufen?
Erstell ein Shellskript und führ das mit system aus.

hallo, danke erstmal

ich hab mir jetz ein script erstellt(name: exec_create)

/pfadangabe/createchart.pl < /pfadangabe/$1
und ruf es mit
/pfadangabe/exec_create textdatei

aus c auf

jetz bekomm ich 65280 zurück aber createchart.pl wurde nicht ausgeführt!

funktioniert das mit den übergabeparametern auch nicht oder weswegen?

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.