Simplicity in running terminal commands

Hi!! Just out of curiosity, I’m running these commands in terminal for bot.

action server : python3 -m rasa_core_sdk.endpoint --actions actions

bot : python3 -m rasa_core.run --enable_api -d models/dialogue11 -u models/default/nlu11 --cors “*” --endpoints endpoints.yml

Okay so is there a way i can save these two in a script and run it in different session. Actually someone needs to run my bot in AWS session.

Yes, you can write a shell script for that.

#!/bin/bash
python3 -m rasa_core.run --enable_api -d models/dialogue11 -u models/default/nlu11 --cors “*” --endpoints endpoints.yml

Save it like run_bot.sh and execute it using ./run_bot.sh the script whenever you need. Do the same thing for the action server.

hey! post withdrawn? what happened?

Hey, I posted it twice by mistake. Its the same reply as the above one. You can use the shell script.