10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am writing a script to kick off a process to gather logs on multiple nodes in parallel using "&". These processes create individual log files. Which I would like to filter and convert in CSV format after they are complete. I am facing following issues:
1. Monitor all Processes parallelly.... (5 Replies)
Discussion started by: shunya
2. Shell Programming and Scripting
is there a universal way of getting the children of a particular process? i'm looking for a solution that works across different OSes...linux, aix, sunos, hpux.
i did a search online and i kept finding answers that were specific to Linux..i.e. pstree.
i want to be able to specify a process... (2 Replies)
Discussion started by: SkySmart
Hi Unix lovers,
I am trying to seek an explanation for a simple looking code - why it works?
I found below program which hide command line argument in ps command.
int main(int argc, char **argv)
// process command line arguments....
// hide command... (4 Replies)
Discussion started by: shriashishpatil
I'd like to remove this defunct processes without rebooting. Or, I could remove this defuncts when the maximum allowable process is nearly reached, then send an email to the user/team. How can I determine the maximum allowable process that a server can handle? Any thoughts?
Jin@PRODUCTION: >... (3 Replies)
Discussion started by: Jin_
5. Shell Programming and Scripting
I had issues with processes locking up. This script checks for processes and kills them if they are older than a certain time.
Its uses some functions you'll need to define or remove, like slog() which I use for logging, and is_running() which checks if this script is already running so you can... (0 Replies)
Discussion started by: sukerman
6. UNIX for Dummies Questions & Answers
I'm a newbie when it comes to using UNIX, and I'm hoping someone here can help me out. I have a set of processes that I want to run sequentially:
I want to know I can run these sequentially using their process IDs (PIDs). Ideally, I want to... (2 Replies)
Discussion started by: shelata
7. UNIX for Advanced & Expert Users
I am trying to see if there are some options in ps command or if there is a shell script which basically shows you all the processes spawned by a parent process , then all the processes of its child processes and so on down the hierarchy may be like a tree structure. It might be a generic... (6 Replies)
Discussion started by: clifford
8. Shell Programming and Scripting
Is there a way I can run a command that will run in the kernel or in the memory and automatically kill certain scripts if they get to <defunct> processes, without having to be monitoring the server manually?
I have a Perl script which runs for 20k members and normally does not have any problems,... (2 Replies)
Discussion started by: ukndoit
9. UNIX for Dummies Questions & Answers
I am trying to figure out away to hide a command from users when performing a ps check. I have a ksh that purges a table in a database. If I perform a >ps -eaf |grep ksh, I get the login id and password. I do not want other users seeing this. Is there a way to hide this. The login... (5 Replies)
Discussion started by: ctcuser
10. UNIX for Dummies Questions & Answers
We have a ksh script that call sqlplus user/password@DB. Obviously, when anyone on the machine does a ps, he can get the user name and password of that oracle user. Is there a way to make it so that the password would be just stars when doing ps? i.e. sqlplus user/****@DB? (2 Replies)
Discussion started by: dangral
poolbind - bind processes, tasks, or projects or query binding of processes to resource pools
/usr/sbin/poolbind -p poolname [ -i idtype] id...
/usr/sbin/poolbind -q pid...
/usr/sbin/poolbind -Q pid...
The poolbind command allows an authorized user to bind zones, projects, tasks, and processes to pools. It can also allow a user to query a
process to determine which pool the process is bound to.
The following options are supported:
This option, together with the idlist arguments, specifies one or more processes to which the poolbind command is to apply. The inter-
pretation of idlist depends on the value of idtype. The valid idtype arguments and corresponding interpretations of idlist are as fol-
idlist is a list of process IDs. Binds the specified processes to the specified pool. This is the default behavior if no idtype is
idlist is a list of task IDs. Bind all processes within the list of task IDs to the specified pool.
idlist is a list of project IDs. Bind all processes within the list of projects to the specified pool. Each project ID can be spec-
ified as either a project name or a numerical project ID. See project(4).
idlist is a list of zone IDs. Bind all processes within the list of zones to the specified pool. Each zone ID can be specified as
either a zone name or a numerical zone ID. See zones(5).
Specifies the name of a pool to which the specified zone, project, tasks, or processes are to be bound.
-q pid ...
Queries the pool bindings for a given list of process IDs. If the collection of resources associated with the process does not corre-
spond to any currently existing pool, or if there are multiple pools with the set of resources that the process is bound to, the query
fails for that particular process ID.
-Q pid ...
Queries the resource bindings for a given list of process IDs. The resource bindings are each reported on a separate line.
Example 1: Binding All Processes
The following command binds all processes in projects 5 and 7 to the pool web_app:
example# /usr/sbin/poolbind -p web_app -i projid 5 7
Example 2: Binding the Running Shell
The following command binds the running shell to the pool web_app:
example# /usr/sbin/poolbind -p web_app $$
Example 3: Querying the Pool Bindings
The following command queries the bindings to verify that the shell is bound to the given pool:
example# /usr/sbin/poolbind -q $$
Example 4: Querying the Resource Bindings
The following command queries the bindings to verify that the shell is bound to the given resources:
example# /usr/sbin/poolbind -Q $$
The following exit values are returned:
0 Successful completion.
1 Requested operation could not be completed.
2 Invalid command line options were specified.
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWpool |
|Interface Stability | See below. |
The invocation is Evolving. The output is Unstable.
pooladm(1M), poolcfg(1M), libpool(3LIB), project(4), attributes(5), zones(5)
System Administration Guide: N1 Grid Containers, Resource Management, and Solaris Zones
3 Feb 2005 poolbind(1M)