Re: Kill a job in a script?
Anton81 <forum@xxxxxxxxxxxxxxxx> wrote:
> I have scripts where I start command in the background and want to kill them
> later. I don't manage to kill them. What's a possible way?
Well, manage!
> Something like:
> nedit file.txt &
> ...
> kill <thatjob>
Use the PID of the job in the kill.
If you mean to ask "how do I get the PID of a just launched process in
a bash script", ask that (preferably only after first looking it up, if
you don't find it).
Peter
.
Relevant Pages
- Re: [opensuse] Help Killling Process
... will not die nor will it display anything. ... I remember from the 'old days' that there is a cli command to ... identify a process id and another one to kill a process. ... This will give you a listing of the processes and their pid' although ... (SuSE) - Re: openoffice.org wont open files on my usb drive
... First check whether openoffice is running/not by the following command ... Here you get the process id (pid) of open office ... Kill the process by the following command ... (Debian-User) - Re: [opensuse] Help Killling Process
... I remember from the 'old days' that there is a cli command to ... (the first number for each process is the PID, the second is the PID of the ... Locate the PID for the process you wish to terminate and use the 'kill' ... To kill the xterm process in the above example, ... (SuSE) - Re: Question about a dd command.
... elmo wrote: ... basic 'dd' command that will copy and display the transfer action. ... variable named "pid" so we can use it later to send signals to the process. ... kill $pid: Kill the actual process. ... (Ubuntu) - Re: killing child processes
... It's that the kill command does nothing. ... >> UID PID PPID TTY STIME COMMAND ... but not the sleep command that is it's ... (comp.unix.shell) |
|