#!/bin/bash # Escape arguments id=$(sqlite3 :memory: <<< ".shell echo '$1'") file=$(sqlite3 :memory: <<< ".shell echo '$2'") summary=$(sqlite3 :memory: <<< ".shell echo '$3'") # Insert the row sqlite3 /agent/Media/XML/fileDB.db3 "INSERT INTO AgentSummary (id, file, summary) VALUES ('$id', '$file', '$summary');"