Changes between Version 4 and Version 5 of DatabaseBasedAnalysis/rootifysql


Ignore:
Timestamp:
08/05/18 17:14:43 (6 years ago)
Author:
tbretz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DatabaseBasedAnalysis/rootifysql

    v4 v5  
    7777}}}
    7878
     79A nice feature of bash is that you can make the '''query.sql''' file executable. First add the executable in the first line preceded by {{{#!}}}. It might then look like:
     80{{{
     81#!/path/to/rootifysql
     82SELECT 'Hello World!'
     83}}}
     84
     85Now make it executable for yourself
     86{{{
     87user@machine> chmod u+x query.sql
     88}}}
     89
     90and you can call your query like
     91{{{
     92user@machine> ./query.sql [options]
     93}}}
     94
     95with the ![options] from {{{rootifysql}}}. If you prefix your query file with
     96{{{
     97#!/path/to/rootifysql -C /path/to/resources.rc
     98}}}
     99
     100you can even have a dedicated resource file.
     101
     102
     103
    79104== Connection information ==
    80105