Thanks for the reply,
In the above if the file is not found the loop keeps iterating, adding a sleep command will introduce some wait between iterations. Just wondering if by adding the sleep will add any advantage in terms reducing processor load OR it just doesn't make any difference.
When telneting to a SUN box and incorrectly spelling your password, there is a delay of approx. 5 seconds. Is there any way to shorten this time?
OS solaris 7 (1 Reply)
Working on AIX 4.3
I have an active exe that accepts files for processing on our RS6000. Day to day i store these files in a secure place and at the end of the day I mv them one by one. After some reading and ofcourse trial and error i figured out that this helps...
mv `ls -l |head -l | awk... (2 Replies)
Hi,
I have a doubt in introducing a delay in the programs.
We know that we do have a sleep() function/api using which
we can bring a delay in terms of seconds.
A minimum delay can be atleast 1 second.
Now I'm bothered about how to introduce a delay that is just
less than a second. Like... (3 Replies)
I have a Sol system. The lock timeout is default 15 minutes. I tried to make it longer but cannot by
lock -t timeout
Anyon can tell me the cmd in solai for this please.
A thank in advance (2 Replies)
How to delay a process.
I need to to delay a process from 3sec.
At that 3sec other back ground processes also should stop.
(just sit 3sec for idle & then starts execution as normally)
I use sleep(3)-But it not stop the bg processes
I try to use loop but it not gurantee to wait 3sec.
... (2 Replies)
Dear all,
if we want to run a command every 5 mins to check if the process is working fine or not...
like in c, we can use a simple while loop with a delay for 5 mins...
how can we accomplish this is solaris 8/9
thanks
br/asad (5 Replies)
Hi Expert,
I need to run some command 5 times with 5 mins interval whenever one of the application on server hang.
Can I use below scripts ?
Thanks!
-------------
#!/bin/sh
command1
sleep 300
command2
sleep 300
command3
sleep 300
command4
sleep 300
command5
sleep 300... (2 Replies)
Hi forum,
in my bash script I've many lines executing commands with redirection to log files.
...
xyz_cmd 2>&1 > $BASENAME.$LINENO
The trailing part of these lines doesn't look nice and I like to put it into a variable.
The (not working) idea is something like that
... (3 Replies)
I have a list of URLs that I need to download in a file.
I know I can use the -i option to load the URLs from the file, but how can I make Wget wait a couple secs between each URL download? (4 Replies)
Heyas
As you know me, i have scripts for about almost every aspect of my IT life.
This time, i'm having issues to figure out why my script to connect to my wifi spots takes so long when started as service.
The service file (the after:local-fs.target is for 'home installations'):
cat... (3 Replies)
Discussion started by: sea
3 Replies
LEARN ABOUT DEBIAN
systemd-cgtop
SYSTEMD-CGTOP(1) systemd-cgtop SYSTEMD-CGTOP(1)NAME
systemd-cgtop - Show top control groups by their resource usage
SYNOPSIS
systemd-cgtop [OPTIONS...]
DESCRIPTION
systemd-cgtop shows the top control groups of the local Linux control group hierarchy, ordered by their CPU, memory and disk I/O load. The
display is refreshed in regular intervals (by default every 1s), similar in style to top(1).
Resource usage is only accounted for control groups in the relevant hierarchy, i.e. CPU usage is only accounted for control groups in the
cpuacct hierarchy, memory usage only for those in memory and disk I/O usage for those in blkio. systemd(1) by default places all services
in their own control group in the cpuacct hierarchy, but not in memory nor blkio. If resource monitoring for these resources is required it
is recommended to add blkio and memory to the DefaultControllers= setting in /etc/systemd/system.conf (see systemd.conf(5) for details).
Alternatively, it is possible to enable resource accounting individually for services, by making use of the ControlGroup= option in the
unit files (See systemd.exec(5) for details).
To emphasize this: unless blkio and memory are enabled for the services in question with either of the options suggested above no resource
accounting will be available for system services and the data shown by systemd-cgtop will be incomplete.
OPTIONS
The following options are understood:
-h, --help
Prints a short help text and exits.
-p
Order by control group path name.
-t
Order by number of tasks in control group (i.e. threads and processes).
-c
Order by CPU load.
-m
Order by memory usage.
-i
Order by disk I/O load.
-d, --delay=
Specify refresh delay in seconds (or if one of ms, us, min is specified as unit in this time unit).
--depth=
Maximum control group tree traversal depth. Specifies how deep systemd-cgtop shall traverse the control group hierarchies. If 0 is
specified only the root group is monitored, for 1 only the first level of control groups is monitored, and so on. Defaults to 2.
KEYS
systemd-cgtop is an interactive tool and may be controlled via user input using the following keys:
h
Shows a short help text.
SPACE
Immediately refresh output.
q
Terminate the program.
p, t, c, m, i
Change ordering of control groups by path, number of tasks, CPU load, memory usage resp. IO load.
+, -
Increase, resp. decrease refresh delay.
EXIT STATUS
On success 0 is returned, a non-zero failure code otherwise.
SEE ALSO systemd(1), systemctl(1), systemd-cgls(1), top(1)AUTHOR
Lennart Poettering <lennart@poettering.net>
Developer
systemd 10/07/2013 SYSTEMD-CGTOP(1)