Sponsored Content
Top Forums Shell Programming and Scripting kill multiple instances of the same program Post 302151565 by ipzig on Sunday 16th of December 2007 11:37:28 AM
Old 12-16-2007
I don't have pkill.

Yet, I know the answers a doddle if you can combine kill, ps -fu, and awk '{print $2}' (with ps).

Only, am not able to do it myself, and waiting for a shell expert to do it for me.. Smilie

Regards
ipzig
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

multiple instances of syslogd - is it possible?

I would like to start up multiple instances of syslog daemon. I am having a little difficulty. Is this at all possible? I have separate syslog.conf1.... syslog.conf5 files. I have linked the daemon to separate files syslogd1 ... syslogd5 I have arranged the rcd.2 start/stop scripts for... (9 Replies)
Discussion started by: Gary Dunn
9 Replies

2. UNIX for Dummies Questions & Answers

Multiple file instances

I am capturing text based reports with a specific program, which works no problem. However, since I send report warehouse output as they are migrated from the database software, on occasion when two capture process' initiate simultaneously, the capture file locks up. Is there a way to setup (in... (1 Reply)
Discussion started by: gozer13
1 Replies

3. Shell Programming and Scripting

Creating instances of a program

Hi, Presently I have script #!/bin/ksh in which 4 executables are executed as 1,2,3 and 4.Executable 2 is an extract program which extracts records from a table.and executable 4 is a program that updates a database. Currenlty this process takes a hell lot of time and my aim is to reduce the... (2 Replies)
Discussion started by: tushar_johri
2 Replies

4. UNIX for Advanced & Expert Users

Multiple (thousands) of Cron Instances

Hey all, I have a box running SUSE SLES 8 and in the past few months the box will randomly spawn thousands of instances of /USR/SBIN/CRON to the point where the box will lock up entirely. Upwards of 14000 instances! I imagine it's using up all of the available files that can be opened at one... (10 Replies)
Discussion started by: sysera
10 Replies

5. Shell Programming and Scripting

detecting multiple instances

Hi Gurus I have a requirement like this. i use solaris OS.. if there are 2 instances of the same ksh file running in the directory, i need to kill the ksh file that started to run latest. suppose ragha.ksh starts running thru cron in abc/xyz directory now ragha.ksh started running by any... (3 Replies)
Discussion started by: ragha81
3 Replies

6. Solaris

ypbind - multiple instances starting

I have built this Solaris 10 server, uses NIS. When the server starts up, two instances of ypbind start. This prevents the server from binding to any domain. The SMF in turn prevents any other network services (sshd and the like) from starting up. Has anyone seen this problem before? (0 Replies)
Discussion started by: blowtorch
0 Replies

7. Shell Programming and Scripting

Multiple instances of a job.

Could you please let me know how to create/make a multiple instances of a job/process in ksh(shell scripting). i.e., at present the parent script is calling another child/dependent script for only once. What we want is, the parent script itself has to execute multiple times, and in each one it... (1 Reply)
Discussion started by: Gangegowda
1 Replies

8. Shell Programming and Scripting

Grep with multiple instances of same pattern

Hi, This is my text file I'm trying to Grep. Apple Location Greenland Rdsds dsds fdfd ddsads http Received Return Immediately Received End My Grep command: grep only--matching 'Location.*Received' Because the keyword Received appears twice, the Grep command will stop at the last... (3 Replies)
Discussion started by: spywarebox
3 Replies

9. Programming

Control multiple program instances - open multiple files problem

Hello. This shouldn't be an unusual problem, but I cannot find anything about it at google or at other search machine. So, I've made an application using C++ and QtCreator. I 've made a new mime type for application's project files. My system (ubuntu 10.10), when I right click a file and I... (3 Replies)
Discussion started by: hakermania
3 Replies

10. Programming

Multiple instances of pthread

Suppose I declare pthread_t clear_thread; and then pthread_create(&clear_thread, &detach, clear_message, this); the thread is supposed to go away, perform the service it is intended to procide, and then kill itself. A little while later, I require this service again, so I say ... (2 Replies)
Discussion started by: clerew
2 Replies
DH_CLIGACPOLICY(1)				Debhelper for CLI (Common Language Infrastructure)				DH_CLIGACPOLICY(1)

NAME
dh_cligacpolicy - creates and installs a CLI policy file for a package SYNOPSIS
dh_cligacpolicy [debhelper options] [-n] DESCRIPTION
dh_cligacpolicy is a debhelper program that is responsible for creating, compiling, and installing policy files for a Debian package. This automatically includes postinst and prerm commands needed to install these policies into the system. OPTIONS
-n, --noscripts Do not modify postinst/prerm scripts. FILE FORMAT
This file uses the debian/cligacpolicy files (either policyassemblies or debian/packagename.cligacpolicy) to generate the policy file. It supports multiple versions of the policy, including mapping multiple versions to a single file. The file format of the cligacpolicy file consists of five properties per line, each one separated by whitespace. Keyfile is a path, from the package root, to the .snk file =used to sign the assembly. Assembly is the name of the assembly, without the .dll =extension. For example, for log4net.dll, use log4net. Version Range can be a single four-part version, such as =1.2.3.4, or a full range, such as 1.2.3.4-1.2.6.7. For a single line, =the first two numbers must be identical. To have an assembly apply to =multiple versions, such as 1.2.0.0 to 2.4.0.0, there needs to be one =line for each version range. Assembly version is the version of the assembly being =built. Priority defines the priority of the policy files. =Typically, each version will increase the priority and =contains all the policy controls for prior versions. The fields can be separated with spaces or tabs. Comments start the line with # characters and blank lines are ignored. NOTES
Note that this command is not idempotent. "dh_clean -k" should be called between invocations of this command. Otherwise, it may cause multiple instances of the same text to be added to maintainer scripts. EXAMPLE
For the log4net 1.2.10.0 version, a policy file is used to map all versions from 1.2.8.0 to 1.2.9.99 into the current version. debian/log4net.snk log4net 1.2.8.0-1.2.9.99 1.2.10.0 10 SEE ALSO
debhelper(7) This program is a part of cli-common-dev. AUTHOR
Dylan R. E. Moonfire <debian@mfgames.com> POD ERRORS
Hey! The above document had some coding errors, which are explained below: Around line 31: You forgot a '=back' before '=head1' perl v5.14.2 2012-01-17 DH_CLIGACPOLICY(1)
All times are GMT -4. The time now is 09:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy