Shell in WebSession?

This may be a silly question - so my apologies in advance. Can you run a Shell from within a WebSession? I’ve been trying but as soon as I call Execute the app goes off into never-never land and doesn’t come back.

Of course you can run a shell. Simply remember it takes place on the server.

Make sure to use a property for the shell, otherwise it goes out of scope when the even end, which may the cause of the crash.

What did you try to do in that shell ?

Please define “the app goes off into never-never land and doesn’t come back.” ?

If your running your shell in mode 0 (synchronous) and it is a long running task then your app will lock up while the task runs. This would account for “offline behavior”

Use mode 1 and handle it asynchronously.