Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


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

[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-26 22:02 +0100
Organization Goebel Consult
Message-ID <198c8db5-3320-48fc-a119-5ff6f299cc5d@goebel-consult.de> (permalink)
References <vs0k86$ukp$1@rusnews.informatik.uni-stuttgart.de>

Show all headers | View raw


Hi,
> 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.

-- 
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/2020/alternative-android-betriebssysteme/ 

Kolumne: 
https://www.goebel-consult.de/blog/cissp-gefluester/2011-02-fleisige-datensammler-fuer-lukratives-geschaeftsmodell-gesucht/ 

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