---------- Post updated at 08:39 AM ---------- Previous update was at 08:36 AM ----------
@methyl
Yes I mean unix DC program.
Also please explain how the "od" command plays the significance and how DC gets the above out put. I was wondering what was the purpose of "od" here.
Last edited by vbe; 11-17-2010 at 09:41 AM..
Reason: code tags please
Hi,
i need to convert below date/time format into epoch time
YYYY-m-d H:M
below the example:
a=`date +"%F %H:%M"`
echo $a
Convert $a to epoch time
------------------------------------------------------------------------
lets take an example
if $a=1.03
here i want the epoch time... (3 Replies)
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)
Hi,
Is there any easy way to convert date time(stored in shell variable ) to epoch time in solaris box? As +%s is working on linux but not on solaris, also -d option is not working.
Any suggestion please? (6 Replies)
Hi guys,
Im trying to subtract time in ksh script. i.e. basically im querying a database and i want to get the time 10mins before hand..(from)
in ksh
CurrMin=$(date "+%M")
from=`expr $CurrMin - 10`
to=$CurrMin
however if i run this i say at 2 or 3 mins past the hour, i.e.... (7 Replies)
Hello,
I'm trying to create a shell script (#!/bin/sh) which should tell me the age of a file in minutes...
I have a process, which delivers me all 15 minutes a new file and I want to have a monitoring script, which sends me an email, if the present file is older than 20 minutes.
To do... (10 Replies)
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)
# date +%s -d "Mon Feb 11 02:26:04"
1360567564
# perl -e 'print scalar localtime(1360567564), "\n";'
Mon Feb 11 02:26:04 2013
the epoch conversion is working fine. but one of my application needs 13 digit epoch time as input
1359453135154
rather than 10 digit epoch time 1360567564... (3 Replies)
Hello All,
I have a Perl script I'm writing where I ask the user to enter a "start time" for something. The "$start_time" will be in the format of:
# The Time CLI Option Can be in the format of:
--start-time="1day"
--start-time="2hours"
--start-time="45min"
... (1 Reply)
I have unix epoch time 1441678454803, Can you please help me to print this time in below format ?
DAY,HOUR,MIN,SEC
Appreciate your help!!!
Thanks,
Prince (7 Replies)
Discussion started by: prince1987
7 Replies
LEARN ABOUT OPENSOLARIS
cpio.h
cpio.h(3HEAD) Headers cpio.h(3HEAD)NAME
cpio.h, cpio - cpio archive values
SYNOPSIS
#include <cpio.h>
DESCRIPTION
Values needed by the c_mode field of the cpio archive format are described as follows:
Name Description
-----------------------------------------------------------
C_IRUSR Read by owner
C_IWUSR Write by owner
C_IXUSR Execute by owner
C_IRGRP Read by group
C_IWGRP Write by group
C_IXGRP Execute by group
C_IROTH Read by others
C_IWOTH Write by others
C_IXOTH Execute by others
C_ISUID Set user ID
C_ISGID Set group ID
C_ISVTX On directories, restricted deletion flag
C_ISDIR Directory
C_ISFIFO FIFO
C_ISREG Regular file
C_ISBLK Block special
C_ISCHR Character special
C_ISCTG Reserved
C_ISLNK Symbolic link
C_ISSOCK Socket
The header defines the symbolic constant:
MAGIC "070707"
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO pax(1), attributes(5), standards(5)SunOS 5.11 10 Sep 2004 cpio.h(3HEAD)