TASK: Execute 'echo Starting; sleep 5; echo Finished' with a 2 second timeout (NOT async). It will background automatically. You MUST poll it with process_get_status until it finishes and then save a report to 'timeout_bg_test.txt' that MUST contain the words 'backgrounded' and 'finished successfully'.
|
||
----------------------------------------
|
||
Loading...
|
||
|
||
[1m-> linux_terminal_execute (timeout 2s):[0m
|
||
[2mecho Starting; sleep 5; echo Finished[0m
|
||
[229037] Starting
|
||
[229037] Starting
|
||
[229037] Starting
|
||
[229037] Starting
|
||
[229037] Finished
|
||
-> Writing file: timeout_bg_test.txt
|
||
|
||
[36m [2m CHANGES: timeout_bg_test.txt [0m
|
||
LINE OLD | LINE NEW
|
||
--------------------------------------------------------------------------------------------------------------------------------------------
|
||
1 [31m-[0m [31mThe process was backgrounded and completed successfully. [0m |
|
||
2 [31m-[0m [31mOutput: [0m |
|
||
3 [31m-[0m [31mStarting [0m |
|
||
4 [31m-[0m [31mFinished [0m |
|
||
| 1 [32m+[0m [32mbackgrounded and finished successfully [0m
|
||
|
||
The command was backgrounded and completed successfully. The report has been saved to 'timeout_bg_test.txt'.
|