From: Matt Z. <md...@de...> - 2002-11-30 23:04:27
|
On Sat, Nov 30, 2002 at 04:38:26PM -0600, Kevin Corry wrote: > > #! /bin/bash > > evms -c -v1 << EOF2 > > revert:/dev/evms/snap_racine: > > [...] > > exit > > EOF2 > > Hmm....you've kind of come up with a unique way to write CLI scripts. The CLI > is currently written to allow commands to be specified in a command-file, and > run the commands in that file using the "-f" options. So in this example, you > would have a file, say "snap_delete", that contains: > > 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 > > and then run this file using: > > evms -v1 -f snap_delete Ideally, it would be possible to use something like this: #!/sbin/evms -f 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: as is done with similar interfaces. I believe the only thing preventing this from working is that the CLI does not treat lines starting with '#' as comments (I believe it uses C-style comments). -- - mdz |