Sponsored Content
Full Discussion: NFS Share Time an Hour Ahead
Special Forums Windows & DOS: Issues & Discussions NFS Share Time an Hour Ahead Post 302940362 by jim mcnamara on Friday 3rd of April 2015 11:03:27 PM
Old 04-04-2015
The only thing that can do that? Environment variable settings. Specifically TZ.

For whatever reason the NFS process has (an example, I do not know for sure)
a TZ variable that ends in -500, a bogus time offset for CST. You can make time display almost anything you want (within 24 hours) by tinking with the TZ variable. At the exact same moment. See below.

POSIX Systems will respond correctly to three formats of the TZ variable, even patently ridiculous values: Have a read here and then work with that. BTW the filetimes themselves are not messed up - they are in epoch seconds, not a format like May 7 1999 3:00pm CST. The files are in no way "broken". It is completely caused by the C runtime library time routines getting a bad TZ value.

The GNU C Library: TZ Variable

Then play with the TZ variable's contents and then run date and you will see what I mean.

Last edited by jim mcnamara; 04-04-2015 at 12:08 AM..
 

10 More Discussions You Might Find Interesting

1. Solaris

NFS share options

Hello, I'm doing a Perl script to parse the dfstab file and find dangerous configurations (rw to everyone, root access, etc). My question is, if I have a share command like this: share -F nfs -o ro=chrome:copper:zinc,root=chrome /usr/man it means that the /usr/man is "rw" to everyone... (6 Replies)
Discussion started by: psimoes79
6 Replies

2. Red Hat

NFS share error

I got a problem while creating files on a NFS mounted share in a RHEL box. That is when I create an empty file, this is what appears on the screen ############################################### E325: ATTENTION Found a swap file by the name ".test.swp" owned by: jsmith dated: Tue... (2 Replies)
Discussion started by: rcmrulzz
2 Replies

3. Shell Programming and Scripting

trim 0 ahead of a time,pls help~

Hi, I am trying to write a ksh to compare the time in a date date Thu Jul 1 09:01:24 PDT 2010 when I try to get hour date | awk '{print $4}' | cut -f1 -d: 08 how I can trim the 0 ahead of 08 to make it 8? please help~ (7 Replies)
Discussion started by: netbanker
7 Replies

4. UNIX for Advanced & Expert Users

du and df do not match on NFS share

Here is the scenario... NFS share that is accessed every few minutes by approx 70 systems (AIX 5.3/6.1). Filesystem space is being eaten up rapidly according to df however du numbers really never change. lsof and fuser cannot see any unlinked files on either the NFS server or remote... (3 Replies)
Discussion started by: masterpengu
3 Replies

5. Shell Programming and Scripting

How to convert 24 hour time to 12 hour timing?

Hi friends, I want to convert 24 hour timing to 12 hour please help me... my data file looks like this.. 13-Nov-2011 13:27:36 15.32044 72.68502 13-Nov-2011 12:08:31 15.31291 72.69807 16-Nov-2011 01:16:54 15.30844 72.74028 15-Nov-2011 20:09:25 15.35096 ... (13 Replies)
Discussion started by: nex_asp
13 Replies

6. Red Hat

NFS share

Hi, I have an NFS server, i want to mount that nfs share which is having around 500GB to my client system. But my client system doesnt have any free space, is it possible to mount that nfs share in my client. Regards, Mastan (1 Reply)
Discussion started by: mastansaheb
1 Replies

7. UNIX for Dummies Questions & Answers

Permissions for NFS share

Hi, I have created a NFS share in Solaris 10 server1 and mounted it on solaris 10 server 2.But I want to change owner of the files from nobody to a particular user in client. Which command should I use. I have tried the following but it doesn't allow to change permissions in the server2 as... (0 Replies)
Discussion started by: Rossdba
0 Replies

8. Red Hat

NFS share and groups

I am having an issue with getting the proper group settings on NFS-shared directories. NFS server, NFServe, nfs-shares hundreds of project directories...running Solaris 10 latest patches/updates. SAS server, SAServe, statistical analysis server running on RedHat 7 with latest kernel/patches/etc.... (14 Replies)
Discussion started by: cjhilinski
14 Replies

9. Shell Programming and Scripting

Mount NFS Share On NFS Client via bash script.

I need a help of good people with effective bash script to mount nfs shared, By the way I did the searches, since i haven't found that someone wrote a script like this in the past, I'm sure it will serve more people. The scenario as follow: An NFS Client with Daily CRON , running bash script... (4 Replies)
Discussion started by: Brian.t
4 Replies

10. IP Networking

Unable to search NFS Share

My customer has created a share on a Windows Server 2012 system and exported it as a NFS share. I can mount the share on a SCO system, but I only have read/write access. So I am unable to list the contents of the share. It is as if the directories had 0666 permissions. My customer says that this... (5 Replies)
Discussion started by: jgt
5 Replies
ost::Time(3)						     Library Functions Manual						      ost::Time(3)

NAME
ost::Time - The Time class uses a integer representation of the current time. SYNOPSIS
#include <numbers.h> Inherited by ost::Datetime. Public Member Functions Time (time_t tm) Time (tm *dt) Time (char *str, size_t size=0) Time (int hour, int minute, int second) Time () virtual ~Time () long getValue (void) const int getHour (void) const int getMinute (void) const int getSecond (void) const char * getTime (char *buffer) const time_t getTime (void) const tm * getTime (tm *buf) const void setTime (char *str, size_t size=0) bool isValid (void) const operator long () String operator() () const Time & operator++ () Time & operator-- () Time & operator+= (const int val) Time & operator-= (const int val) int operator== (const Time &time) int operator!= (const Time &time) int operator< (const Time &time) int operator<= (const Time &time) int operator> (const Time &time) int operator>= (const Time &time) bool operator! () const Protected Member Functions void toSeconds (int hour, int minute, int second) void fromSeconds (char *buf) const virtual void update (void) Protected Attributes long seconds Friends Time operator+ (const Time &time1, const Time &time2) Time operator- (const Time &time1, const Time &time2) Time operator+ (const Time &time, const int val) Time operator- (const Time &time, const int val) Time operator+ (const int val, const Time &time) Time operator- (const int val, const Time &time) Detailed Description The Time class uses a integer representation of the current time. This is then manipulated in several forms and may be exported as needed. Author: Marcelo Dalmas mad@brasmap.com.br Integer based time class. Constructor &; Destructor Documentation ost::Time::Time (time_ttm) ost::Time::Time (tm *dt) ost::Time::Time (char *str, size_tsize = 0) ost::Time::Time (inthour, intminute, intsecond) ost::Time::Time () virtual ost::Time::~Time () [virtual] Member Function Documentation void ost::Time::fromSeconds (char *buf) const [protected] int ost::Time::getHour (void) const int ost::Time::getMinute (void) const int ost::Time::getSecond (void) const char* ost::Time::getTime (char *buffer) const time_t ost::Time::getTime (void) const tm* ost::Time::getTime (tm *buf) const long ost::Time::getValue (void) const bool ost::Time::isValid (void) const Reimplemented in ost::Datetime. ost::Time::operator long () [inline] bool ost::Time::operator! (void) const [inline] Reimplemented in ost::Datetime. int ost::Time::operator!= (const Time &time) String ost::Time::operator() () const Time& ost::Time::operator++ () Time& ost::Time::operator+= (const intval) Time& ost::Time::operator-- () Time& ost::Time::operator-= (const intval) int ost::Time::operator< (const Time &time) int ost::Time::operator<= (const Time &time) int ost::Time::operator== (const Time &time) int ost::Time::operator> (const Time &time) int ost::Time::operator>= (const Time &time) void ost::Time::setTime (char *str, size_tsize = 0) void ost::Time::toSeconds (inthour, intminute, intsecond) [protected] virtual void ost::Time::update (void) [protected], [virtual] Friends And Related Function Documentation Time operator+ (const Time &time1, const Time &time2) [friend] Time operator+ (const Time &time, const intval) [friend] Time operator+ (const intval, const Time &time) [friend] Time operator- (const Time &time1, const Time &time2) [friend] Time operator- (const Time &time, const intval) [friend] Time operator- (const intval, const Time &time) [friend] Member Data Documentation long ost::Time::seconds [protected] Author Generated automatically by Doxygen for GNU CommonC++ from the source code. GNU CommonC++ Sat Jun 23 2012 ost::Time(3)
All times are GMT -4. The time now is 07:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy