Well, at least for me on Solaris, "export PGPASSWORD=$3" is ksh syntax.
In Bourne shell, that command results in an error:

# export PGPASSWORD=abc
PGPASSWORD=abc: is not an identifier

So for the script would be more universally adaptable, it would be
better to break it up into two commands.  Or I guess I could've changed
the #!/bin/sh to #!/bin/ksh or precede the script name with "ksh " when
I call it.

Ray

-----Original Message-----
From: Dan Langille [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 17, 2006 1:37 PM
To: Lee, Raymond
Cc: bacula-users@lists.sourceforge.net
Subject: RE: [Bacula-users] small bug?: make_catalog_backup


On 17 Feb 2006 at 10:39, Lee, Raymond wrote:

> Another small bug in this script...line 29 should be split into 2
lines:
> 
>         PGPASSWORD=$3
>         export PGPASSWORD

why do you think it needs to be split?

> 
> Thanks,
> Ray
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] on behalf of
[EMAIL PROTECTED]
> Sent: Fri 2/17/2006 4:26 AM
> To: bacula
> Subject: [Bacula-users] small bug?: make_catalog_backup
>  
> Hi,
> 
> In the script make_catalog_backup bacula 1.38.5 are the following
lines:
> 
> #  To read back a PostgreSQL database use:
> #     cd /home/marc/bacula/bin/working
> #     dropdb bacula
> #     psql bacula <bacula.sql
> #
> 
> I think the line 'createdb bacula' is missing, and it should read
> 
> #  To read back a PostgreSQL database use:
> #     cd /home/marc/bacula/bin/working
> #     dropdb bacula
> #     createdb bacula
> #     psql bacula <bacula.sql
> #
> 
> -- 
> Best regards
> 
> Marc Cuypers
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 



-- 
Dan Langille : Software Developer looking for work
my resume: http://www.freebsddiary.org/dan_langille.php




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to