Am 26.03.25 um 23:35 schrieb Ulli Horlacher:
def syscall(*cmd):
    cmd = ['cmd','/d','/c']+list(cmd)
    subprocess.call(cmd)
Ich habe keine Ahnung von Windows, wunder mich aber, weshalb Du cmd /d
/c davor stellst. Ich hätte vermutet, dass Python sich selbst darum
kümmert, wenn es nötig wäre.
Ohne das wird autoexec.bat fuer jeden Befehl ausgefuehrt.
Das entspricht /etc/profile

Ich vermute, Du meinst die Flags für "cmd"?! Ich frage weshalb überhaupt ober "cmd".

--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer
Information Security Management, Security Governance, Secure Software Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog: https://www.goebel-consult.de/blog/2019/microsoft-google-apple-und-co-aus-bildungseinrichtungen-verbannen/ Kolumne: https://www.goebel-consult.de/blog/cissp-gefluester/2012-09-steht-ein-manta-fahrer-vor-der-uni/
_______________________________________________
python-de Mailingliste -- python-de@python.org
Zur Abmeldung von dieser Mailingliste senden Sie eine Nachricht an 
python-de-le...@python.org
https://mail.python.org/mailman3/lists/python-de.python.org/
Mitgliedsadresse: arch...@mail-archive.com

Reply via email to