zeroendless
Programmer
Hi, guys.
Totally new to Aspect and been reading and searching this thread for answer, Here's is i want to do.
I need to connect to a host using the connection directory entries ( data class, entries name "Test" , log in, password then choose service, capture the screen, save into file. This has to be done daily, without human interaction.
i know how to schedule windows task with bat file.
Anyway, so far, I'm able to automate the login, capture the file, trim and extract unwanted prints from file, resave in another file.
Here's my problems,
1)how do i call the connection directory put into the script, so when i exe "pw5 sriptname" in cmd, it will dial, then exe the script?
2)say i already saved the file, how do i call the file again, check for string "99," ( error checking if file is completed)
while not "99," repeat the whole process again, if not success after 5 times, waiting for 10 minutes, try it again.
it's sounds like a better way to check if the file is completed? the "99," is the key to determind if prints on screen is completed. Or may be i can apply the error checking based on the prints on screen before saving the file? help me up, thx u
quick sample of the capture file, the only data is i need is row from 01 to 99
........................................
Connected to xxxxxxx
CUSTOMER ID: xxxxxxx
CUSTOMER PASSWORD:
OPERATOR ID: xxxxxxx
OPERATOR PASSWORD:
WELCOME TO xxxx USA
ON AT 19MAR03 10:06 EST CONNECTED TO TERMINAL \xxx.xxxx.xxxx
DESIRED SERVICE: abcd
READY INPUT DEVICE - ENTER A CARRIAGE RETURN TO BEGIN REPORT
01,xxx,xxx,xxx,eee,dd,80,1,2/
02,xxx,xxx,1,030318,xxx,xxx,1/
03,xxx,USD,15,2600,,Z,20,xxx,,Z,25,200,,Z,40,2600,,Z,45,2500,,Z,50/
88,800,,Z,55,200,,Z,72,100,,Z,74,0,,Z,75,0,,Z,100,100,1,Z,182,100,,Z,400/
88,0,0,Z,482,0,,Z/
16,175,100,,,6,/
49,10100,5/
98,10100,1,7/
99,10100,1,9/
DESIRED SERVICE:
-------------------------------------------
Totally new to Aspect and been reading and searching this thread for answer, Here's is i want to do.
I need to connect to a host using the connection directory entries ( data class, entries name "Test" , log in, password then choose service, capture the screen, save into file. This has to be done daily, without human interaction.
i know how to schedule windows task with bat file.
Anyway, so far, I'm able to automate the login, capture the file, trim and extract unwanted prints from file, resave in another file.
Here's my problems,
1)how do i call the connection directory put into the script, so when i exe "pw5 sriptname" in cmd, it will dial, then exe the script?
2)say i already saved the file, how do i call the file again, check for string "99," ( error checking if file is completed)
while not "99," repeat the whole process again, if not success after 5 times, waiting for 10 minutes, try it again.
it's sounds like a better way to check if the file is completed? the "99," is the key to determind if prints on screen is completed. Or may be i can apply the error checking based on the prints on screen before saving the file? help me up, thx u
quick sample of the capture file, the only data is i need is row from 01 to 99
........................................
Connected to xxxxxxx
CUSTOMER ID: xxxxxxx
CUSTOMER PASSWORD:
OPERATOR ID: xxxxxxx
OPERATOR PASSWORD:
WELCOME TO xxxx USA
ON AT 19MAR03 10:06 EST CONNECTED TO TERMINAL \xxx.xxxx.xxxx
DESIRED SERVICE: abcd
READY INPUT DEVICE - ENTER A CARRIAGE RETURN TO BEGIN REPORT
01,xxx,xxx,xxx,eee,dd,80,1,2/
02,xxx,xxx,1,030318,xxx,xxx,1/
03,xxx,USD,15,2600,,Z,20,xxx,,Z,25,200,,Z,40,2600,,Z,45,2500,,Z,50/
88,800,,Z,55,200,,Z,72,100,,Z,74,0,,Z,75,0,,Z,100,100,1,Z,182,100,,Z,400/
88,0,0,Z,482,0,,Z/
16,175,100,,,6,/
49,10100,5/
98,10100,1,7/
99,10100,1,9/
DESIRED SERVICE:
-------------------------------------------