This page was printed from dotFAF.com on 07 Jan., 2009
More Than Productive
Author: Faf
Date: Friday, January 24, 2003
Date/Time: 09:46 GMT
Permanent URL: http://dotfaf.com/archives/20030124_more_than_productive.php
So i sort of wasnt telling the exact truth when i said i didnt like having nothing to do regarding Lazy Person/Prodcutive Worker[1]. One of the main reasons why i didnt want it to cycle through the list was because everynow and then it came across an account that was locked and needed higher access rights than my username allowed to edit/add details.
The good thing about the Powerterm scripting is that you can tell it to copy any text off the screen by telling it which co-ordinates (column by row) you want. Basically, on an error page, we'll have a different tite text for the terminal screen. I only wanted it to continue copying and pasting whiles it was on the right screen. ie. the job search screen (repair job).
# was process stopped
datastore = [file exists datafile.txt]
proc datacheck datastore {
if {$datastore == 1} {return -code ok} else {
return -code error -errorcode NOFILE "The data store does not exist. The
process was probably stopped"
}
}
eval datacheck $datastore
#wait for screen to update
wait 2 seconds
#check the screen
wherearewe = [screen-rect 2 36 2 45]
whereweare = [join $wherearewe _]
proc screencheck whereweare {
if {$whereweare == "Job_Search"} {return -code ok} else {
return -code error -errorcode BADSCREEN "You're on the wrong screen."
}
}
#message $whereweare
eval screencheck $whereweare
#line below is for debugging
#message "houston, we've landed"
#run the old code, which in turn calls this after completion. cyclical, innit!
run TE_repair.psl
So there. I push one button. it cycles thru a datafile of 2000+ transaction IDs... and only stops to prompt me to reset when it gets and error. Of course this only happens in about every one out of 500 records, but i might just get bored of that too and add some bit more checks to reset if an error occurs.
You might also like to know that i'm not keeping it quiet and i'm the talk of the office now. Rightly so too. They were doing 300 a day and last time i checked, i was doing 2000+ a day and that was before i added this new script to do it all without my intervention.
Looks like getting a permanent job here is possible afterall. :)
Comments on this entry:
TrackBack URL for this entry:
http://www.dotfaf.com/cgi-bin/mt/mt-tb.cgi/195
Trackback Pings Received count (2)
It All Pays Off
Being Lazy/Productive does pay off afterall. I've just had a meeting with Paul. As of next week Monday, I'll not be working for CPW thru an agency anymore. I've just been offered a permanent position with a slight pay rise. I havent been moved to the I...
Site: dotFAF.com | Version 2.3
Date: February 3, 2003 2:59 PM
URL: http://dotfaf.com/archives/000778.php
Pee Wee's Big Pissing Contest
I actually do enjoy my work. It's the best things since Google's Toolbar. I'm yet to sign the documents that will bind me to this job for rest of the year. What happens after that only god knows. Anyway... because i can actually work without working. T...
Site: dotFAF.com
Date: February 6, 2003 4:01 PM
URL: http://dotfaf.com/archives/000782.php
Trackback Pings Sent count (0):
Hyperlinks in entry:
1) http://www.dotfaf.com/v2/entry.php?title=20030123_lazy_personproductive_worker