HPOS 4.0 technical note 2
HP Output Server 4
MySQL and JBoss integration framework
Procedure involved in integrating external servers in HP Output Server
$mysql_command="$binpath/mysqld_safe"." --defaults-file=$working_dir/
my.cnf &";
system $mysql_command;
exit(0);
mysql_status.pl
my $working_dir= shift @ARGV;
my $binpath= "$working_dir/bin";
my $my_command;
$mysql_command="$binpath/mysqladmin"." --defaults-file=$working_dir/
my.cnf ping";
open(CAPTURE, "$mysql_command 2>&1 |") || die "can't fork: $!";
binmode (CAPTURE);
while (<CAPTURE>)
{
/^error/ && do
{
exit (1);
}
}
close(CAPTURE);
exit(0);
file name mysql_stop.pl
my $working_dir= shift @ARGV;
my $binpath= "$working_dir/bin";
my $my_command;
$mysql_command="$binpath/mysqladmin"." --defaults-file=$working_dir/my.cnf
shutdown";
open(CAPTURE, "$mysql_command 2>&1 |") || die "can't fork: $!";
binmode (CAPTURE);
while (<CAPTURE>) {
/^error/ && do{
exit (1);
}
}
close(CAPTURE);
exit(0);