Re: [Bacula-users] Turning prompt off?

2006-07-02 Thread Francisco Reyes
John Kodis writes: ( echo -e delete volume=junk-$n; echo yes ) | bconsole That approach worked.. of course without the -e :-) Would be nice if one could pass comma separated parameters to commands like delete volume. Using Tomcat but need to do more? Need to support web services,

Re: [Bacula-users] Turning prompt off?

2006-07-01 Thread John Kodis
On Fri, Jun 30, 2006 at 07:37:36PM -0400, Francisco Reyes wrote: Alternatively is there are a way to specify multiple volumes or a range, for deletion? Tried comma separated and dash. You could use a shell script to automate the task. Something like: for n in $(seq 27 42); do

Re: [Bacula-users] Turning prompt off?

2006-07-01 Thread Francisco Reyes
John Kodis writes: You could use a shell script to automate the task. Something like: for n in $(seq 27 42); do echo -e delete volume=junk-$n\nyes | bconsole done What does -e does? That option doesn't exist in FreeBSD. Just make sure that you've got the range of

Re: [Bacula-users] Turning prompt off?

2006-07-01 Thread John Kodis
On Sat, Jul 01, 2006 at 12:02:45PM -0400, Francisco Reyes wrote: John Kodis writes: You could use a shell script to automate the task. Something like: for n in $(seq 27 42); do echo -e delete volume=junk-$n\nyes | bconsole done What does -e does? That option doesn't

[Bacula-users] Turning prompt off?

2006-06-30 Thread Francisco Reyes
Is there a way to turn off a warning Yes/No prompt? Deleting 50 volumes manually and have to answer yes every time... Alternatively is there are a way to specify multiple volumes or a range, for deletion? Tried comma separated and dash. Using Tomcat but need to do more? Need to support web

Re: [Bacula-users] Turning prompt off?

2006-06-30 Thread Dan Langille
On 30 Jun 2006 at 19:37, Francisco Reyes wrote: Is there a way to turn off a warning Yes/No prompt? Deleting 50 volumes manually and have to answer yes every time... Try putting yes on the command line: delete volume label=XYZ yes or something like that. -- Dan Langille : Software

Re: [Bacula-users] Turning prompt off?

2006-06-30 Thread Francisco Reyes
Dan Langille writes: delete volume label=XYZ yes That brings up the menu prompt... What I have been using is: delete volume=volume Adding 'yes' at the end didn't help. Still got prompted. Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with