Configuring STARTALL.cmd command to auto start all processess: Difference between revisions

From NEOSYS Technical Support Wiki
Jump to navigationJump to search
m (2 revisions)
No edit summary
 
Line 3: Line 3:
Create a .cmd file with the following command lines:
Create a .cmd file with the following command lines:


  start cmd /c "D:\hosts\markone\Start MARKONE.cmd"
  @echo press any key to START all neosys processes OR
  c:\cygwin\bin\sleep 3
@echo press Ctrl+C within 10 seconds followed by Y to cancel
  start cmd /c "D:\hosts\orange\Start ORANGERIE.cmd"
c:\cygwin\bin\sleep 10
  c:\cygwin\bin\sleep 3
if exist d:\global.end.temp del d:\global.end.temp
  if exist d:\global.end ren d:\global.end global.end.temp
SET SPEED=FAST
  d:
cd \neosys\neosys
Start neosys.js /system ADAGENCY /database XXXX
  c:\cygwin\bin\sleep 1
Start neosys.js /system ADAGENCY /database XXXX
Start neosys.js /system ADAGENCY /database XXXX


The <b> c:\cygwin\bin\sleep 3 </b> is to give a 3 second gap between each process startup.
The <b> c:\cygwin\bin\sleep 1 </b> is to give a 1 second gap between each process startup.


Likewise you can add additional lines to start up additional processes.
Likewise you can add additional lines to start up additional processes.


Incase you need to disable a process startup temporarily, instead of deleting the line, you may add the word <B> REM </b> (meaning REMARK) before the start of the line and the line will be ignored till such time the remark is there.
Incase you need to disable a process startup temporarily, instead of deleting the line, you may add the word <B> REM </b> (meaning REMARK) before the start of the line and the line will be ignored till such time the remark is there.

Latest revision as of 08:58, 9 September 2018

Setting up the file

Create a .cmd file with the following command lines:

@echo press any key to START all neosys processes OR
@echo press Ctrl+C within 10 seconds followed by Y to cancel
c:\cygwin\bin\sleep 10
if exist d:\global.end.temp del d:\global.end.temp
if exist d:\global.end ren d:\global.end global.end.temp
SET SPEED=FAST
d:
cd \neosys\neosys
Start neosys.js /system ADAGENCY /database XXXX
c:\cygwin\bin\sleep 1
Start neosys.js /system ADAGENCY /database XXXX
Start neosys.js /system ADAGENCY /database XXXX

The c:\cygwin\bin\sleep 1 is to give a 1 second gap between each process startup.

Likewise you can add additional lines to start up additional processes.

Incase you need to disable a process startup temporarily, instead of deleting the line, you may add the word REM (meaning REMARK) before the start of the line and the line will be ignored till such time the remark is there.