10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi All, Any one answer my requirement.
I have source location
src_dir="/home/oracle/arun/IRMS-CM"
My Target location
dest_dir="/home/oracle/arun/LiveLink/IRMS-CM/$dc/$pc/$ct"
my source text files check with below example.text file content
$fn "\t" $dc "\t" $pc "\t" ... (3 Replies)
Discussion started by: sravanreddy
3 Replies
2. Emergency UNIX and Linux Support
I haven't been able to do anything since yesterday evening because my account is full to the brim. Very annoying on a Friday evening when no admin will be in until Monday morning. Of course, I might consider cleaning up if I knew where the problem is, but I can't figure it out because du and df... (8 Replies)
Discussion started by: mregine
8 Replies
3. UNIX for Dummies Questions & Answers
Hello Everyone,
I am new to this forum and also unix/linux. Our application today threw an alert whcih read as
"The users active count on host has crossed the threshold limit of 50
and is standing at 65."
This was although cleared when I restarted tomcat. But I am not sure why this count... (0 Replies)
Discussion started by: ykhati
0 Replies
4. Shell Programming and Scripting
hello everybody,
need help .
i want to write a shell script which will first check the count of the file ,
if file count is greater than 15000 then script will split the file in 15000 each.with count of each splited file included in it.
if file size is less than 15000 then... (3 Replies)
Discussion started by: abhigrkist
3 Replies
5. Shell Programming and Scripting
Hi!
I wanted to use a while loop, like the one below, for checking words extracted by awk to terminate when a specific word appears. Unfortunately whenever I put my code inside the loop I get an error "Expression recursion level exceeded". What does it mean? What recursion? I don't have any... (4 Replies)
Discussion started by: machinogodzilla
4 Replies
6. UNIX for Dummies Questions & Answers
I keep on getting an error on my site saying
I've got a 250GB dedicated server, and have used less than 200mb of that.
The site has only been on the server for just over a month.
What does this mean and how can I sort it? (8 Replies)
Discussion started by: thehaapyappy
8 Replies
7. Shell Programming and Scripting
Hi,
How to write a script which checks the size of a log file?
I want that the log file contents to get cleared as soon as it increases 1 KB.
Thanks (3 Replies)
Discussion started by: skyineyes
3 Replies
8. UNIX for Dummies Questions & Answers
Would appreciate some help, system was displaying an error regarding the kernal when a "sar" was run, after a reboot we get "WARNING user login limit exceeded by 1 user". We have plenty of licences. any ideas? (1 Reply)
Discussion started by: nchrocc
1 Replies
9. Programming
When i run my C program which dynamically creates the output file, the program stops after sometime and gives the error "File size limit exceeded" even though my working directory has space.Can anyone plz help me out. (13 Replies)
Discussion started by: drshah
13 Replies
10. UNIX for Dummies Questions & Answers
Hello guys i'm getting this error on a sco 5.0.7 machine and i have no idea why i'm getting this error.
I know how to encrease the value of NSTRPAGES, right now i have it up to 4000.
I would like to know what is NSTRPAGES and what is causing this error to come up in my server.
Thanks a... (2 Replies)
Discussion started by: josramon
2 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)