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(126.96.36.199).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
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.