>> Fastbase Business Software Ltd

Fastbase Accounting System - Online Manual

Setup.dat - System Settings

Document 103111/1

Entered Thu, 3 Apr 2003 16:45 by Peter Campbell
Updated Thu, 3 Apr 2003 16:48
Previous


set setup(overnight_script) ""
If you want reports and/or other jobs to be run on an overnight basis you can enter a script here to do this. The overnight script will be run sometime soon after midnight every night - provided the fastbase remote server is running.

# sample overnight script for running the stock cost adjustments report
set setup(overnight_script) {
variable start_date [date::startofmonth $login::in_module(PERIOD_END_DATE)]
variable end_date [date::today]
variable report_detail "E"
source Processing/Stock_Costing/Stock_Cost_Update.tcl
output::input "" -output "E" -email pc@acs.co.nz
run_report
}


This sample script runs the stock cost adjustments report and sends the output via email to pc@acs.co.nz.

You need to take care when creating the output as there will be problems if the parameters are invalid and the fbserver program will generate an error and probably stop functioning.

To send output to a printer use: output::input -output P -printer_output "REPORTS" or similar and make sure there is a printer defined with an output of "REPORTS".

Caution is required when defining the overnight script, consult your FastBase support staff for assistance.


Online documentation: enter keywords to search for: