deemon -daemonizing Scout
- Size
- 12K (11,945 bytes)
- Added
- 2026-11-20 17:29
- Downloads
- 2
- Long Description
- HELLO KIDS! Today im going to make some changes into Your systems =D Do You use Scout from shell often?, Have You noticed that loading it from the disk everytime You need to do some operations is slow like early calculators? ;] Did You tried to make it resident, and it is still slow? Haha, Follow me! We will daemonize the Scout, so it will be running in the background all the time plus it will be invisible for other instances for safety reasons. Needed things are: - Scout in C: (http://www.aminet.net/util/moni/Scout_os3.lha) - WaitForPort in path or move to C: (sys:Rexxc/) - rep in C: (http://www.aminet.net/util/cli/rep.lha) Now I will show You how to setup this thing: " .key QUIET/S .bra « .ket » IF «QUIET» SET consoleo NIL: ELSE SET consoleo CONSOLE: ENDIF FailAt 25 SET inexec SCOUT SET outexec SC0UT SET inpath C: SET outpath T: IF `rx "say SHOW('P','$outexec')"` EQ 1 echo "'$outexec' is already running..." >$consoleo SKIP skipped ENDIF echo ":Daemonizing $inexec as '$outexec' ..." >$consoleo echo "modyfying structure of '$inpath$inexec' and writing to '$outpath$outexec'" >$consoleo rep $inpath$inexec scout.reply sc0ut.reply $outpath$outexec >$consoleo echo "starting up whole thing..." >$consoleo stack 30000 run >NIL: $outpath$outexec ICONIFIED PORTNAME=$outexec stack 4096 WaitForPort $outexec IF WARN echo "failed!" >$consoleo ELSE echo "ready." >$consoleo ENDIF UNSETENV $outpath$outexec LAB skipped UNSET inexec UNSET outexec UNSET inpath UNSET outpath UNSET consoleo " If You want to insert this into Your startup-sequence and don't want to have screen verbosity just comment out all echo's or copy 'daemonize' to C: and insert this: "execute c:daemonize QUIET". You can also insert this after TCP/IP stack and add some network related args so that it will be possible to control Your Amiga from another Amiga running Scout in GUI mode. TECH: this changes the invoke method of Scout from: `scout command=tasks` to: `rx "c='T:T';ADDRESS SC0UT; 'printlist T 'c; a=OPEN(b,c,'R');say READCH(b,65535); a=CLOSE(b);a=DELETE(c)` funny thing is that, that this is not funny ;] ,only requesting lists is such a crap, but there are utils I made to get this easier so relax. BTW: see Scout docs on how to use ARexx interface. Features(what You gain by doing this): - speeEEEEEEd! - non-limited access, even in low memory situations Utils(My very handy ARexx scripts for use with Scout): requirements: - rexxsupport.library (system) - rmh.library (http://www.aminet.net/util/rexx/rmh.lha) - RexxMast (system) - rx, execute in path or in C: - +s bit on script files for command-like invoking utils(scripts): - dump -allows to see any list just by typing one char - signalize -signal tasks [massively] - rexxpriset -change priority [massively] - rexxbreak -term. tasks [massively] - termgen -terminates tasks mainly launched by You - rxterm -very basic ARexx port terminator (non-Scout) NOTE: These scripts work actually without daemonizing, but everything is kinda slowwwww coz Scout needs to be loaded from the disk everytime some function of it is being requested... dump (help: '--help') ======================= " template: dump [list/K],[word/K],[col/N],[ic/S] examples: dump ,CON,, | dump t,CON,8 | dump t,CON,,ic [list/K]: Allocations (a), BoopsiClasses (b), Commands (c), Devices (d), Timer (e), Fonts (f), Assigns (g), InputHandlers (h), Interrupts (i), LowMemory (j), Commodities (k), Libraries (l), Memory (m), Mounts (n), Locks (o), Ports (p), Residents (r), Semaphores (s), Tasks (t), Resources (u), Vectors (v), Windows (w), Expansions (x), System (y) and ScreenMode (z). + Timer (1), Patches (2). NOTE: last two entries r only accessible through the task " - [word/K] - allows to scan for particular word(s) - [col/N] - searches in s
- SHA-256
cdb2031a7f54eaf69f423c761177795a37782f502b5754c5da4ab422ab071818