Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > de.comp.lang.python > #6282

[Python-de] Re: subprocess.call() funktioniert nicht mit Windows?

From Hartmut Goebel <h.goebel@goebel-consult.de>
Newsgroups de.comp.lang.python
Subject [Python-de] Re: subprocess.call() funktioniert nicht mit Windows?
Date 2025-03-27 16:24 +0100
Organization Goebel Consult
Message-ID <44b369e8-7aeb-4446-86d6-19dbe19f3881@goebel-consult.de> (permalink)
References <vs0k86$ukp$1@rusnews.informatik.uni-stuttgart.de> <198c8db5-3320-48fc-a119-5ff6f299cc5d@goebel-consult.de> <vs1vf0$a5r$1@rusnews.informatik.uni-stuttgart.de>

Show all headers | View raw


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/ 

Back to de.comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

subprocess.call() funktioniert nicht mit Windows? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2025-03-26 10:17 +0000
  [Python-de] Re: subprocess.call() funktioniert nicht mit Windows? Hartmut Goebel <h.goebel@goebel-consult.de> - 2025-03-26 22:02 +0100
    Re: [Python-de] Re: subprocess.call() funktioniert nicht mit Windows? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2025-03-26 22:35 +0000
      [Python-de] Re: subprocess.call() funktioniert nicht mit Windows? Hartmut Goebel <h.goebel@goebel-consult.de> - 2025-03-27 16:24 +0100
        Re: [Python-de] Re: subprocess.call() funktioniert nicht mit Windows? "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> - 2025-03-27 16:00 +0000
    Re: [Python-de] Re: subprocess.call() funktioniert nicht mit Windows? "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> - 2025-03-27 09:16 +0000
      Re: [Python-de] Re: subprocess.call() funktioniert nicht mit Windows? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2025-03-27 23:31 +0000
        Re: [Python-de] Re: subprocess.call() funktioniert nicht mit Windows? "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> - 2025-03-28 08:20 +0000

csiph-web