Changeset 1693 in MondoRescue for branches/stable/mondo/src/common/libmondo-fork.c
- Timestamp:
- Oct 21, 2007, 3:06:22 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-fork.c
r1663 r1693 179 179 180 180 /** 181 * Call copy of data to create an USB image. 182 * @param bkpinfo The backup information structure. Fields used: 183 * - @c bkpinfo->backup_media_type 184 * @return Exit code of @c copy (0 is success, anything else indicates failure). 185 */ 186 int 187 eval_call_to_make_USB(char *command, char *what_i_am_doing) { 188 189 /*@ int's *** */ 190 int retval = 0; 191 192 193 /*@*********** End Variables ***************************************/ 194 195 log_msg(3, "Starting"); 196 assert(bkpinfo != NULL); 197 198 log_to_screen 199 ("Please be patient. Do not be alarmed by on-screen inactivity."); 200 log_msg(4, "Calling open_evalcall_form() with what_i_am_doing='%s'", 201 what_i_am_doing); 202 203 if (!g_text_mode) { 204 newtSuspend(); 205 } 206 log_msg(1, "command = '%s'", command); 207 if (!g_text_mode) { 208 retval = run_external_binary_with_percentage_indicator_NEW 209 (what_i_am_doing, command); 210 } else { 211 retval += system(command); 212 } 213 if (!g_text_mode) { 214 newtResume(); 215 } 216 217 return (retval); 218 } 219 220 221 222 223 /** 181 224 * Run a program and log its output (stdout and stderr) to the logfile. 182 225 * @param program The program to run. Passed to the shell, so you can use pipes etc.
Note:
See TracChangeset
for help on using the changeset viewer.