Hi all!
I wirte a little Shell Script, that kill pids by programm names. For example, when i want to kill any pid of xmms i use this command:
kill -9 `ps -A | awk ' ($4=="xmms") {print $1}'`
To put this in a "killprg" script i use the following linkes:
#!/bin/bash
echo ""
echo "Programm... (2 Replies)
Hello guys,
I have a process named monitoreo, with 'monitoreo start' my process start until i kill them, now i want to do 'monitoreo stop' to kill them.
After 'monitoreo start' i have this process running:
ps -af
UID PID PPID C STIME TTY TIME CMD
ati 10958 1495 ... (5 Replies)
Hi All,
I am unable to kill a process using kill command. I am using HP-UX system. I have tried with kill -9 and i have root privilages.
How can i terminate this daemon ? ? ?
Regards,
Vijay Hegde (3 Replies)
hello Bros,
I need to write some script that i can put it on crontab which checks for a process X if running. If the process X is ruuning then take the PID and kill it or display message that says process X is not running.
I am using AIX 5.3
Thanks guys.:b: (2 Replies)
Does anybody got an idea to write a script to kill a long list of processes automatic?
I got try this:
ps -ef | grep 'my_name'
After that, I used the "kill -9 PID".
It seems like quite inefficient if I got a long list of processes need to terminate or kill it :(
Thanks a lot for any... (2 Replies)
Hi,
I am using the below command to kill the firefox process i have opened in Redhat 5.
ps -ef|grep fire|grep -v grep|awk '{print $2}'|xargs kill -9
If i execute the above command in terminal it works good and kills session.
but when i use alias for that it is not working.
alias... (2 Replies)
I want to warn everyone, I am not a programmer lol. I'm an IT wanting to get a little insight of programming, and I like to play around so I can learn. Ok, so I'm going to school for IT Security and Forensics. I had a project to write a hack, and I chose to write a shell script to run dd to write... (8 Replies)
Hi,
I have created a shell script which is used by many users to change their password/unlock, etc., via menu. There is possibility users just close the putty window without proper exit from menu.
I want a solution so that if anybody forgets to stop that session, it should kill automatically... (9 Replies)
Good afternoon
I need to KILL a process in a single command sentence, for example:
kill -9 `ps -aef | grep 'CAL255.4ge' | grep -v grep | awk '{print $2}'`
That sentence Kills the process ID corresponding to the program CAL255.4ge.
However it is possible that the same program... (6 Replies)
I'd like to terminate scripts.
These scripts are not by me, but other persons. These contain other programs such as ping, nmap, arp, etc.
If such a script is running, how can I terminate this script AND all processes called by this script?
These scripts are big so terminating all programs... (4 Replies)
Discussion started by: lordofazeroth
4 Replies
LEARN ABOUT OPENSOLARIS
slpfindscopes
SLPFindScopes(3SLP) Service Location Protocol Library Functions SLPFindScopes(3SLP)NAME
SLPFindScopes - return list of configured and discovered scopes
SYNOPSIS
cc [ flag... ] file... -lslp [ library... ]
#include <slp.h>
SLPError SLPFindScopes(SLPHandle hSLP, char** ppcScopes);
DESCRIPTION
The SLPFindScopes() function sets the ppcScopes parameter to a pointer to a comma-separated list including all available scope names.
The list of scopes comes from a variety of sources: the configuration file, the net.slp.useScopes property and the net.slp.DAAddresses
property, DHCP, or through the DA discovery process. If there is any order to the scopes, preferred scopes are listed
before less desirable scopes. There is always at least one string in the array, the default scope, DEFAULT.
If no error occurs, SLPFindScopes() returns SLP_OK, otherwise, it returns the appropriate error code.
PARAMETERS
hSLP The SLPHandle on which to search for scopes. hSLP cannot be NULL.
ppcScopes A pointer to a char pointer into which the buffer pointer is placed upon return. The buffer is null-terminated. The
memory should be freed by calling SLPFree(). See SLPFree(3SLP)ERRORS
This function or its callback may return any SLP error code. See the ERRORS section in slp_api(3SLP).
EXAMPLES
Example 1 Finding Configured or Discovered Scopes
Use the following example to find configured or discovered scopes:
SLPHandle hSLP;
char *ppcScopes;
SLPError err;
error = SLPFindScopes(hSLP, & ppcScopes);
ENVIRONMENT VARIABLES
SLP_CONF_FILE When set, use this file for configuration.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWslpu |
+-----------------------------+-----------------------------+
SEE ALSO slpd(1M), slp_api(3SLP), SLPFree(3SLP), slp.conf(4), slpd.reg(4), attributes(5)
System Administration Guide: Network Services
Guttman, E., Perkins, C., Veizades, J., and Day, M. RFC 2608, Service Location Protocol, Version 2. The Internet Society. June 1999.
Kempf, J. and Guttman, E. RFC 2614, An API for Service Location. The Internet Society. June 1999.
SunOS 5.11 16 Jan 2003 SLPFindScopes(3SLP)