Messages - johnny09033 [ switch to compact view ]

Pages: [1]
1
First of all i downloaded rdpy from here: https://github.com/citronneur/rdpy
Now i create a .bat script to run over 2000 servers, something like this:
rdpy-rdpscreenshot.py -w 1024 -l 800 -o C:/tmp/ 23.228.142.165
rdpy-rdpscreenshot.py -w 2000 -l 1200 -o C:/tmp/ 63.248.225.81
rdpy-rdpscreenshot.py -w 1024 -l 800 -o C:/tmp/ 24.73.34.125
rdpy-rdpscreenshot.py -w 1024 -l 800 -o C:/tmp/ 63.249.40.114

here a succesull line: https://pastebin.com/XqWpn3RU
here that error,the problem is batch not progressin anymore, stops to that line with this error: https://pastebin.com/daRqSV0Y

i used a small tool to compare the 2 files and the diference is this:
r
dpy.core.error.RDPSecurityNegoFail: negotiation failure code 5[*] INFO:       save screenshot into C:/tmp/24.73.34.125.jpg

i forgot, rdpscreenshot.py downlaod link: https://hostr.co/DbIlikz8a0PK
and here rdpscreenshot.pyc (complied file): https://hostr.co/PxhPC81sjDk7

2
I need a batch command to stop the process and exit immediately when it finds this error:
connection error

the batch works with a certain tool and these are some benchmarks if they help something
The script I own closes the process in these situations and I want someone to help me add a new situation


:: Controll stopping
:: (1=enable,0=disable;)

:: Error exit codes
SET /A ERROR_UNKNOWN=-1
SET /A ERROR_OK=0
SET /A ERROR_NO_BOOKMARK_FOUND=1
SET /A ERROR_NO_MORE_DICTS=2
SET /A ERROR_FINDSTR_UNKNOWN_EXIT_CODE=3

and

1'st exit situation:
:: Check if the file exists
IF NOT EXIST "%filep%" (
ECHO File "%filep%" was not found. Assuming we ran out.
ECHO We did not find.
SET /A errno=%ERROR_NO_MORE_DICTS%
GOTO END
)

Another exit situation:

) ELSE (
:: tool did not run ok. No ideea why. The multitude of checks should have
:: prevented this.
ECHO %tool% exited with non-zero exit code. No ideea why. Contact dev.
SET /A errno=%ERROR_UNKNOWN%
GOTO END
)


The 3'rd situation:

:: Call command
%composedcmd%

:: Check if we ran ok
IF /I "%ERRORLEVEL%" EQU "%ERROR_OK%" (
:: Check if we found mamammia
FIND "Discovered mamammia" "%tooloutfile%" >NUL 2>&1 && (
ECHO mamammia.
GOTO END

I want to add new exit,so when finds this error EXIT:
connection error



THANK YOU!

3
thank you !!!

4
Use a special command to stop the application?
Its about AlwaysUP application and i use it to run other tools As System, i would like to STOP IT only when the Output.txt content finds the word  FINISHED.

http://imgur.com/a/4sy7f

5
helpme stop my.exe process when is IDLE for 1 min?
I run My-Xtool.exe and i see how bytes values are changing,but sometimes that values are static they don't change value anymore that means my .exe goes IDLE,then i want to stop the process automatically,can anyone help me with that please?with a tool or a autoit script or batch, anything
thank you

Pages: [1]
Go to full version