UNIX Session Terminal

Hello.
I’m using the Terminal Session activity, and I want to automate the execution of some UNIX sequences, however when I run it loads a black screen and then closes automatically. Can you help me identify what the problem is?

Can you explain if there is any error once that happens?

no error is displayed