Linux Daytime

Thread Tools Search this Thread
Operating Systems Linux Linux Daytime
# 1  
Old 10-06-2009
Linux Daytime

Hi Guys.
My Name is Luca. This is a first time that write on these fantastic forum.
I hope that someone could help me.

I'm working on redhat As 4.0. I'm using the daytime service.
I have enable the daytime service and it seems work.
From my pc I do:
ftp> open 13
Connesso a
06 OCT 2009 08:50:15 CEST
Connessione chiusa dall'host remoto.
And it seems work. But I have a problem. I have old dos application that work with the sco-unix daytime and work well. I notice that the date format of linux isn't ugual to date format on Sco-unix. In sco-unix is :
ftp> open 13
Connesso a
Tue Oct 6 08:49:04 2009
Connessione chiusa dall'host remoto.
in my linux if I check my date output on bash shell is:
[root@srvOra9 rc.d]# date
mar ott 6 08:53:36 CEST 2009
[root@srvOracle9 rc.d]#

It is possible to change the linux output ? from 06 OCT 2009 08:50:15 CEST to mar ott 6 08:53:36 CEST 2009. If yes.. how ?

Many thanks
Luca Bogani
# 2  
Old 10-06-2009
In redhat, the daytime service is built into xinetd. Its configuration files are in /etc/xinetd.d
i.e. daytime-dgram or daytime-stream. The RFC for the daytime protocol (RFC 867) is silent on the format of the daytime string.
There is no specific syntax for the daytime. It is recommended that
it be limited to the ASCII printing characters, space, carriage
return, and line feed. The daytime should be just one line.
No options are provided to configure the daytime string.

However, you can configure xinetd to use an external utility as the daytime server by setting options in the configuration files. Thus you can write your own utility to output a daytime string in the format you want and configure xinetd to use this utility.

Last edited by fpmurphy; 10-06-2009 at 11:22 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Programming

Using Different port for Daytime Service

Hi all, is it possible to use a different port number for daytime service. By default the port number of daytime service is 13, so what if I want to get the time from a different port number e.g say 9000 (or any other port). I guess this would remain the same on the server side !... (2 Replies)
Discussion started by: manisum
2 Replies

2. Programming

why daytime don't work?

Following code is detecting solaris daytime,when I run it,I can't get any result,code is follows: #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define BUFFSIZE 150 int main(){ ... (2 Replies)
Discussion started by: konvalo
2 Replies
Login or Register to Ask a Question