24 lines
315 KiB
Plaintext
24 lines
315 KiB
Plaintext
|
|
TASK: Execute 'echo Starting; sleep 5; echo Finished' with a 2 second timeout (NOT async). It should background. Poll it until it finishes and save a report to 'timeout_bg_test.txt' confirming it backgrounded and then finished.
|
|||
|
|
----------------------------------------
|
|||
|
|
Loading...
|
|||
|
|
|
|||
|
|
[1m-> linux_terminal_execute (timeout 2s):[0m
|
|||
|
|
[2mecho Starting; sleep 5; echo Finished[0m
|
|||
|
|
[214163] Starting
|
|||
|
|
[214163] Starting
|
|||
|
|
[214163] Starting
|
|||
|
|
[214163] Starting
|
|||
|
|
[214163] Starting
|
|||
|
|
[214163] Finished
|
|||
|
|
-> Writing file: timeout_bg_test.txt
|
|||
|
|
|
|||
|
|
[36m [2m CHANGES: timeout_bg_test.txt [0m
|
|||
|
|
LINE OLD
|
|||
|
|
--------------------------------------------------------------------------------------------------------------------------------------------
|
|||
|
|
1 The process was backgrounded and completed successfully.
|
|||
|
|
2 Output:
|
|||
|
|
3 Starting
|
|||
|
|
4 Finished
|
|||
|
|
|
|||
|
|
The command was backgrounded and has now finished. Its output has been saved to 'timeout_bg_test.txt'.
|