home *** CD-ROM | disk | FTP | other *** search
- Path: draco.prima.ruhr.de!ehb
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Processes
- Distribution: world
- References: <812.6641T87T157@epma.demon.co.uk>
- From: ehb@draco.prima.ruhr.de (Edwin H. Bielawski)
- Message-ID: <ehb.03lj@draco.prima.ruhr.de>
- Date: Sat, 9 Mar 96 09:53:18 +0100
- Organization: private UUCP site Dortmund Scharnhorst (Germany), member of Prima e.V.
-
- In article <812.6641T87T157@epma.demon.co.uk> andy@epma.demon.co.uk (andy) writes:
- >
- >Hi,
- >
- >I've got a bit of a problem with AmigaDOS which I was hoping somebody out
- >there may be able to help me with :)
- >
- >I need to be able to find out the process number of a task so that I can break
- >it later on... i.e.
- >
- >Run Animshower
- >wait 30 secs
- >break Animshower
- >
- >Is there any way that I can find out simply (through DOS or ARexx I don't
- >wanna waste time writing real code :-) what the process number of a task is
- >so that I can store this and later use it to break the task?
-
- Yes, by using the Status command.
-
- I've wrote a batch file.
-
- o /
- ---x
- o \
-
- .key COMMAND/A,BREAK
- .def BREAK All
- .bra ½
- .ket ╗
-
- Status >ENV:BreakProcess COM=½COMMAND╗
- If "$BreakProcess" EQ ""
- echo "Process '½COMMAND╗' not found"
- Else
- BREAK $BreakProcess ½BREAK╗
- EndIf
- UnSetEnv BreakProcess
-
- o /
- ---x
- o \
-
- When the process is started with a path, use it here too!
-
- Run path/Animshower
- wait 30 secs
- cbreak path/Animshower
-
- <ehb
-
- --
- greetings from draco.prima.ruhr.de
-
- Edwin H. Bielawski
-