bin neu in der Python Programmierung und habe eine Frage zu einem Python-Script.
Ich möchte ein Script programmieren, dass eine große Simulation in mehrere kleine Stücke zerteilt und an den Rechner schickt.
Dafür muss ich am Ende mehrere Commandozeilen ausführen.
Ich mache das momentan mit
Code: Alles auswählen
command = "nohup ./KOH 1000 16 25 16 1 10000 5 &>ScriptTest.dat &"
process = subprocess.Popen( command, shell=True, stdout=subprocess.PIPE)
Hat sich erledigt! Ich gebe einfach
Code: Alles auswählen
process = subprocess.Popen( command, shell=True, stdout=open("script_test.dat","w"))
Danke!
NonStopAggroPop