]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl permit an argument to run_bconsole command
authorEric Bollengier <eric@eb.homelinux.org>
Mon, 22 Dec 2008 10:14:39 +0000 (10:14 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 22 Dec 2008 10:14:39 +0000 (10:14 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8220 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/functions

index 940b3dd1e0e48839da4ca74477dd31933614e027..f447debbbdc4da814b9730195d40f5f8b23f530d 100644 (file)
@@ -158,10 +158,11 @@ run_bacula()
 
 run_bconsole()
 {
+   file=${1:-tmp/bconcmds}
    if test "$debug" -eq 1 ; then
-     cat tmp/bconcmds | $bin/bconsole -c bin/bconsole.conf
+     cat $file | $bin/bconsole -c bin/bconsole.conf
    else
-     cat tmp/bconcmds | $bin/bconsole -c bin/bconsole.conf  2>&1 >/dev/null
+     cat $file | $bin/bconsole -c bin/bconsole.conf  2>&1 >/dev/null
    fi
 }