03-11-2008
Time Modified Issue Please Assist
I am trying to periodically check that the environment variables have not been changed on a HP-UX server. This was going to be easy except I ran into the odd circumstance of having two files that should be created equally be created differently when one is created by command line and the other is created in the korn script. This occurs when i create one text file by doing env > env.txt on the command line and the other one env > envDiff.txt in the korn script. They end up different somehow. Anyway I am now trying to figure out a way where I can periodically refresh the env.txt within the script. If I didn't then issues would arise whenever environment variables are changed on purpose. I decided to try to do this based on time modified but HP-UX doesn't have stat. HP-UX also doesn't have -mmin from what I have read. I also looked into using find but I couldnt get anything to work. Does find always return true even when it doesn't find anything? I would appreciate any ideas/solutions. Below is a breakdown of what I need to accomplish in a korn script:
if(file has not been modified in this long)
{
env > env.txt
}
Thanks for your time!
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
How do you change the modified time of a file on UNIX?? (4 Replies)
Discussion started by: frank
4 Replies
2. Shell Programming and Scripting
actually, i'm making an Intrusion Detection System for education purpose (for project) using Bourne shell. The problem I get in that is:-
1. My application should check if there's some modification or alteration in the directory.
2, For that thing, I need to have every attribute of file and... (1 Reply)
Discussion started by: raku05
1 Replies
3. Shell Programming and Scripting
I need to find out the last modified time for the files which are older than 6 months. If I use ls -l, the files which are older than 6 months, I am just getting the day, month and year instead of exact time. I am using Korn shell, and SUN OS.
Thanks in Advance,
Kiran (3 Replies)
Discussion started by: kumariak
3 Replies
4. UNIX for Dummies Questions & Answers
for an assignment i'm working on i have 2 minor issues with my code for the lines to be displayed after entering a line of code i.e:-
$ ls- l foo1.c
foo1.c not found
$ recycle
-rw-r--r-- 1 usr user 31 foo1.c
-rw-r--r-- 1 usr user 31 foo2.c
this is my working code .
... (1 Reply)
Discussion started by: jerryboy78
1 Replies
5. Shell Programming and Scripting
How to change the modified time of a file to any specified time.
ls -ltr
drwxr-xr-x 2 pipe pipe 4096 Jun 10 10:33 coredump_06062008
----------------------------------------------------------------------
here file coredump_06062008 last modified time is Jun 10 10:33 and i... (1 Reply)
Discussion started by: ali560045
1 Replies
6. Shell Programming and Scripting
Hi,
I'm new to shell script programming, I only have Java programming background.
I'm writing a shell script to do file synchronization between 2 machines that located at different time zone area. Both machine were set its time zone according to its geographical location (Eg: server is at... (1 Reply)
Discussion started by: python
1 Replies
7. Shell Programming and Scripting
is it possible to come up with a list of files that are modified before a certain number of hours only using the grep command?
ex. list files that were modified less than 10 hours ago
i've only managed to list files that were created on the same day, i can't seem to figure out how to work... (3 Replies)
Discussion started by: momo.reina
3 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
is it possible to come up with a list of files that are modified before a certain number of hours only using the... (3 Replies)
Discussion started by: momo.reina
3 Replies
9. Shell Programming and Scripting
A files last modified time is like 03/02/2012 xx:xx:xx
So what would be the command to convert the last modified in the given signature
Thanks for giving time and replying..:) (2 Replies)
Discussion started by: ezee
2 Replies
10. Shell Programming and Scripting
Hi Frnds,
i have a folder test in which files generated daily how to chek the files that are modified on that day as a condition for ex,
if
then echo "i have got something to do with the file"
else
echo" sorry"
fi
i will have more than 3 to 4 files that are modified today. and if... (5 Replies)
Discussion started by: mahesh300182
5 Replies
LEARN ABOUT DEBIAN
globus_gsi_gss_assist_constants
GSI GSS Assist Constants(3) globus gss assist GSI GSS Assist Constants(3)
NAME
GSI GSS Assist Constants -
Enumerations
enum globus_gsi_gss_assist_error_t { GLOBUS_GSI_GSS_ASSIST_ERROR_SUCCESS = 0, GLOBUS_GSI_GSS_ASSIST_ERROR_WITH_ARGUMENTS = 1,
GLOBUS_GSI_GSS_ASSIST_ERROR_USER_ID_DOESNT_MATCH = 2, GLOBUS_GSI_GSS_ASSIST_ERROR_IN_GRIDMAP_NO_USER_ENTRY = 3,
GLOBUS_GSI_GSS_ASSIST_ERROR_WITH_GRIDMAP = 4, GLOBUS_GSI_GSS_ASSIST_ERROR_INVALID_GRIDMAP_FORMAT = 5,
GLOBUS_GSI_GSS_ASSIST_ERROR_ERRNO = 6, GLOBUS_GSI_GSS_ASSIST_ERROR_WITH_INIT = 7, GLOBUS_GSI_GSS_ASSIST_ERROR_WITH_WRAP = 8,
GLOBUS_GSI_GSS_ASSIST_ERROR_WITH_TOKEN = 9, GLOBUS_GSI_GSS_ASSIST_ERROR_EXPORTING_CONTEXT = 10,
GLOBUS_GSI_GSS_ASSIST_ERROR_IMPORTING_CONTEXT = 11, GLOBUS_GSI_GSS_ASSIST_ERROR_INITIALIZING_CALLOUT_HANDLE = 12,
GLOBUS_GSI_GSS_ASSIST_ERROR_WITH_CALLOUT_CONFIG = 13, GLOBUS_GSI_GSS_ASSIST_CALLOUT_ERROR = 14, GLOBUS_GSI_GSS_ASSIST_GSSAPI_ERROR =
15, GLOBUS_GSI_GSS_ASSIST_GRIDMAP_LOOKUP_FAILED = 16, GLOBUS_GSI_GSS_ASSIST_BUFFER_TOO_SMALL = 17,
GLOBUS_GSI_GSS_ASSIST_ERROR_CANONICALIZING_HOSTNAME = 18 }
Enumeration Type Documentation
enum globus_gsi_gss_assist_error_t
GSI GSS Assist Error codes.
Enumerator:
GLOBUS_GSI_GSS_ASSIST_ERROR_SUCCESS
Success.
GLOBUS_GSI_GSS_ASSIST_ERROR_WITH_ARGUMENTS
No user entry in gridmap file.
GLOBUS_GSI_GSS_ASSIST_ERROR_USER_ID_DOESNT_MATCH
Error user ID doesn't match.
GLOBUS_GSI_GSS_ASSIST_ERROR_IN_GRIDMAP_NO_USER_ENTRY
Error with arguments passed to function.
GLOBUS_GSI_GSS_ASSIST_ERROR_WITH_GRIDMAP
Error querying gridmap file.
GLOBUS_GSI_GSS_ASSIST_ERROR_INVALID_GRIDMAP_FORMAT
Invalid gridmap file format.
GLOBUS_GSI_GSS_ASSIST_ERROR_ERRNO
System Error.
GLOBUS_GSI_GSS_ASSIST_ERROR_WITH_INIT
Error during context initialization.
GLOBUS_GSI_GSS_ASSIST_ERROR_WITH_WRAP
Error during message wrap.
GLOBUS_GSI_GSS_ASSIST_ERROR_WITH_TOKEN
Error with token.
GLOBUS_GSI_GSS_ASSIST_ERROR_EXPORTING_CONTEXT
Error exporting context.
GLOBUS_GSI_GSS_ASSIST_ERROR_IMPORTING_CONTEXT
Error importing context.
GLOBUS_GSI_GSS_ASSIST_ERROR_INITIALIZING_CALLOUT_HANDLE
Error initializing callout handle.
GLOBUS_GSI_GSS_ASSIST_ERROR_WITH_CALLOUT_CONFIG
Error reading callout configuration.
GLOBUS_GSI_GSS_ASSIST_CALLOUT_ERROR
Error invoking callout.
GLOBUS_GSI_GSS_ASSIST_GSSAPI_ERROR
A GSSAPI returned an error.
GLOBUS_GSI_GSS_ASSIST_GRIDMAP_LOOKUP_FAILED
Gridmap lookup failure.
GLOBUS_GSI_GSS_ASSIST_BUFFER_TOO_SMALL
Caller provided insufficient buffer space for local identity.
GLOBUS_GSI_GSS_ASSIST_ERROR_CANONICALIZING_HOSTNAME
Failed to obtain canonical host name.
Author
Generated automatically by Doxygen for globus gss assist from the source code.
Version 8.5 Mon Apr 30 2012 GSI GSS Assist Constants(3)