TASK: Execute a Python script ('print("Python OK")') and a Shell command ('echo Shell OK') in parallel using async mode. Wait for both to finish using process_get_status and save the combined results to 'mixed_async.txt'.
|
||
----------------------------------------
|
||
Loading...
|
||
|
||
[1;34m┌─── Python Source Code ─────────────────────────────────────[0m
|
||
[1;34m│[0m [2m 1 |[0m print("Python OK")[0m
|
||
[1;34m└────────────────────────────────────────────────────────────[0m
|
||
[1m-> linux_terminal_execute (timeout 10s):[0m
|
||
[2mecho Shell OK[0m
|
||
[93757] Python OK
|
||
[93759] Shell OK
|
||
-> Writing file: mixed_async.txt
|
||
|
||
[36m [2m CHANGES: mixed_async.txt [0m
|
||
LINE OLD | LINE NEW
|
||
--------------------------------------------------------------------------------------------------------------------------------------------
|
||
1 [31m-[0m [31mPython Output: Python OK [0m |
|
||
2 [31m-[0m [31mShell Output: Shell OK [0m |
|
||
| 1 [32m+[0m [32mPython OK [0m
|
||
| 2 [32m+[0m [32mShell OK [0m
|
||
|
||
Both the Python script and the shell command completed successfully. Their combined output has been saved to 'mixed_async.txt'.
|