hello:
I am a somewhat experienced unix user, but brand new to this forum. I am encountering a strange new problem.
I have a shell script called foo.ksh it has been running for years (literally) on my Sun (Solaris 8) machine.
Recently we put a version of samba on this machine to... (3 Replies)
Hi,
I am trying to write a script, which queries a db to get the names of processes, stores it in a file and then checks if that process is running on a remote server. However I am not getting it right, could anyone help me out.
#!/bin/sh
echo "select Address from Device where Cust =... (5 Replies)
How can I print ONLY processes running for more than 24 hours. Using ps command or any other method
I use this to get a whole list.
ps -eo pid,pcpu,pmem,user,args,etime,cmd --sort=start_time
We can also sort the outout of the above command to list processes older than 24 hours using... (9 Replies)
Hello,
Please help me with a script with which I can check long running processes on the database server and the os is AIX.
Best regards,
Vishal (5 Replies)
I want to check how many processes are running with same names and get their respective counts.
ps -ef|grep -Eo 'process1|process2|process3| '|sort -u | awk '{print $2": "$1}'
Output would look like :
$ ps -ef|grep -Eo 'process1|process2|process3| '|sort | uniq -c | awk '{print $2":... (8 Replies)
Hi,
Is it possible to display processes which have been running for more than a 5hrs using a variation of the ps -ef command?
Regards,
Manny (5 Replies)
Hello Guys,
I need some help to find out if processes are running on remote server or not. I could do 'ssh' to do that but due to some security reasons, I need to avoid the ssh & get result from remote server.
Could you please suggest some that can be done without ssh or similar sort of... (8 Replies)
I work at a company that uses a program written in AWK to track various data and prepare reports. Worked with this program for three years plus (the author is no longer with us) and the YTD Production report will not return a report with a date after 123119. This is a problem. Below is the (I... (3 Replies)
Discussion started by: paulgdavitt
3 Replies
LEARN ABOUT HPUX
serialize
serialize(1) General Commands Manual serialize(1)NAME
serialize - force target process to run serially with other processes
SYNOPSIS
command [command_args]
pid]
DESCRIPTION
The command is used to force the target process to run serially with other processes also marked by this command. The target process can
be referred to by pid value, or it can be invoked directly on the command. Once a process has been marked by the process stays marked
until process completion unless is reissued on the serialized process with the option. The option causes the pid specified with the option
to return to normal timeshare scheduling algorithms.
This call is used to improve process throughput, since process throughput usually increases for large processes when they are executed
serially instead of allowing each program to run for only a short period of time. By running large processes one at a time, the system
makes more efficient use of the CPU as well as system memory, since each process does not end up constantly faulting in its working set, to
only have the pages stolen when another process starts running. As long as there is enough memory in the system, processes marked by
behave no differently from other processes in the system. However, once memory becomes tight, processes marked by are run one at a time
with the highest priority processes being run first. Each process will run for a finite interval of time before another serialized process
is allowed to run.
Options
supports the following options:
Indicates the process specified by
pid should be returned to timeshare scheduling.
Indicates the
pid of the target process.
If neither option is specified, is invoked on the command line passed in.
RETURN VALUE
returns the following value:
Successful completion.
Invalid
pid specification, nonnumeric entry, or pid specification is that of a special system process.
Could not execute the specified command.
No such process.
Must be root or a member of a group having the
privilege to execute
ERRORS
fails under the following condition and sets (see errno(2)) to the following value:
The pid passed in does not exist.
EXAMPLES
Use to force a database application to run serially with other processes marked for serialization:
Force a currently running process with a pid value of 215 to run serially with other processes marked for serialization:
Return a process previously marked for serialization to normal timeshare scheduling. The pid of the target process for this example is
WARNINGS
The user has no way of forcing an execution order on serialized processes.
AUTHOR
was developed by HP.
SEE ALSO setprivgrp(1M), getprivgrp(2), serialize(2).
serialize(1)