Shell Scripts>
Stone
The Raft has a program that will let you send AT commands from DOS. Maybe that would help you.
MontyL
#USERAPP "twit's 'nym" "tosshim.bat" where tosshim.bat is "ECHO ATH > COMPORT"
Or somthing along that line. Wolfie's is more elegant, though.
Lab Rat
Alpha Wolf>
if you use the #ADD function, it puts the result in _RESULT. So therefore
#ADD _FOOVAR 1
#ASGN _RESULT _FOOVAR
increments _FOOVAR by one.
can't use just #ADD _FOOVAR 1
Alpha Wolf
right, overcommented... besides, i usually delete all the coments right befor e i put it online... runs faster... >:)
hmm... actually, what if one has accounting disabled and you set the credits to 0? does it kick them off, or ignore it completely?
echo ath0 > com2
heh... i like that idea...
actually... you could have some real fun with another group....
Hmm.. how to kick someone off for the rest of the day...
maybe a group, a date-check... hmm.. scuse me, i'm going to go try something.. :)
MontyL
Wow. Serious NetLag.
MontyL
Your reply (8 days after my entry) arrived here in 4. 12 day turnaround. It'll shorten up considerably, very soon (this weekend).
Accounting disabled prevents timeout of the user, so setting time to 0 would have no effect at all. You should be able to set the accounting status from script, though...
MontyL
Maybe not... Nothing in the Docs.
Alpha Wolf
accounting for a user? hmm...
if you set it to 1 and kick them off, they call back up... they are off for the day, right??
hmm... more work to be done...
Lab Rat
Alpha > I assume your latest post is referring to an accounting-enabled environment. in which case no they would be on briefly, kicked off, and then if they went away for a while they might even stay on for five or ten minutes. Because citadel uses a continuously incrementing accounting refresh system.
so if you wanted them off for a while you'd have to set their accounting to -30 or something.
MontyL
Yup. It gives 'em 60 seconds to say good-bye, and won't let them back in 'til midnight + a few seconds...
Alpha Wolf
Lab Rat: Ah, so you can set the users time as negative... >:) hmm...
does the accounting refresh itself at midnight?
(or at least every 24 hours???)
Black Wolf
hmm
Lab Rat
Uh Monty, no.
Citadel does a continuous refresh. I'm not sure how the exact algorithm works (you'd have to talk to brent) but say if you are kicked off with zero minutes, if you wait like an hour or so and log back in, you'll have say 5 minutes in your account.
And if you wait several hours, it will refresh your account back to the original level, at which point it will stop.
actually I want to know what the algorithm is.
BRENT > TELL US WHAT THE ACCOUNTING REFRESH ALGORITHM IS!!!!!!!!
Alpha Wolf
>>>>:)
MontyL
So much for that idea...
Back to setting it to negative time.
So, on login, Cit checks the logout time of the previous connect, and adds a proportional amount of the daily increment, up to the maximum?
Lab Rat
Monty > not the logout time, no. it keeps a running total of your current time allowed.
but the rest is exactly on.
MontyL
Constantly updating _every_ user's time? Eeek. What a method.
Lab Rat
Monty >
No, of course not! It updates it when next you log on.
But to the user it appears the cit has been keeping track the whole time he's been off.
MontyL
What I posted at the end of Oct 18th...
Richard Goldfinder
Geez... it uses the values in GRPDATA.CIT to figure out what your balance
should be. It multiplies the number of days and partial days by #DAY_INC for
the value. The days it just straight multiplies, the seconds it multiplies by
#DAY_INC then divides by 86400 (60*60*24).
If the amount of time from your last call is negative, it gives you a day's
worth of credits for the sysop's mistake in bad timekeeping.
It then takes the lesser of that value and #MAX_BAL, and that's your number
of credits.
There's no doubt in my mind that Lab Rat is referring to the seconds when he refers to continuous refresh. Not exactly continuous, since it's by the second, but probably close enough.
MontyL
Yo, Richard...
continuous refresh...
&)
Lab Rat
Rich >
yeah, by continuous refresh I am referring to the seconds bit. just a bad choice of words on my part, or perhaps my mind is warped; or maybe I'm confused and lost because someone stole my brain a few days ago.
but you should take out the code for giving a day's worth of credits for negative accounting; if people download a single file that takes, say, three or four hours, and you normally get sixty minutes a day, I don't (or should say wouldn't) want that user to be able to log in again until he had waited the full two or three days...
or am I misunderstanding something?
Richard Goldfinder
I guess I wasn't adequately clear above.
When I said "If the amount of time from your last call is negative", I meant the amount of time that had transpired, not the number of credits in the account.
For example, several people get confused about the current year in the first week of January. If one call you logged in 1/1/95 and the next call you logged in on 1/5/94, rather than giving you a huge number of negative credits (because the number of days transpired is negative), it'll give you a day's worth (for the sysop's mistake in bad timekeeping).
Of course, when the sysop sets the clock properly and you call again on 1/9/95, the system will think it's been over a year since you called last and you'll probably end up with quite a load of credits, so we don't worry about that.
MontyL
Good point, lr...
Sysop's 'bad timekeeping', indeed. I'd much prefer to keep the *.* dl'er honest, and hold him off for the time he used.
Lab Rat
richard >
ah! thanks for the clarification.
don't you hate it when you're so tired that you can feel the room spinning mildly... or maybe that is just my rollie-chair...
MontyL
Check your wheels, lr...
Much more sense the second time around, Richard. Thanks!
Shell Scripts> _