Here's an example of a shell script to transfer an amount from
a savings account to a checking account:

#!/bin/bash
DATE=$1
SOURCE=$2
AMNT=$3
perl -w /usr/local/sql-ledger/gl.pl "action=Post Transaction&\
path=bin/mozilla&\
login=username&\
password=password&\
debit_1=$3&\
credit_2=$3&\
accno_1=1032&\
accno_2=1031&\
description=EFT to checking&\
transdate=$1&\
source=$2&\
rowcount=2"

The command line invocation is something like:

  %% shift.sh 08-01-2002 08012002st 1500

Chris


-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
-------------------------------------------------------
(un)subscribe: http://lists.sourceforge.net/lists/listinfo/sql-ledger-users
Archive: http://www.mail-archive.com/[email protected]/

Reply via email to