10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi Experts,
I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state.
On doing cat /proc/<pid>wchan showing the "__init_begin" in the output.
Can you please help me here... (6 Replies)
Discussion started by: naveeng
6 Replies
2. UNIX for Advanced & Expert Users
Hi Experts,
I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state.
On doing cat /proc/<pid>wchan showing the "__init_begin" in the output.
Can you please help me here... (1 Reply)
Discussion started by: naveeng
1 Replies
3. BSD
Hi Experts,
I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state.
On doing cat /proc/<pid>wchan showing the "__init_begin" in the output.
Can you please help me here... (0 Replies)
Discussion started by: naveeng
0 Replies
4. Shell Programming and Scripting
Hi, I have a parallelized Mathematica program that spans across 8 MathKernels processes running at 100% and one MathKernel (highlighted in blue) running at < 10% that controls the other 8. They look like this on the cluster:
https://www.unix.com/attachment.php?attachmentid=5111&stc=1&d=1381245618... (2 Replies)
Discussion started by: giovform
2 Replies
5. Shell Programming and Scripting
Hi,
How can i capture the running process for 2 hours.
Thanks in advance.:b: (1 Reply)
Discussion started by: sarathkumar
1 Replies
6. Shell Programming and Scripting
I had a script executing every hour to kill a process. I used loop rather than cron to execute it periodically. But now when I am trying to kill that sleep process of 1 hour its not getting killed. it is taking a new PID everytime I kill. To disable the script commenting is the only option... (1 Reply)
Discussion started by: nixhead
1 Replies
7. UNIX for Dummies Questions & Answers
Hello All,
I have a script which has a functionality to sleep for 300 seconds after it does some processing, so in the logs if i check after the 3 iteration of sleep it didn't write saying "sleeping for 300 seconds". I suspect putty would automatically terminate session as i cannot access it any... (1 Reply)
Discussion started by: Ariean
1 Replies
8. Shell Programming and Scripting
Hi
i want to print the time of a process in hours only..(or) in minutes only.Is there anyway to print the process such like that
when i give the commnand like following
#ps -eo pid,time
PID TIME
412 01:49:32
481 00:03
it shows in HH:MM:SS format:
Could anyone... (1 Reply)
Discussion started by: srikanthg
1 Replies
9. Shell Programming and Scripting
Hi All,
Here is my script:
sleep_time=`echo "9.6 * $num_servers"|bc| cut -d. -f1`
if ; then sleep_time=3600;fi
### Allow the compare script to kick in after 1 hour at the least
logger "Sleeping for $sleep_time seconds ...Will call compare.sh thereon" $act_log
sleep $sleep_time
#sleep... (3 Replies)
Discussion started by: ntgobinath
3 Replies
10. Shell Programming and Scripting
how to start a process and make it sleep for 5 mins and then kill that process (6 Replies)
Discussion started by: shrao
6 Replies
TIMETRANS(1p) User Contributed Perl Documentation TIMETRANS(1p)
NAME
timetrans - Converts time into time
SYNOPSIS
timetrans [units-options] [-count]
DESCRIPTION
timetrans converts time from one type of unit to another. If any of the units options are specified, then timetrans will convert those
time units into the number of seconds to which they add up. If given the count option, timetrans will convert that number of seconds into
the appropriate number of weeks, days, hours, minutes, and seconds. The converted result is printed out. Units options cannot be
specified in the same execution as the count option, and vice versa.
timetrans is intended for use with DNSSEC-Tools, for calculating a zone's expiration time.
OPTIONS
Units Options
The converted value of each unit is totaled and a single result printed.
-seconds seconds
Count of seconds to convert to seconds.
-minutes minutes
Count of minutes to convert to seconds.
-hours hours
Count of hours to convert to seconds.
-days days
Count of days to convert to seconds.
-weeks weeks
Count of weeks to convert to seconds.
Count Option
The specified seconds count is converted to the appropriate number of weeks, days, hours, minutes, and seconds.
-count seconds
Count of seconds to convert to the appropriate set of units.
Other Options
timetrans has the following miscellaneous options.
-Version
Displays the version information for timetrans and the DNSSEC-Tools package.
EXAMPLES
Example 1: Converting 5 days into seconds
$(42)> timetrans -days 5
432000
Example 2: Converting 2 weeks into seconds
$(43)> timetrans -w 2
1209600
Example 3: Converting 8 days and 8 hours into seconds
$(44)> timetrans -d 8 -hours 8
720000
Example 4: Converting 1 week, 1 day, and 8 hours into seconds
$(46)> timetrans -w 1 -days 1 -h 8
720000
Example 5: Converting 14 weeks, 4 days, 21 hours, 8 minutes, and 8 seconds into seconds
$(47)> timetrans -w 14 -d 4 -h 21 -m 8 -s 8
8888888
Example 6: Converting 720000 seconds into time units
$(48)> timetrans -c 720000
1 week, 1 day, 8 hours
Example 7: Converting 1814421 seconds into time units
$(49)> timetrans -c 1814421
3 weeks, 21 seconds
Example 8: Converting 8888888 seconds into time units
$(50)> timetrans -c 8888888
14 weeks, 4 days, 21 hours, 8 minutes, 8 seconds
COPYRIGHT
Copyright 2004-2012 SPARTA, Inc. All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details.
AUTHOR
Wayne Morrison, tewok@tislabs.com
SEE ALSO
zonesigner(8)
Net::DNS::SEC::Tools::timetrans.pm(3)
perl v5.14.2 2012-06-21 TIMETRANS(1p)