Reading the output from a cli command in ash

tebee

Member
Is there a way to get the output that a cli command produces so I can try and phrase it in an ash script?

Specifically I'm trying to get the info "counters" produces to see I'm near the turn to possibly get a semi-rare.

Tom
 
Sorry, I should have been more exact, it's the first line e.g. "Last semirare found 87 turns ago (on turn 8511) in Knob Goblin Laboratory" I'm trying to get, not the active counters. so I know where the last was found as well and I can make an educated guess when the next one would be due without eating fortune cookies.

Tom
 
get_property( "semirareLocation" );
get_property( "semirareCounter" );

gives the location and turncount of last semirare as reported by the "counters" command. I bet you could have figured this out yourself by looking at your xxx_settings.txt file. ;)

my_turncount();

gives current turncount.
 
I probably could have worked it out; had it occurred to me that was the place they where stored, though come to think of it it's probably the only place they could be stored.

I'll put it down to old age.........


Tom
 
Back
Top