Sponsored Content
Full Discussion: Assign time value
Top Forums Shell Programming and Scripting Assign time value Post 67991 by phragix on Wednesday 30th of March 2005 03:29:02 AM
Old 03-30-2005
Assign time value

I'm trying to monitor the traffic for few hours but still don't know how to make it possible. I try to set the value of time HH MM SS each into variables but for Hour, there's an error occurred as follow.

typeset -i hour=$(date +%H)
typeset: 09: value too great for base (error token is "09")

"09" is my current hour time. Could you please suggest me how to solve this problem? Thank you very much for your kind advice.

P.S. this does not happen with Minutes and Seconds.
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How To Provide Time Sync Using Nts-150 Time Server On Unix Network?

can anybody tel lme,how to instal NTS -150 on a unix network,it needs some patch to fetch time frm serve,,?? (2 Replies)
Discussion started by: pesty
2 Replies

2. Shell Programming and Scripting

Convert Epoch Time to Standard Date and Time & Vice Versa

Hi guys, I know that this topic has been discuss numerous times, and I have search the net and this forum for it. However, non able to address the problem I faced so far. I am on Solaris Platform and unable to install additional packages like the GNU date and gawk to make use of their... (5 Replies)
Discussion started by: DrivesMeCrazy
5 Replies

3. Shell Programming and Scripting

Shell script to convert epoch time to real time

Dear experts, I have an epoch time input file such as : - 1302451209564 1302483698948 1302485231072 1302490805383 1302519244700 1302492787481 1302505299145 1302506557022 1302532112140 1302501033105 1302511536485 1302512669550 I need the epoch time above to be converted into real... (4 Replies)
Discussion started by: aismann
4 Replies

4. UNIX for Dummies Questions & Answers

Converting string date time to unix time in AWK

I'd like to convert a date string in the form of sun aug 19 09:03:10 EDT 2012, to unixtime timestamp using awk. I tried This is how each line of the file looks like, different date and time in this format Sun Aug 19 08:33:45 EDT 2012, user1(108.6.217.236) all: test on the 17th ... (2 Replies)
Discussion started by: bkkid
2 Replies

5. Solaris

modifying date and time and time zone on solaris 5.10 with (redundant server) veritas

I have a cluster of two Solaris server (veritas cluster). one working and the other is standby I am going to change the date on them , and am looking for a secure solution as it is giving an important service. my opinion is that the active one doesn't need to be restarted (if I don't change the... (1 Reply)
Discussion started by: barry1946
1 Replies

6. SuSE

Need to assign value to a variable and export it at the same time

I have a file a.xml contaning: <customerId>999</customerId> <aaa>09876</aaa> Now I want to extract the value '999' and save it in a variable and then export the variable. Something like the below: export CUSTOMER_ID=cat a.xml |grep customerId |awk -F ">" '{print $2}' |awk -F "<" '{print... (3 Replies)
Discussion started by: RomitaaChawla@1
3 Replies

7. Shell Programming and Scripting

Convert UTC time into current UNIX sever time zone

Hi guys thanks for the help for my previous posts.Now i have a requirement that i download a XMl file which has UTC time stamp.I need to convert UTC time into Unix server timezone. For ex if the time zone of unix server is CDT then i need to convert into CDT.whatever may be the system time... (5 Replies)
Discussion started by: mohanalakshmi
5 Replies

8. Programming

Find gaps in time data and replace missing time value and column 2 value by interpolation in awk

Dear all, I am kindly seeking assistance on the following issue. I am working with data that is sampled every 0.05 hours (that is 3 minutes intervals) here is a sample data from the file 5.00000 15.5030 5.05000 15.6680 5.10000 16.0100 5.15000 16.3450 5.20000 16.7120 5.25000... (4 Replies)
Discussion started by: malandisa
4 Replies

9. Shell Programming and Scripting

Calculate Time diff in milli milliseconds(Time format : HH:MM:SS,NNN)

Hi All, I have one file which contains time for request and response. I want to calculate time difference in milliseconds for each line. This file can contain 10K lines. Sample file with 4 lines. for first line. Request Time: 15:23:45,255 Response Time: 15:23:45,258 Time diff... (6 Replies)
Discussion started by: Raza Ali
6 Replies
uusub(1M)																 uusub(1M)

NAME
uusub - monitor uucp network SYNOPSIS
[options] DESCRIPTION
The commands, including are targeted for removal from HP-UX; see the below. defines a subnetwork and monitors the connection and traffic among the members of the subnetwork. Options recognizes the following options: Add sys to the subnetwork. Delete sys from the subnetwork. Report the statistics on connections. Report the statistics on traffic amount. Flush the connection statistics. Gather the traffic statistics over the past hr hours. Exercise the connection to the system sys. If sys is specified as exercise the connection to all the systems in the subnetwork. The connections report is formatted as follows: sys #call #ok time #dev #login #nack #other Format interpretation: sys remote system name, #call number of times the local system tried to call sys since the last flush was done, #ok number of successful connections, time latest successful connect time, #dev number of unsuccessful connections because of no available device (e.g., ACU), #login number of unsuccessful connections because of login failure, #nack number of unsuccessful connections because of no response (e.g. line busy, system down), #other number of unsuccessful connections because of other reasons. Traffic statistics are reported as follows: sfile sbyte rfile rbyte Format interpretation: sfile number of files sent, sbyte number of bytes sent over the period of time indicated in the latest uusub command with the option, rfile number of files received, rbyte number of bytes received. The command: is typically started by once a day. WARNINGS
Use of commands, including is discouraged because they are targeted for removal from HP-UX. Use ftp(1) or rcp(1) instead. FILES
connection statistics traffic statistics system log file SEE ALSO
uucp(1), uustat(1). Tim O'Reilly and Grace Todino, O'Reilly & Associates, Inc. USA. Grace Todino and Dale Dougherty, O'Reilly & Associates, Inc. USA. TO BE OBSOLETED uusub(1M)
All times are GMT -4. The time now is 05:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy