Create a shell script at /app/timeout.sh that implements a self-terminating timeout pattern: the script runs…
Create a shell script at /app/timeout.sh that implements a self-terminating timeout pattern: the script runs…: a task in Repo2RLEnv TerminalWorld (EuniAI) (Harbor dataset). Additionally, write the contents of that script to /app/result.txt . The file /app/result.txt must contain exactly two lines…
The task
Additionally, write the contents of that script to `/app/result.txt`. The file `/app/result.txt` must contain exactly two lines: ``` #!/bin/sh (cmdpid=$$; (echo $cmdpid; sleep 5; kill -TERM $cmdpid) & exec sleep 10) ```
Part of FineEnvs/repo2rlenv-terminalworld.