home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / alt / sys / amiga / uucp / 3118 next >
Encoding:
Internet Message Format  |  1993-01-04  |  2.9 KB

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