You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
E2B terminal works as the real terminal.
Terminal commands & output
Enter command: ls
java
jdk-11.0.2
jdk-11.0.2_linux-x64_bin.tar.gz
Enter command: cd java
Enter command: ls -a
.
..
.bash_logout
.bashrc
.profile
.sudo_as_admin_successful
java
jdk-11.0.2
jdk-11.0.2_linux-x64_bin.tar.gz
Enter command: export TEST=1
Enter command: echo $TEST
Enter command:
Desktop:
OS: Ubuntu18
Any feedback will be helpful.
The text was updated successfully, but these errors were encountered:
If you want just to execute a command, the sandbox.process.start_and_wait (or sandbox.commands.run in Beta SDK) might be a better solution here — the terminal/pty is made to be connected to an actual terminal emulator, outputting all the colored output and taking into account things like terminal size, which might not be relevant for you.
@ValentaTomas Thanks for your quick response. I have tried the commands.run method in the latest version, similar to sandbox.process. It still can't change the working directory flexibly according to the cd command.
Any other suggestions for connecting an actual terminal emulator using E2B? It's essential for LLM Agnets.
Describe the bug
I want to test if the E2B sandbox executes all commands well, as it's required for LLM Agent to do anything, but some issues appear:
cd
command doesn't work. This may be caused by the fixed parameter "cmd" in the initialization ofTerminalManager
To Reproduce
Steps to reproduce the behavior:
Expected behavior
E2B terminal works as the real terminal.
Terminal commands & output
Desktop:
Any feedback will be helpful.
The text was updated successfully, but these errors were encountered: