The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
why daytime don't work? konvalo High Level Programming 2 06-09-2009 11:45 AM
Linux's future not as dour as IDC predicts, critics say - Search Enterprise Linux iBot UNIX and Linux RSS News 0 10-31-2007 04:00 PM
Does Active Directory top Linux authentication options? - Search Enterprise Linux iBot UNIX and Linux RSS News 0 10-29-2007 06:00 AM
Hovespian cites four vehicles to broaden Linux adoption - Search Enterprise Linux iBot UNIX and Linux RSS News 0 08-08-2007 08:30 PM
Linux Foundation CTO Markus Rex: Linux 'Now an Accepted Choice' - E-Commerce Times iBot UNIX and Linux RSS News 0 08-02-2007 08:30 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-06-2009
bogabug bogabug is offline
Registered User
  
 

Join Date: Oct 2009
Posts: 1
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:
C:\>ftp
ftp> open 10.99.99.4 13
Connesso a 10.99.99.4.
06 OCT 2009 08:50:15 CEST
Connessione chiusa dall'host remoto.
ftp>
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 10.99.99.5 13
Connesso a 10.99.99.5.
Tue Oct 6 08:49:04 2009
Connessione chiusa dall'host remoto.
ftp>
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
regards
Luca Bogani
  #2 (permalink)  
Old 10-06-2009
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,937
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.
Quote:
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..
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:26 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0