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 DEBIAN
timetrans
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)