Hello, everyone.
I have recently had some serious hardware issues on my server(s) and in the rebuilding process I have taken some time to rework the *.cmd files that start and restart my servers. The following example is for named.exe, but is typical of how I start/restart all of my server software.
While the following REXX script
--
/* 'Named Run.cmd' starts the DNS server named.exe and keeps it going. Created 180127
Last modified 180128, 180201, 180208, */
Do Forever
'ECHO OFF'
/* set window size */
'mode 29,7'
Say 'Named is running'
/* adjust as necessary */
'set path=C:\mptn\etc'
'C:'
'cd \mptn\etc'
'named'
Call Syssleep 2
end
exit do
--
works fine and loads the server well enough, (in this case named.exe), when it auto restarts after it fails, (or by testing via ^C), I get the following error;
SYS1041: The name mode is not recognized as an internal or external command, operable program or batch file.
10 *-* 'mode 29,7';
+++ RC(1041)
I'm no expert on this, but I know that some people who frequent this site are.
Can one of you experts, (or anyone for that matter), tell me why "mode 29,7" is accepted at first run, but not upon restart?
Thanks.