|
From: Michel B. <mi...@bo...> - 2002-12-10 10:02:24
|
Le Mardi 10 Décembre 2002 10:20, Frank Lenaerts a écrit : > > 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. > > > > Maybe a "--batch" option or the like could be added to the command-line > > client, to tell it not to ask any questions and just process the commands > > it receives in similar situations. > > I don't think this is necessary, as you have the -f option as Kevin > suggested. Using here documents can make scripts much easier to read and understand rather than having to use separate command files just for executing a couple of EVMS commands. This is unnecessary complexity, and unnecessary complexity must be avoided as much as possible. If one uses separate EVMS command files, he may have to create 3 or 4 separate command files for being called by a single bash script, which is really unpractical. I know that "here documents" in such a situtation must simulate an interactive dialog, but when done in batch, you may not always know when you will or will not receive warnings and confirmation messages -- this even can vary from one batch execution to another. For this very reason it would be very useful to have a "--batch" option for the EVMS command line, that would mean "DON'T ASK. JUST DO IT." I believe this wouldn't be such a programming issue to implement, as EVMS probably already implements this behaviour when using "-f" command files. The batch option exists in many, many Unix usual commands for this very reason. Regards. -- Michel Bouissou <mi...@bo...> OpenPGP ID 0xDDE8AC6E |