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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users