Linux execut command line in prompt mssql-cli

Hi Community ansible !! :wink:

I hope are you fine !! :slight_smile:

My problem actually is that i have mssql-cli on my debian.

I have create script.sh with this content :

mssql-cli -S my_server -U my_user -d my_database && \e scriptsql.sql

I want that when i run my script.sh, the second command “\e scriptsql.sql” is runnning in “prompt mssql-cli” and not when i exit prompt are you understand please ?

For after execut this script in Ansible.

So my question is, how execut command line in prompt mssql-cli and not in prompt debian through one script.sh ??

Thanks for your help community Ansible !! :slight_smile:

Regards,

Show result problem :