gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] Problems dumping database (Mac limitation on su -c)


From: Jim Busser
Subject: Re: [Gnumed-devel] Problems dumping database (Mac limitation on su -c)
Date: Thu, 26 May 2011 10:56:42 -0700

On 2011-05-26, at 9:38 AM, Karsten Hilbert wrote:

> On Tue, May 24, 2011 at 11:23:32PM -0700, Jim Busser wrote:
> 
>> sh ./gm-backup_database.sh
>> ...
>> 1) is there any suggested workaround method of achieving the above sanity 
>> check on Mac which maybe needs splitting into extra lines or clauses?
> 
> The suggested workaround would be to modify the usage of su
> to what Mac is decreeing to be The Way.
> 
> Splitting is unlikely to help as it won't get rid of the -c.

Splitting and (implied) rewriting

> ...
> 
>> MacBook-2:server root# sh ./gm-backup_database.sh
>> could not identify current directory: Permission denied
>> psql: warning: extra command-line argument "name," ignored
>> psql: warning: extra command-line argument "for" ignored
>> psql: warning: extra command-line argument "example" ignored
>> psql: warning: extra command-line argument "gnumed_v15" ignored
> 
> This very much hints at improper formatting within the shell
> script. Can you post the exact script which produces this
> output ?

attached

-- Jim

Attachment: gm-backup_database.sh
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]