It's not a secret anymore!
The moose likes Sockets and Internet Protocols and the fly likes How to Get Timmings from another unix server? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "How to Get Timmings from another unix server?" Watch "How to Get Timmings from another unix server?" New topic

How to Get Timmings from another unix server?

ravi kumar

Joined: Oct 30, 2005
Posts: 19
Hi All,
I developed one application to get the File Receiving time from one Unix server(
In My programme
First I connected to one database( and selected some files based on some conditions.
Also I Connected to another database( and I inserted above files with file arrived time.
I wrote one codition in this programme that this application should run between specific time only.

Finally I ran this programme in Unix Server( (by using .sh file) and programme will run based on this server timming.

But Now My problem is I want to Run this programme in another server( and it should follow that servers( timming.
I am using DB2 for this.

But I am not supposed to run any application in that server( I wrote that application in core java.Can you please give me any suggession for that.Can we do it by using FTP with out running any code in 52 unix box.

Any one can please tell me ths solution for this.
Waiting for your valuble reply.
Aalok Pandit

Joined: Sep 26, 2005
Posts: 15
Hi Ravi
I'm not sure if I understand your query and even if this reply is going to help.

I guess you want the timestamps of files on a remote server.
If you are allowed FTP connection on the server, you can use the ls command to get the file listing and then use text processing to extract the fifth column i.e. the timestamp.

If you use a Java API for FTP e.g. commons-net by Jakarta, you can directly get the timestamp of the files on the remote server.
I agree. Here's the link:
subject: How to Get Timmings from another unix server?
It's not a secret anymore!