Actually make_catalog_backup_awk holds the first line:
#!/usr/bin/gawk -f
which is obviously correct. Durung the bacula call mawk got involved (it was a server installation). I guess the callee does a command like "awk -f /etc/bacula/scripts/make_catalog_backup_awk" which is even wrong if mawk has precendence over gawk by using /etc/alternatives/awk. I guess you need to inspect a bit deeper.
ah yes - i just took a look at bacula-dir.conf in /etc/bacula, there it is:
Is the fix really that simple ?
Actually make_catalog_ backup_ awk holds the first line:
#!/usr/bin/gawk -f
which is obviously correct. Durung the bacula call mawk got involved (it was a server installation). I guess the callee does a command like "awk -f /etc/bacula/ scripts/ make_catalog_ backup_ awk" which is even wrong if mawk has precendence over gawk by using /etc/alternativ es/awk. I guess you need to inspect a bit deeper.
ah yes - i just took a look at bacula-dir.conf in /etc/bacula, there it is:
RunBeforeJob = "/usr/bin/awk -f /etc/bacula/ scripts/ make_catalog_ backup_ awk -v cat1=MyCatalog /etc/bacula/ bacula- dir.conf"
there the /usr/bin/awk needs to be changed to /usr/bin/gawk as well.
greetings,
Fred