Home
TeamSite
How to read timestamp
Nitesh
I have to read the timestamp of update time of a file. This file is kept in STAGING area of TeamSite6.5 server. I'm trying to read timestamp through and IPL file.
Can you suggest, how to go about this?
Thanks & Regards,
Nitesh
Find more posts tagged with
Comments
dazzlad
Perhaps you should show us the ipl you are using and someone may be able to suggest why it isn't working.
Migrateduser
Read up on the File::stat module.
Adam Stoller
Read up on the File::stat module.
Or just read up on 'stat' itself (perldoc -f stat)
Nitesh
I'm using following to store the curent timestamp to a file...
open(TIMESTAMP, ">$iwhome/httpd/iw-bin/Distribution-Portal/dp_submit_taxonomy.timestamp");
print LOG "Before creating Timestamp\n";
print TIMESTAMP $timestr;
Migrateduser
Okay, well you're leaving out where you've assigned $timestr to some value and you also didn't say what your output is.
We can only be as helpful as you are descriptive.