This question is really directed at Irix (5.3), but I guess it could
be similar on other Unix systems.
What I want to be able to do is tell the system to redirect certain
type(s) of processes at any time.
So for example, it detects that an 'ipaste' process has started up,
but instead of displaying the image on the current system, it redirects
it to another system, or perhaps even to /dev/null.
I've tried various ways to do it. Firstly just a simple script that
checked every 10 seconds (via sleep) my process list (ps -ef) to see
if the process had started. Two problems here - firstly I could only
intercept the rogue process AFTER it had started on my system, and
2ndly it slowed the machine down to an annoying level.
Then i tried the "period" option (set tperiod = {time} : alias periodic etc...)
but it didn't seem to work as I wanted either. It appeared to be releated
to just a certain shell and not the whole system.
Lastly I tried to set up a cron to do it. Again, this would only be
able to act /after/ the rogue process had started. But I think my real
problem with it might have been that it was using sh to run my script
whereas my script was tcsh.
---
I'll explain my situation and maybe that will help understand the problem.
At work we play a lot of Deathmatch Doom :). One of the guys made himself
a script which - at his command - sent a string of about 20 small images
to all the other system, and you MUST click down all 20 images before
you can get back to Doom. A neat trick, but annoying.
So I'm trying to find a good way to get him back. I'd like to be able
to get the images to be redirected back to him even before I see them.
But failing that i just want to be able to detect that they have happened
and run a script to deal with him (prolly by killing his Doom process -
not as nice, but it'll confuse him).
--
Well, I know a little Irix, but to do this goes beyond my knowledge limits.
Anyone willing to be an accomplace to the revenge is welcome to give
me some info :).
Cheers,
Row.
--
Animagrafx