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, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


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 exist in FreeBSD.

The -e switch causes echo to interpret backslash escapes, similar to
how they're interpreted in C strings.  This causes the \n to output a
newline, generating two lines of output with one echo statement.  If
this isn't available, you can replace it with two echo statements in a
subshell, like so:

  ( echo -e "delete volume=junk-$n"; echo yes ) | bconsole

> Thanks!

Glad to be of assistance.

-- John Kodis.

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


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 volumes right first!

Didn't know one could call bconsole that way.. I can think of all kind of 
wonderfull scripts I can write now that I know this. :-)

Thanks!

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


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
echo -e "delete volume=junk-$n\nyes" | bconsole
  done

Just make sure that you've got the range of volumes right first!

-- John Kodis.

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


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=

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 pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


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 Developer looking for work
my resume: http://www.freebsddiary.org/dan_langille.php



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[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 services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users