home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!torn!utzoo!censor!kink!hugh
- From: hugh@kink.PhaedraV.On.Ca (Hugh D. Gamble)
- Newsgroups: alt.sys.amiga.uucp
- Subject: Re: UUPOLL Problems
- Message-ID: <4JNes*za1@kink.PhaedraV.On.Ca>
- Date: Sun, 03 Jan 1993 21:27:32 EST
- References: <1hssrnINNog1@usenet.INS.CWRU.Edu> <mbs.1iew@adastra.cvl.va.us>
- Distribution: world
- Organization: Phaedra V
- Lines: 75
-
- In article <mbs.1iew@adastra.cvl.va.us>, Michael B. Smith writes:
-
- > setenv SaveStack `printstack`
- > stack 32768
-
- Because setenv is global you should put the cli number in the name.
- Something like setenv stack[$$] might work.
-
- Better, for 2.0 and above use set to make it local.
-
- And instead of using a "printstack" utility you can just use standard
- AmigaOS scripting like the gnuemacs startup script does:
-
- ===================
-
- set stk=`stack`
- rx "fortytwo=42"
- set stack `rx "say subword($stk, 5, 1)"`
- unset stk
- if not $stack gt 40000 val
- stack 40000
- endif
- run gnuemacs:temacs <a1> <a2> <a3> <a4> <a5> <a6> <a7> <a8> <a9>
- stack $stack
- unset stack
-
- ===================
-
- which even tidies up after itself.
- The rx "fortytwo=42" is a hack to make sure the rexxsuport.library
- gets loaded before it is needed. Dave added that after I sent him my
- script which does a proper check and loads the library if needed.
-
- > uuxqt.real <nil: >nil:
-
- This means that *nothing* will get processed unless you change
- everything else to call uuxqt.real too. Which is good for debugging.
- Or if you only want your incoming jobs to get processed after you poll
- out for some reason (e.g. no incoming calls)
-
- You also want to make sure you add locking to your script. What
- happens it 2 of them are running at once?
-
- I use something much simpler that just makes sure that it doesn't
- start a new uucico if one is already running. It doesn't do retries it
- just keeps you from having dozens of uucico's queued up and eating RAM
- while waiting for a long connection to finish.
-
- ==============
- .key a1,a2,a3,a4,a5,a6,a7,a8,a9,a10
- .bra {
- .ket }
- IF NOT EXISTS t:uucico.LOCK
- echo uucico.s >t:uucico.LOCK
- changetaskpri 60
- Uucico <null: >null: -7 -pri {a1} {a2} {a3} {a4} {a5} {a6} {a7} {a8} {a9} {a10}
- delete t:uucico.LOCK
- ENDIF
- endcli
- ==============
-
- The changetaskpri is in there because I'm having trouble with a
- delicate uucp spoofing connection breaking under AmigaOS 3.x developer
- beta. The problem should go away as soon as a new ROM shows up for my
- Worldblazer but intuition activity causes a loss of packets and this
- causes uucico to break the connection when running with only 3
- windows.
-
- --
- # Hugh D. Gamble UUCP: hugh@kink.UUCP Domain: hugh@kink.PhaedraV.On.Ca %
- # AMIX: HGAMBLE bix: hgamble voice: +1 416 267 6159 %
- # '"U.S. is more restrictive than other places, except maybe Canada." %
- # The kindler, gentler fascists to the North don't consider any form of %
- # self-defense legal.' - Mondo 2000 No. 8 %
-
-