frugal: reverse money log

Date: Tue, 25 Mar 1997 09:47:49 -0400
From: Landon Boyd <landon@csuite.chebucto.ns.ca>
To: CSuite Testing Reports <csuite-tech@chebucto.ns.ca>
Precedence: bulk

next message in archive
no next message in thread
previous message in archive
previous message in thread
Index of Subjects

Index of Subjects

I just tried this one and now it's even worse.  It says

x|joseph|50.00|cash|859222286|csuite 
written to /var/csuite/private/log/bank/money

Money cancelled for joseph - Joseph Bowey. Records updated. 


But the money file wasn't even touched.  I see that this has been fixed
now.

There was another problem that was preventing the debugging output to be
logged.

When trying to determine the debugging level, we look for the variable
DEBUG_scriptname.  The problem is when scriptname contains a '-', which
causes the following construct...

eval 'debug=${DEBUG_reverse-money:-1}'

...to produce:

debug=money:-1

I've replaced the 'eval' line shown above with this:

        eval "
        if [ ! -z \"\$DEBUG_$progname\" ]; then
                debug=\"\$DEBUG_$progname\"
        else
                debug=\"\${DEBUG_global:-0}\"
        fi"


Landon


On Mon, 24 Mar 1997, David J. Murdoch wrote:

> The options provided are
>                                                        Reverse Accounting 
> Entry
> 
>    Z*****************************?
>    * 50.00859231644csuite        *
>    * ip-100750.00morder+EngPound *____________________________________
>    * joseph50.00cash             *
>    @*****************************Y
>  URL: http://frugal.chebucto.ns.ca/cgi-officebin/reverse-money
> Submitting gives *** ERROR *** Invalid Data
> 
> and the money log contains the following entries
> frugal:/var/csuite/private/log/bank# cat money
> a|joseph|50.00|cash|859222286|csuite
> i|ip-1007|50.00|morder+EngPound|859222616|csuite
> 
> --
> 	David Murdoch
> 
> 


==================================================================
Landon Boyd                          landon@chebucto.ns.ca
Distribution Support Technician,     http://chebucto.ns.ca/~landon
Chebucto Community Net               902-455-4099hm 902-494-2449wk
==================================================================




next message in archive
no next message in thread
previous message in archive
previous message in thread
Index of Subjects