batch file - Controlling Multiple command prompt through one main window -


does knows how control many command prompt windows through 1 . start many command windows , run multiple commands in of them through batch file. such starting adb shell logcat in one, kmsg in 1 , if kmsg stops turn red, , similar things. need able listen events other command lines , send commands many command prompt 1 after other. reply appreciated. if know how in perl work. plzz help!!

updated;
update notes:

took note of jeb's suggestion , took advice endoro's

okay, little complicated because needs batch files write sort of file , batch file getting / grabbing data said file. in order this, must produce "sender / terminal / main window" batch file;

the script writing of can support 4 batch files being controlled mother batch file.

@echo off :a title main terminal echo --------------------------- set /p prompt1="command 1: " set /p prompt2="command 1: " set /p prompt3="command 1: " set /p prompt4="command 1: " if defined prompt echo %prompt% > com1.rsm if defined prompt2 echo %prompt2% > com2.rsm if defined prompt3 echo %prompt3% > com3.rsm if defined prompt4 echo %prompt4% > com4.rsm :: .rsm file extension means resource module; made myself :3 goto 

receiver

@echo off title reciever 1 :check if exist com1.rsm goto timeout /t 1 >nul echo waiting packet goto check :get set /p prompt1=<com1.rsm %prompt1% del com1.rsm goto check 

receiver 2

@echo off title reciever 2 :check if exist com2.rsm goto timeout /t 1 >nul echo waiting packet goto check :get set /p prompt=<com2.rsm %prompt% del com1.rsm goto check 

receiver 3

@echo off title reciever 3 :check if exist com3.rsm goto timeout /t 1 >nul echo waiting packet goto check :get set /p prompt=<com3.rsm %prompt% del com1.rsm goto check 

receiver 4

@echo off title reciever 4 :check if exist com4.rsm goto timeout /t 1 >nul echo waiting packet goto check :get set /p prompt=<com4.rsm %prompt% del com1.rsm goto check 

you're welcome; sonoroustwo


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -