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

SF.net SVN: ledger-smb: [447] trunk/utils/cli



Revision: 447
          http://svn.sourceforge.net/ledger-smb/?rev=447&view=rev
Author:   einhverfr
Date:     2006-10-31 21:07:33 -0800 (Tue, 31 Oct 2006)

Log Message:
-----------
Adding simple, stupid cli script sample to illustrate file syntax

Modified Paths:
--------------
    trunk/utils/cli/ledgersmb_cli.pl

Added Paths:
-----------
    trunk/utils/cli/sample.lsmb

Modified: trunk/utils/cli/ledgersmb_cli.pl
===================================================================
--- trunk/utils/cli/ledgersmb_cli.pl	2006-11-01 05:05:19 UTC (rev 446)
+++ trunk/utils/cli/ledgersmb_cli.pl	2006-11-01 05:07:33 UTC (rev 447)
@@ -22,7 +22,7 @@
 	} elsif ($line =~ /^\s*(.+)\s*=\s*(.+)/){
 		$form->{$1} = $2;
 	} elsif ($line =~ /^\s*CALL (.+)/){
-		&{$1}(\%$form);
+		{$1}(\%$form);
 	} elsif ($line !~ /^\s*$/) {
 		die "Parse error in script file: $line";
 	}

Added: trunk/utils/cli/sample.lsmb
===================================================================
--- trunk/utils/cli/sample.lsmb	                        (rev 0)
+++ trunk/utils/cli/sample.lsmb	2006-11-01 05:07:33 UTC (rev 447)
@@ -0,0 +1,6 @@
+# THe below line shows how to set the PGUSER environment variable
+ENV:PGUSER = postgres
+user = demo # set username
+password = demo # set password
+MODULE AR # load AR
+CALL AR::transactions


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.