Calgarypuck Forums - The Unofficial Calgary Flames Fan Community

Go Back   Calgarypuck Forums - The Unofficial Calgary Flames Fan Community > Main Forums > The Off Topic Forum > Tech Talk
Register Forum Rules FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 03-16-2010, 10:03 PM   #1
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default Any Linux gurus?

Ok Linux is driving me up the wall. Or Windows. Or something.

I have a file on my Windows PC. I edit it, I save it. The file says it was modified at 9:56PM today. Fine.

So I use WinSCP to copy the file over the a Linux (CentOS 5 if it matters) box. I look at the file via ls and it looks fine, the date is 21:56.

BUT if I use stat on the file, it gives me 20:56 for the Modify field! This is bad because the application server (Tomcat) I think uses the modify field to decide to recompile or not, it's an hour past, so it doesn't, so my changes don't show up.

I'm not going to touch every file I upload every time I make changes (plus it's creepy).

And this started happening after the time change, so it MUST be time change related..

date and hwclock --show show the same thing.

So I'm at a loss, any suggestions?
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 03-16-2010, 10:07 PM   #2
ken0042
Playboy Mansion Poolboy
 
ken0042's Avatar
 
Join Date: Apr 2004
Location: Close enough to make a beer run during a TV timeout
Exp:
Default

My Linux skills are behind yours Photon like my hockey skills are behind Iginla's- but is it possible to leave your Windows computer on MST for now until the end of the month when the Linux server would normally switch?

I'm thinking in Windows uncheck "automatically detect DST." If it's anything server related won't it just count backwards from GMT anyways and correct itself in the end?

[/wild stab in the dark]
ken0042 is offline   Reply With Quote
Old 03-16-2010, 10:08 PM   #3
FanIn80
GOAT!
 
FanIn80's Avatar
 
Join Date: Jun 2006
Exp:
Default

I'm not sure, but I bet one of your apps isn't using the "Daylight Savings Time" setting.
FanIn80 is offline   Reply With Quote
Old 03-16-2010, 10:18 PM   #4
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

This isn't really at the app level though, unless it's WinSCP that's modifying the date when the file is in transit which would be very strange.

The file shows the right time in Windows, copy the file, it shows one hour old under one of the 3 fields linux uses for a file for its timestamp.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 03-16-2010, 10:32 PM   #5
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

And that's EXACTLY what it is, WinSCP has a setting which tells it to or to not adjust for the DST settings on Windows..

Thanks for the lead in the right direction FanIn80.

This thing's been killing me all day long.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 03-16-2010, 10:34 PM   #6
FanIn80
GOAT!
 
FanIn80's Avatar
 
Join Date: Jun 2006
Exp:
Default

No problem man!
FanIn80 is offline   Reply With Quote
Old 03-16-2010, 10:38 PM   #7
FlamingStuffedTiger
Backup Goalie
 
FlamingStuffedTiger's Avatar
 
Join Date: Mar 2009
Location: Vancouver
Exp:
Default

I'm not that well versed in Linux, but my first thought was that it would be related to time conversion between the two operating systems because Unix/Linux systems store time in UTC and I believe that Windows uses a different system for tracking time. However, I find it strange how even 'ls' and 'stat' show differences. I can't see why that would be...

Interesting problem. I'll see if I can dig up something...
FlamingStuffedTiger is offline   Reply With Quote
Old 03-16-2010, 10:51 PM   #8
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

ls and stat show different just because ls shows the change timestamp while stat shows change, modify, and accessed.

But it's fixed now, basically set WinSCP properly and it works fine, no creepy touching my jsp's to get tomcat to see them anymore.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 03-17-2010, 08:24 AM   #9
sclitheroe
#1 Goaltender
 
Join Date: Sep 2005
Exp:
Default

Quote:
Originally Posted by photon View Post
ls and stat show different just because ls shows the change timestamp while stat shows change, modify, and accessed.

But it's fixed now, basically set WinSCP properly and it works fine, no creepy touching my jsp's to get tomcat to see them anymore.
Glad to know I'm not the only one who feels creepy running touch.
__________________
-Scott
sclitheroe is offline   Reply With Quote
Old 03-17-2010, 03:19 PM   #10
Azure
Had an idea!
 
Azure's Avatar
 
Join Date: Oct 2005
Exp:
Default

What a nerdy thread.

Azure is offline   Reply With Quote
Reply


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 On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 04:43 PM.

Calgary Flames
2024-25




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright Calgarypuck 2021 | See Our Privacy Policy