564 Tivoli Business Systems Manager Version 2.1: End-to-End Business Impact Management
END {
print "go"
print "print \047Done.\047"
print "go"
}
' "$*"
}
main()
{
# Get Database Server, User, Password from Registry
eval `regdmp "HKEY_LOCAL_MACHINE\SOFTWARE\Accessible Software,
Inc.\Access1\1.0\Settings\DB" | awk '/Server/ {printf("db_server=%s\n",$3);}
/User/ {printf("db_user=%s\n",$3);} /Password/
{printf("db_password=%s\n",$3);}'`
# create the stored procedure used for the insert
create_stored_proc
timestamp=`date +"%Y%m%d_%H%M%S"`;
isql_input_file="$0"."$timestamp".sql.in
isql_output_file="$0"."$timestamp".sql.out
# generate the SQL
generate_sql "$*" > "$isql_input_file"
# apply the SQL
echo 'Outputting SQL to: '"$isql_output_file"'. ...