Changeset 2704 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-stream.c
- Timestamp:
- Jan 27, 2011, 7:31:24 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-stream.c
r2462 r2704 265 265 266 266 mr_asprintf(command, "%s -scanbus 2> /dev/null | grep -i tape | wc -l", cdr_exe); 267 tmp = call_program_and_get_last_line_of_output(command );267 tmp = call_program_and_get_last_line_of_output(command,TRUE); 268 268 mr_free(command); 269 269 … … 277 277 278 278 mr_asprintf(command, "%s -scanbus 2> /dev/null | tr -s '\t' ' ' | grep \"[0-9]*,[0-9]*,[0-9]*\" | grep -v \"[0-9]*) \\*\" | grep -i TAPE | cut -d' ' -f2 | head -n1", cdr_exe); 279 tmp = call_program_and_get_last_line_of_output(command );279 tmp = call_program_and_get_last_line_of_output(command,TRUE); 280 280 mr_free(command); 281 281 … … 289 289 mr_asprintf(command, "%s -scanbus 2> /dev/null | tr -s '\t' ' ' | grep \"[0-9]*,[0-9]*,[0-9]*\" | grep -v \"[0-9]*) \\*\" | grep -i TAPE | cut -d' ' -f3 | cut -d')' -f1 | head -n1", cdr_exe); 290 290 mr_free(cdr_exe); 291 tmp = call_program_and_get_last_line_of_output(command );291 tmp = call_program_and_get_last_line_of_output(command,TRUE); 292 292 mr_free(command); 293 293 … … 324 324 } 325 325 326 tmp = call_program_and_get_last_line_of_output(" cdrecord -scanbus 2> /dev/null | tr -s '\t' ' ' | grep \"[0-9]*,[0-9]*,[0-9]*\" | grep -v \"[0-9]*) \\*\" | grep -i TAPE | awk '{for(i=1; i<NF; i++) { if (index($i, \"GB\")>0) { print $i;};};};'" );326 tmp = call_program_and_get_last_line_of_output(" cdrecord -scanbus 2> /dev/null | tr -s '\t' ' ' | grep \"[0-9]*,[0-9]*,[0-9]*\" | grep -v \"[0-9]*) \\*\" | grep -i TAPE | awk '{for(i=1; i<NF; i++) { if (index($i, \"GB\")>0) { print $i;};};};'",TRUE); 327 327 328 328 if (mt_says_tape_exists(dev)) {
Note:
See TracChangeset
for help on using the changeset viewer.