diff --git a/backend/agent/tools/sb_shell_tool.py b/backend/agent/tools/sb_shell_tool.py index 6ead87ff..bc1771f7 100644 --- a/backend/agent/tools/sb_shell_tool.py +++ b/backend/agent/tools/sb_shell_tool.py @@ -102,29 +102,39 @@ class SandboxShellTool(SandboxToolsBase): pdftotext input.pdf -layout 2>&1 || echo "Error processing PDF" && ls -la output.txt + + + python long_running_script.py + + + + + python data_processing.py + + - + python scraper.py --large-dataset > scraper_output.log 2>&1 & - + nohup python processor.py --heavy-computation > processor.log 2>&1 & - + python long_task.py & echo $! > task.pid - + ps -p $(cat task.pid) - + kill $(cat task.pid)