| 105 | | |
|---|
| 106 | | text_t cmd = "gzip --decompress --to-stdout \"" + txtgz_filename + "\""; |
|---|
| 107 | | cmd += " | txt2db \"" + filename + "\""; |
|---|
| 108 | | |
|---|
| 109 | | int rv = gsdl_system(cmd, true, cerr); |
|---|
| 110 | | if (rv != 0) { |
|---|
| 111 | | cerr << "Tried to run command \""<<cmd<<"\", but it failed\n"; |
|---|
| | 105 | if (file_exists(txtgz_filename)) |
|---|
| | 106 | { |
|---|
| | 107 | text_t cmd = "gzip --decompress --to-stdout \"" + txtgz_filename + "\""; |
|---|
| | 108 | cmd += " | txt2db \"" + filename + "\""; |
|---|
| | 109 | |
|---|
| | 110 | int rv = gsdl_system(cmd, true, cerr); |
|---|
| | 111 | if (rv != 0) { |
|---|
| | 112 | cerr << "Tried to run command \""<<cmd<<"\", but it failed\n"; |
|---|
| | 113 | } |
|---|