|
From: Frank L. <len...@pa...> - 2002-12-10 09:20:15
|
on Sat, Nov 30, 2002 at 11:57:48PM +0100, Michel Bouissou wrote about Re: [= Evms-devel] Snapshots in batch... Another one: > Le Samedi 30 Novembre 2002 23:38, Kevin Corry a =E9crit : > > > > Hmm....you've kind of come up with a unique way to write CLI scripts. T= he > > 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. >=20 > Yes, I've seen that this "command file" option exists, but I wanted to ke= ep it=20 > simple and didn't want to use separate files just for executing a couple = of=20 > commands in my script. When using here documents, you really have to simulate what you would do interactively. This has nothing to do with the evms interpreter itself, it is a shell issue. > So I preferred to embed the EVMS commands in the script itself. >=20 > Maybe a "--batch" option or the like could be added to the command-line= =20 > client, to tell it not to ask any questions and just process the commands= it=20 > receives in similar situations. I don't think this is necessary, as you have the -f option as Kevin suggest= ed. > Regards. cu, > --=20 > Michel Bouissou <mi...@bo...> OpenPGP ID 0xDDE8AC6E --=20 len...@pa... Those who do not understand Unix are condemned to reinvent it, poorly." -- Henry Spencer |