Sponsored Content
Top Forums UNIX for Dummies Questions & Answers AT job scheduled exactly 2 hours late Post 79298 by bohunk24 on Tuesday 26th of July 2005 04:46:50 PM
Old 07-26-2005
Hi, Perderabo -
Your suggestion was helpful! In the environmentless ksh, the at command was scheduled at the proper time. Of course, with no environment vars defined, it used GMT. When I then added only this one env var definition:
export TZ=:/usr/lib/locale/TZ/US/Eastern
the 2-hours-off symptom began to occur in this "stripped down" shell.

I compared this Eastern file to one on a related system (that schedules OK) and the files are identical. I even copied it over from a "good" system to try it, but with no effect. I also tried other TZ files, Central, etc. and, while the time changed, depending on the TZ value, the 2-hours-off symptom persisted.

One detail about TZ I don't understand.
When I assigned this value to TZ (i.e. without a leading colon):
export TZ=/usr/lib/locale/TZ/US/Eastern
the variable seems to be ignored. The at schedule used GMT, as if TZ were not set.
However, if it is set this way:
export TZ=:/usr/lib/locale/TZ/US/Eastern
the symptom always occurs.

So, your suggestion has helped shed a little light on this.
It is somehow connected to the TZ setting, but it's not clear exactly where the problem is. Do you have any follow-up ideas? Thanks!
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Conditional File Movement script scheduled using CRON job

Hi All, i am trying to automate a process and have to create a unix script like wise. I have a scenario in which i need to automate a file movement. Below are the steps i need to automate. 1. Check whether a file (Not Fixed name-Pattern search of file say 'E*.dat') is present in a... (2 Replies)
Discussion started by: imu
2 Replies

2. UNIX for Dummies Questions & Answers

problem when the script is scheduled to run as cron job

Hello, I have problem in executing a shell script. When the shell script is executed at the shell prompt the script works successfully but when the same script is run as a cron job it fails to execute the files called within the shell script. I have scheduled the job in my crontab file as ... (6 Replies)
Discussion started by: forumthreads
6 Replies

3. UNIX for Dummies Questions & Answers

Scheduled job

I have a lot of jobs scheduled using at command. at -l gives only the job names and time ... how do i know which script is associated with which jobid. Thanks. (1 Reply)
Discussion started by: blackeyed
1 Replies

4. Shell Programming and Scripting

Cron job for every five minutes and between hours

Hi I need to run a script every five minutes and it should run between 07-15 hours all days. How i can achieve this... i tried like this */5 07-15 * * * /scripts/CreateFtpData.sh It throws an error... (1 Reply)
Discussion started by: aemunathan
1 Replies

5. Programming

Oracle Scheduled job not running as per schedule.

Hi, Though this is a unix forum mainly, am posting this oracle query here hoping to get a resolution. I have set up two scheduled jobs in oracle 11g for executiong a procedure in specific time intervals. One as Hourly and other as minutely. But the scheduled jobs are not running as per... (2 Replies)
Discussion started by: suresh_kb211
2 Replies

6. UNIX for Dummies Questions & Answers

at -l doesnt give details of the scheduled job. How to get the details?

I have scheduled couple of shell scripts to run using 'at' command. The o/p of at -l is: $ at -l 1320904800.a Thu Nov 10 01:00:00 2011 1320894000.a Wed Nov 9 22:00:00 2011 1320876000.a Wed Nov 9 17:00:00 2011 $ uname -a SunOS dc2prcrptetl2 5.9 Generic_122300-54 sun4u sparc... (2 Replies)
Discussion started by: superparticle
2 Replies

7. Shell Programming and Scripting

run unix script as scheduled job

Hi, I want my unix script to run as a scheduled job such that the script is invoked once every 15 minutes. Is there any way to achieve this other than running the script as a cron job? (2 Replies)
Discussion started by: vignesh53
2 Replies

8. Shell Programming and Scripting

Scheduled job not running automatically in crontab

i have a job scheduled in crontab. The problem is, it is not running automatically as per the time scheduled. But runs when executed manually. What would be the problem? Help me with this please. (6 Replies)
Discussion started by: Santhosh CJ
6 Replies

9. UNIX for Beginners Questions & Answers

Cron job scheduled is running once, but reports are generating twice

Team, Hope you all are doing fine I have one admin server which is being used dedicately to run cron jobs on hourly basis, fetching the details from Database which is in a different server.These cronjob are run on every hourly/5 minutes basis depending as per end user requirement.The script... (12 Replies)
Discussion started by: whizkidash
12 Replies
srchtxt(1)							   User Commands							srchtxt(1)

NAME
srchtxt - display contents of, or search for a text string in, message data bases SYNOPSIS
srchtxt [-s] [-l locale] [ -m msgfile ,...] [text] DESCRIPTION
The srchtxt utility is used to display all the text strings in message data bases, or to search for a text string in message data bases (see mkmsgs(1)). These data bases are files in the directory /usr/lib/locale/locale/LC_MESSAGES (see setlocale(3C)), unless a file name given with the -m option contains a /. The directory locale can be viewed as the name of the language in which the text strings are writ- ten. If the -l option is not specified, the files accessed will be determined by the value of the environment variable LC_MESSAGES. If LC_MESSAGES is not set, the files accessed will be determined by the value of the environment variable LANG. If LANG is not set, the files accessed will be in the directory /usr/lib/locale//C/LC_MESSAGES , which contains default strings. If no text argument is present, then all the text strings in the files accessed will be displayed. If the -s option is not specified, the displayed text is prefixed by message sequence numbers. The message sequence numbers are enclosed in angle brackets: <msgfile:msgnum>. msgfile name of the file where the displayed text occurred msgnum sequence number in msgfile where the displayed text occurred This display is in the format used by gettxt(1) and gettxt(3C). OPTIONS
-s Suppress printing of the message sequence numbers of the messages being displayed. -l locale Access files in the directory /usr/lib/locale/locale/LC_MESSAGES. If -m msgfile is also supplied, lOCALE is ignored for msgfiles containing a /. -m msgfile Access files specified by one or more msgfiles. If msgfile contains a / character, then msgfile is interpreted as a path- name; otherwise, it will be assumed to be in the directory determined as described above. To specify more than one msgfile, separate the file names using commas. text Search for the text string specified by text and display each one that matches. text can take the form of a regular expres- sion; see regexp(5). EXAMPLES
Example 1: Using srchtxt If message files have been installed in a locale named french by using mkmsgs(1), then you could display the entire set of text strings in the french locale (/usr/lib/locale/french/LC_MESSAGES/* ) by typing: example% srchtxt -l french Example 2: Using srchtxt If a set of error messages associated with the operating system have been installed in the file UX in the french locale (/usr/lib/locale/french/LC_MESSAGE/UX ), then, using the value of the LANG environment variable to determine the locale to be searched, you could search that file in that locale for all error messages dealing with files by typing: example% setenv LANG=french; export LANG example% srchtxt -m UX "[Ff]ichier" If /usr/lib/locale/french/LC_MESSAGES/UX contained the following strings: Erreur E/S Liste d'arguments trop longue Fichier inexistant Argument invalide Trop de fichiers ouverts Fichier trop long Trop de liens Argument hors du domaine Identificateur supprim Etreinte fatale . . . then the following strings would be displayed: <UX:3>Fichier inexistant <UX:5>Trop de fichiers ouverts <UX:6>Fichier trop long Example 3: Using srchtxt If a set of error messages associated with the operating system have been installed in the file UX and a set of error messages associated with the INGRESS data base product have been installed in the file ingress, both in the german locale, then you could search for the pat- tern [Dd]atei in both the files UX and ingress in the german locale by typing: example% srchtxt -l german -m UX,ingress "[Dd]atei" ENVIRONMENT VARIABLES
See environ(5) for a description of the LC_CTYPE environment variable that affects the execution of srchtxt. FILES
/usr/lib/locale/C/LC_MESSAGES/* default files created by mkmsgs(1) /usr/lib/locale/locale/LC_MESSAGES/* message files created by mkmsgs(1) ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |Availability |SUNWloc | +-----------------------------+-----------------------------+ SEE ALSO
exstr(1), gettxt(1), locale(1), mkmsgs(1), gettxt(3C), setlocale(3C), attributes(5), environ(5), locale(5), regexp(5) DIAGNOSTICS
The error messages produced by srchtxt are intended to be self-explanatory. They indicate an error in the command line or errors encoun- tered while searching for a particular locale and/or message file. SunOS 5.10 20 Dec 1996 srchtxt(1)
All times are GMT -4. The time now is 11:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy