10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I've been struggling with this one for quite a while and cannot seem to find a solution for this find/replace scenario. Perhaps I'm getting rusty.
I have a file that contains a number of metrics (exactly 3 fields per line) from a few appliances that are collected in parallel. To identify the... (3 Replies)
Discussion started by: verdepollo
3 Replies
2. Shell Programming and Scripting
Dear all,
I have a large tagged training file in Hindi for Parts of Speech. When I tagged the file, I inadvertently classified Pronouns and Adjectives as one single category. This has resulted in ambiguity.
An example from English will make this clear.
This is his.
This is his book.
The... (2 Replies)
Discussion started by: gimley
2 Replies
3. UNIX for Dummies Questions & Answers
Friends,
I need help with the following in UNIX.
Merge all csv files in one folder considering only 1 header row and ignoring header of all other files.
FYI - All files are in same format and contains same headers.
Thank you (4 Replies)
Discussion started by: Shiny_Roy
4 Replies
4. Shell Programming and Scripting
Hi,
I have to insert html frames in for loop.
Here is the code.
for($k=0;$k<3;$k++)
{
print<<HTML;
<html>
<head>
<title>
HTML Horizontal Frames
</title>
</head>
<frameset cols="25%,75%">
<frame src="a.html">
<frame src="b.html">
</frameset> (0 Replies)
Discussion started by: vanitham
0 Replies
5. Solaris
I 've a T5220 running solaris 10u6 with Ldoms 1.1. following is o/p of my dladm
e1000g0 type: non-vlan mtu: 1500 device: e1000g0
e1000g1 type: non-vlan mtu: 1500 device: e1000g1
e1000g531001 type: vlan 531 mtu: 1500 device: e1000g1
e1000g2 ... (0 Replies)
Discussion started by: fugitive
0 Replies
6. IP Networking
Hi All,
Is there any way to modify or filter the ARP frames??
thanks! (2 Replies)
Discussion started by: lagigliaivan
2 Replies
7. Web Development
Hi,
I am writing a web application using Perl CGI. And I have defined an frame within like this
"<iframe id=\"iframe01\" name=\"iframe01\" height=480 width=800 frameborder=0 scrolling=no></iframe>"
My problem is that this iframe appears differently on different browsers - IE6, IE7, Mozilla... (0 Replies)
Discussion started by: garric
0 Replies
8. Linux
say i have these many file in a directory named exam.
1)/exam/newfolder/link.txt.
2)/exam/newfolder1/
and i create a tar say exam.tar
well the problem is,
when i read the tar file i dont find any metadata about the directories,as you cannot create a tar containig empty directories.
on the... (2 Replies)
Discussion started by: Tanvirk
2 Replies
9. Shell Programming and Scripting
Hi gurus,
Can any of you suggest any good link for going through tagged regular expressions for unix.I am finding it quite critical and need some help from all gurus to know this better.
Any good link containing detailed examples with descriptions would do i guess.
thanks in advance. (0 Replies)
Discussion started by: navojit dutta
0 Replies
10. IP Networking
I'm using ethereal to analyse my network from my pc.
There're too many TCP Bad checksum
1. between my PC and unix servers (checksum: 0x6660 )
2. between my PC and other servers (windows, novell) checksum: 0x6644 )
There're too many NBNS and BOOTP/DHCP Malformed Packet(Exception occured) ... (0 Replies)
Discussion started by: nymus7
0 Replies
TODR(9) BSD Kernel Developer's Manual TODR(9)
NAME
todr_attach, todr_gettime, todr_settime, clock_ymdhms_to_secs, clock_secs_to_ymdhms -- time-of-day clock support
SYNOPSIS
#include <dev/clock_subr.h>
void
todr_attach(todr_chip_handle_t);
int
todr_gettime(todr_chip_handle_t, struct timeval *);
int
todr_settime(todr_chip_handle_t, struct timeval *);
void
clock_secs_to_ymdhms(int, struct clock_ymdhms *);
time_t
clock_ymdhms_to_secs(struct clock_ymdhms *);
DESCRIPTION
The todr_*() functions provide an interface to read, set and control 'time-of-day' devices. A driver for a 'time-of-day' device registers
its todr_chip_handle_t with machine-dependent code using the todr_attach() function. Alternatively, a machine-dependent front-end to a
'time-of-day' device driver may obtain the todr_chip_handle_t directly.
The todr_gettime() retrieves the current data and time from the TODR device and returns it in the struct timeval storage provided by the
caller. todr_settime() sets the date and time in the TODR device represented by todr_chip_handle_t according to the struct timeval argument.
The utilities clock_secs_to_ymdhms() and clock_ymdhms_to_secs() are provided to convert a time value in seconds to and from a structure rep-
resenting the date and time as a <year,month,day,weekday,hour,minute,seconds> tuple. This structure is defined as follows:
struct clock_ymdhms {
u_short dt_year; /* Year */
u_char dt_mon; /* Month (1-12) */
u_char dt_day; /* Day (1-31) */
u_char dt_wday; /* Day of week (0-6) */
u_char dt_hour; /* Hour (0-23) */
u_char dt_min; /* Minute (0-59) */
u_char dt_sec; /* Second (0-59) */
};
Note: leap years are recognised by these conversion routines.
RETURN VALUES
The todr_*() functions return 0 if the requested operation was successful; otherwise an error code from <sys/errno.h> shall be returned.
However, behaviour is undefined if an invalid todr_chip_handle_t is passed to any of these functions.
The clock_ymdhms_to_secs() function returns -1 if the time in seconds would be less that zero or too large to fit in a time_t. The
clock_secs_to_ymdhms() function never fails.
SEE ALSO
intersil7170(4), mk48txx(4), inittodr(9), resettodr(9), time_second(9)
BSD
September 6, 2006 BSD