# Running Shell script containing SQL

**URL:** <https://www.singlestore.com/forum/t/running-shell-script-containing-sql/3844>\
**Category:** Help\
**Tags:** event, developer, studio\
**Created:** [February 7, 2022, 6:48pm UTC](https://www.singlestore.com/forum/t/running-shell-script-containing-sql/3844 "2022-02-07T18:48:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandy](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/s/2bfe46/32.png) [@sandy](https://www.singlestore.com/forum/u/sandy)\
**Post date:** [February 7, 2022, 6:48pm UTC](https://www.singlestore.com/forum/t/running-shell-script-containing-sql/3844/1 "2022-02-07T18:48:13Z")

</div>

Hi,  
Is there a way I can run just the SQL in a shell script on singlestore?

Thanks any suggestions or help would be appreciated.

---

<div class="post-metadata">

**Author:** ![ricknegrin](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/r/dfb087/32.png) [@ricknegrin](https://www.singlestore.com/forum/u/ricknegrin)\
**Post date:** [February 7, 2022, 7:00pm UTC](https://www.singlestore.com/forum/t/running-shell-script-containing-sql/3844/2 "2022-02-07T19:00:36Z")

</div>

Yes. You can use the command line included with SingleStore to connect and run SQL commands from a linux command line. Or use any mysql compatible command line. Documentation here is here: [Connect with MySQL Client · SingleStore Documentation](https://docs.singlestore.com/db/v7.6/en/connect-to-your-cluster/connect-with-mysql/connect-with-mysql-client.html)

---

<div class="post-metadata">

**Author:** ![ricknegrin](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/r/dfb087/32.png) [@ricknegrin](https://www.singlestore.com/forum/u/ricknegrin)\
**Post date:** [February 7, 2022, 8:22pm UTC](https://www.singlestore.com/forum/t/running-shell-script-containing-sql/3844/3 "2022-02-07T20:22:35Z")

</div>

Here is the link to the docs regarding the SingleStore command line client: [SingleStore Client · SingleStore Documentation](https://docs.singlestore.com/db/v7.6/en/user-and-cluster-administration/cluster-management-with-tools/singlestore-client.html)
