Skip to content

Commit 47c5fb9

Browse files
committed
Use shell command in minimal example
1 parent 495a4d2 commit 47c5fb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/minimal/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ export default {
99
// Get or create a sandbox instance
1010
const sandbox = getSandbox(env.Sandbox, 'my-sandbox');
1111

12-
// Execute Python code
12+
// Execute a shell command
1313
if (url.pathname === '/run') {
14-
const result = await sandbox.exec('python3 -c "print(2 + 2)"');
14+
const result = await sandbox.exec('echo "2 + 2 = $((2 + 2))"');
1515
return Response.json({
1616
output: result.stdout,
1717
error: result.stderr,

0 commit comments

Comments
 (0)