Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #6279
| From | Ulli Horlacher <framstag@rus.uni-stuttgart.de> |
|---|---|
| Newsgroups | de.comp.lang.python |
| Subject | Re: [Python-de] Re: subprocess.call() funktioniert nicht mit Windows? |
| Date | 2025-03-26 22:35 +0000 |
| Organization | University of Stuttgart, FRG |
| Message-ID | <vs1vf0$a5r$1@rusnews.informatik.uni-stuttgart.de> (permalink) |
| References | <vs0k86$ukp$1@rusnews.informatik.uni-stuttgart.de> <198c8db5-3320-48fc-a119-5ff6f299cc5d@goebel-consult.de> |
Hartmut Goebel <h.goebel@goebel-consult.de> wrote: > 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. Ohne das wird autoexec.bat fuer jeden Befehl ausgefuehrt. Das entspricht /etc/profile -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: horlacher@tik.uni-stuttgart.de Allmandring 30a Tel: ++49-711-68565868 70569 Stuttgart (Germany) WWW: https://www.tik.uni-stuttgart.de/
Back to de.comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
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