#!/usr/bin/env python import sqlite import sys action = sys.argv[1] databasename = sys.argv[2] con = sqlite.connect("/var/lib/csync2/"+databasename) launchersql = con.cursor() if action == "clear-dirty": sqlstring = "delete from dirty" launchersql.execute(sqlstring) con.commit() con.close else: con.close()