06-25-2012
Quote:
Originally Posted by
wnaguib
unix
"What is your system?" "UNIX"
"What make and model is your car?" "Blue"
Both very, very vague answers.
If you don't actually know,
uname -a
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Friends,
I want to write a script for the following:
nlscux62:tibprod> grep "2008 Apr 30 01:" SA_EHV_SPEED_SFC_IN_03-SA_EHV_SPEED_SFC_IN_03-2.log | grep -i post | more
2008 Apr 30 01:01:23:928 GMT +2 SAPAdapter.SA_EHV_SPEED_SFC_IN_03-SA_EHV_SPEED_SFC_IN_03-2 Info AER3-000095 IDOC... (2 Replies)
Discussion started by: satyakam
2 Replies
2. Shell Programming and Scripting
Hi guru's,
Am new to shell scripting.
I am getting the below o/p from the oracle database, when I fire a query.
ID JOB_ID ELAPSED_TIME FROM TO
----- ------ ------------------- -------- --------
62663 11773 01/06/2009 09:49:13 SA CM
62664 11773 ... (4 Replies)
Discussion started by: sathik
4 Replies
3. AIX
HI All,
can some one please help me how to fine the difference between two time stamps say
a= Nov 10, 2009 9:21:25 AM
b= Nov 10, 2009 10:21:25 AM
I want to find difference between the a & b
I googled and tried with some options but no luck.
My OS is AIX (1 Reply)
Discussion started by: bandlan9
1 Replies
4. Shell Programming and Scripting
Hi,
START_TIME :- "10-NOV-2009 00:00:04"
STOP_TIME :- "10-NOV-2009 00:05:47"
Please help to find difference between these two.
Searched for the same topic but did not find an answer for the same time format :(
Regards,
Robin (3 Replies)
Discussion started by: robinbannis
3 Replies
5. Shell Programming and Scripting
Hello All,
I have a problem calculating the time difference between start and end timings...!
the timings are given by 24hr format..
Start Date : 08/05/10 12:55
End Date : 08/09/10 06:50
above values are in mm/dd/yy hh:mm format.
Now the thing is, 7th(08/07/10) and... (16 Replies)
Discussion started by: smarty86
16 Replies
6. Shell Programming and Scripting
Hello
I have a file in following format:
IV 08:09:07
NM 08:12:01
IC 08:12:00
MN 08:14:20
NM 08:14:15
I need a script to compare time on each line with previous line and show the inconsecutive line. Ex.:
08:12:00
08:14:15
A better way... (6 Replies)
Discussion started by: vilibit
6 Replies
7. Shell Programming and Scripting
I have a file wich contains time formats and i need to get the time difference
TIME1 TIME2
==================================
20120624192555.6Z 20120624204006.5Z
which means first date 2012/6/24 19:25:55,second date 2012/6/24 20:40:06 so when i get the time... (1 Reply)
Discussion started by: wnaguib
1 Replies
8. Shell Programming and Scripting
Hi All,
Firstly thank you for the forum members I need to find time difference b'w two rows of timestamp using awk/shell.
Here is the logfile:
cat business_file
start:skdjh:22:06:2010:10:30:22
sdfnskjoeirg
wregn'wergnoeirnfqoeitgherg
end:siifneworigo:22:06:2010:10:45:34... (3 Replies)
Discussion started by: Srinivas Gadi
3 Replies
9. Shell Programming and Scripting
Hi,
I'm trying to write a script to determine the time gap between HTTP PUT and HTTP DELETE requests in the HTTP Servers access log.
Normally client will do HTTP PUT to push content e.g. file_1.txt and 21 seconds later it will do HTTP DELETE, but sometimes the time varies causing some issues... (3 Replies)
Discussion started by: Juha
3 Replies
10. UNIX for Beginners Questions & Answers
Hello,
In HP-UX how to find the date time difference ?
Start time: 28-APR-2019 21:36:01
End time : 29-APR-2019 00:36:04
----------------------
Difference is
----------------------
Much appreciate any pointer or view on this.
... (3 Replies)
Discussion started by: Siva SQL
3 Replies
uname(1) General Commands Manual uname(1)
NAME
uname - Displays information about the operating system
SYNOPSIS
uname [-amnrsvp]
uname [-S system-name]
The uname command displays system information or sets the system name.
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
uname: XCU5.0, SVID 4
Refer to the standards(5) reference page for more information about industry standards and associated tags.
OPTIONS
Displays all information specified with the -m, -n, -r, -s, and -v options. Displays the type of hardware running the system. Displays
the name of the node (this may be a name that the system is known by to a communications network). [Tru64 UNIX] Displays the processor
type of the current host. Displays the release number of the operating system. Displays the name of the implementation of the operating
system. (This option is on by default.) [Tru64 UNIX] Changes the name of the system to system_name. The system_name argument is
restricted to SYS_NMLN-1 characters. The value of SYS_NMLN is implementation specific and is defined in /usr/include/sys/utsname.h. Only
users with appropriate privileges can use this option. Displays the operating system version.
OPERANDS
None
DESCRIPTION
The uname command writes system information to standard output. This command is used primarily to determine which system you are using.
The options cause selected information returned by the uname() call to be displayed.
NOTES
When the -a option is used, output is displayed in the order:
<system> <node> <release> <version> <hardware>
When you request information by specifying the individual options, the appropriate information is displayed in the order indicated.
[Tru64 UNIX] If the -p option is used, processor information is appended to the output line. The output of uname may include
embedded blank spaces, so you should use caution when passing the output to parsing algorithms.
EXIT STATUS
The following exit values are returned: The requested information has been successfully written. An error occurred.
EXAMPLES
To display the complete system name and version banner, enter: uname -a
ENVIRONMENT VARIABLES
The following environment variables affect the execution of uname: Provides a default value for the internationalization variables that are
unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization vari-
ables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value,
overrides the values of all the other internationalization variables. Determines the locale for the interpretation of sequences of bytes
of text data as characters (for example, single-byte as opposed to multibyte characters in arguments). Determines the locale for the for-
mat and contents of diagnostic messages written to standard error. Determines the location of message catalogues for the processing of
LC_MESSAGES.
FILES
System name information header file. Node specific configuration file.
SEE ALSO
Functions: uname(2)
Standards: standards(5)
uname(1)