|
From: Michel B. <mi...@bo...> - 2002-11-30 17:38:18
|
Okay, After having crashed my system trying to activate snapshots in a script, I tried to deactivate snapshots in a script. So i tried the following short one: #! /bin/bash evms -c -v1 << EOF2 revert:/dev/evms/snap_racine: revert:/dev/evms/snap_boot: revert:/dev/evms/snap_usr: revert:/dev/evms/snap_var: revert:/dev/evms/snap_tmp: revert:/dev/evms/snap_home: commit: exit EOF2 And of course, things didn't work as expected, because the damn thing asked for confirmations and took parts of the following commands as supposed answers to its confirmation demands. How do I tell this thing "JUST DO IT AND DON'T ASK, THIS IS BATCH MODE" ? Here's an extract of what I got on screen: <<<<< [root@totor bin]# ./snap_delete.sh EVMS Command Line Interpreter Version 1.2.0 EVMS: Engine: Volume "/dev/evms/snap_racine" has the Ext2/3 file system on it. The file system will be removed along with the volume. The following responses are available: *1 = Continue 2 = Cancel The default choice is marked with an *. Please enter the number corresponding to your choice: revert:/d does not correspond to any of the available responses. Please try again. The following responses are available: *1 = Continue 2 = Cancel The default choice is marked with an *. Please enter the number corresponding to your choice: ev/evms/s does not correspond to any of the available responses. Please try again. The following responses are available: *1 = Continue 2 = Cancel The default choice is marked with an *. Please enter the number corresponding to your choice: nap_boot: does not correspond to any of the available responses. Please try again. [...] >>>>> And so on... -- Michel Bouissou <mi...@bo...> OpenPGP ID 0xDDE8AC6E |