diff options
author | V. Guruprasad <prasad@inspiredresearch.com> | 2019-10-06 19:44:17 -0400 |
---|---|---|
committer | V. Guruprasad <prasad@inspiredresearch.com> | 2019-10-06 19:46:59 -0400 |
commit | 007b26e67ed1a03c31a7d2344f832c77b12b5f43 (patch) | |
tree | 455cd8b223823d153b70d64bbff044249ae91fa1 /src/main.c | |
parent | 9beb5c0a7b24f4fe05e2ad6b0b0c24c5939c3fe3 (diff) |
command line option to export
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -321,6 +321,18 @@ int main (int argc, char ** argv) { lastbackup_tv = (struct timeval) {0}; #endif + if (get_conf_value("export_csv")) { + export_delim(NULL, ',', 0, 0, maxrow, maxcol, 0); + } + + if (get_conf_value("export_tab")) { + export_delim(NULL, '\t', 0, 0, maxrow, maxcol, 0); + } + + if (get_conf_value("export") || get_conf_value("export_txt")) { + export_plain(NULL, 0, 0, maxrow, maxcol); + } + while ( ! shall_quit && ! atoi((char *) get_conf_value("quit_afterload"))) { // save current time for runtime timer gettimeofday(¤t_tv, NULL); |