File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Author

How to Get Timmings from another unix server?

ravi kumar
Greenhorn

Joined: Oct 30, 2005
Posts: 19
Hi All,
I developed one application to get the File Receiving time from one Unix server(172.16.66.52).
In My programme
First I connected to one database(172.16.66.51) and selected some files based on some conditions.
Also I Connected to another database(10.68.169.130) 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(172.16.66.52) (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(10.68.169.129) and it should follow that servers(172.16.66.52) timming.
I am using DB2 for this.

But I am not supposed to run any application in that server(17.66.16.52).And 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.
THANKS IN ADVANCE...
-RAVI KUMAR
Aalok Pandit
Greenhorn

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: http://aspose.com/file-tools
 
subject: How to Get Timmings from another unix server?
 
Similar Threads
Help Me Please Mark !!!
How to run VB application thr' Apache Tomcat Server
How to connect to server by java programme?
Need help for Shell Script to reduce a file
Working with Java in UNIX