You need the pids (process identifiers) of your 5 jobs that are running in the background, say pid1 .. pid5. To suspend them for 10 minutes do something like this:
I am running a number of processes through a kill -15 loop as a temporary fix to some viscious memory leaks. I cannot pass the entire list of processes through the kill at once, because the nature of the monitoring my client has will cause the software to failover.
Because of the large number of... (1 Reply)
I am in need of some help; think I have confused myself.
Here is the issue I am faced with.
The script log file was fine, the nohup.out file has tens of thousands of lines like illegal use of sleep: sleep seconds
So I assume there is something with the seconds calculation in the script... (1 Reply)
Hi All I have a requiremnt to run a script inside another script.
here i am pulling the record count from the table in oracle.If record count is greater than 0 the script is executed.The scripts updates the count in the table and again the count is found out and the condition is checked and same... (3 Replies)
Hi Forum
Im using sleep in a while loop goes around 10 times. i feed it a variable with the time i what it to sleep for eg sleep $sleepVal and then print system date and time to screen but sometimes 1 second is added to the time why is this
here my code
sleepVal=5
while
do
... (3 Replies)
Hi All,
i am very new to shall script . i am not that much aware of sleep command ,
i want to terminate the sleep command after certain time.
following is my code.
while
loop
sleep 1800
messag=/status.sql
donethe script will be on sleep untill the messag be comes P. here my requirement... (4 Replies)
Hello,
Need a little help with the script below. I can't get it to sleep :( I'm trying to get this to check if the process is running and if it is, wait 10 secs and check again. Keep doing this until it's not running and then stop checking and send the email.
#!/bin/ksh
mailto=`cat... (2 Replies)
Hi Frnz,
I need to execute sleep command but i dont know the definite time.
Let me put my req:
I am running one shell script and this script creates some lock file in temp dir ...now in my script i want one function to go into sleep mode till this lock file exists..one lock file gone that... (6 Replies)
I need help in script.
I want my one script execute every time at 6:30 am and i have no cron access.
So i am putting sleep command there , Script may took half an hour 35 min , it depend upon queries how much it take time, but that is not issue,
So i want according to stop time of... (15 Replies)
Discussion started by: pallvi_mahajan
15 Replies
LEARN ABOUT HPUX
pmap
pmap(1) General Commands Manual pmap(1)NAME
pmap, pfiles - displays process address information and open file descriptors
SYNOPSIS
options] pid1 [pid2...]
pid1 [pid2...]
DESCRIPTION
prints the address space information of a process.
prints information about all open file descriptors of a process. If file descriptor corresponds to a file, then prints the fstat(2) and
fcntl(2) information. If the file descriptor corresponds to a socket, then prints socket related info, such as the socket type, socket
family, and protocol family. In the case of AF_INET and AF_INET6 family of sockets, information about the peer host is also printed.
pmap Options
The information printed by can be controlled by the option. The argument to can be a comma-separated set of arguments given below:
Display the size data locked in memory for each mapped object.
Display the map name. This field can contain the following data.
if the object is mapped as
if the object mapped is the stack segment of the process.
The object mapped is the text segment of the program.
The object mapped is the data segment of the program.
The object is mapped from a file.
If the file name cannot be resolved, then the inode number and the device ID of the file is displayed. Also see the sec-
tion below.
Other map names include: and
Display the offset of each mapped object.
Specify access permission for each mapped object.
Display the resident size of each mapped object.
Display the space ID of each mapped object.
Display the swap allocated for each mapped object.
Display the maximum size of a page that can be allocated for the object.
Indicate the type of data managed by each mapped object.
The values include,
Shared code, with
n indicating the number of processes sharing the mapped object.
Private code.
Shared data, with
n indicating the number of processes sharing the mapped object.
Private data.
Display the virtual size of each mapped object.
Since the name of the file can be of variable length, use the name argument as the last argument to the option to ensure proper indentation
of other fields. If no option is specified, prints the following fields by default: and
EXTERNAL INFLUENCES
Environment Variables
If is not specified or is null, it defaults to (see lang(5)).
EXAMPLES
This command prints the virtual address, the resident memory size, and the name of each object mapped for processes with process ID 100 and
200:
This command prints information on open file descriptors of processes with process ID 100 and 200:
WARNINGS
and depend on to resolve the file names. If the file name cannot be resolved, then these commands will only print the device ID and the
inode number of the file.
Users of must not rely on the exact field widths and spacing of its output, as these will vary depending on the system and the release of
HP-UX.
SEE ALSO fuser(1), ps(1), vmstat(1).
pmap(1)