› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › problem with alert › Re: alert
Here is the alert that finally worked for me. I have only tested it with opening so far but that worked absolutely fine. Rather than stopping the thread , i stopped the process and restarted it because there are only 2 threads in this process and the threads are set to auto start. I have replaced the command with a script but julies cmd.exe /c works fine also.
{VALUE pstat} {SOURCE ae_to_pims} {MODE actual} {WITH -1} {COMP {== error}} {FOR {nmin 5}} {WINDOW {* * * * * *}} {HOST {}} {ACTION {{exec {y:\startup\restart_ftp.cmd}}}}
and here is the script.
:: Stop the FTP Process
set ftplog=y:startupftplog.log
echo. 1>> %ftplog% 2>&1
echo. 1>> %ftplog% 2>&1
call setroot y:quovadxqdx5.2integrator production 1>> %ftplog% 2>&1
call setsite production 1>> %ftplog% 2>&1
echo About to stop FTP Process 1>> %ftplog% 2>&1
hcienginestop -p ftp 1>> %ftplog% 2>&1
echo FTP Shutdown Completed 1>> %ftplog% 2>&1
Wait 8
hcienginerun -p ftp 1>> %ftplog% 2>&1
echo “ftp startup completed” 1>> %ftplog% 2>&1
I have just outputted to a simple log so i can see quickly if it has kicked in.