Sponsored Content
Full Discussion: Issue with cron job
Top Forums Shell Programming and Scripting Issue with cron job Post 90300 by nattynatty on Monday 21st of November 2005 12:17:43 PM
Old 11-21-2005
Issue with cron job

Hi,

I have a script which I am able to run from command line. When I put this in cron, it fails and gives the following message:

ld.so.1: /d00/documentum/product/5.2.5/bin/dmbasic: fatal: libdmcl40.so: open failed: No such file or directory

The ksh script looks like this:

# Set this variable during installation
PFMS_HOME=/home/pfmstest
. $PFMS_HOME/methods/SET_METHOD_ENV

LOGFILE=$EXECDIR/render_objects.log

# Get the date for recording in the logfile
date +"%m/%d/%Y %T" | read current_date

# If there are no arguments call the render_objects.bas and enter the correct
# function.
if [[ $# -eq 0 ]]
then

echo "\nExecuting render_objects at $current_date" >> $LOGFILE
$DM_BIN/dmbasic -f $EXECDIR/render_objects.bas $EXECDIR/StringUtils.bas -e EntryPoint -p $DOCBASE $DOCBASEOWNER >> $LOGFILE

elif [[ $# -eq 1 ]]
then
echo "\nExecuting render_objects for one Object ID: $1 at $current_date" >> $LOGFILE
$DM_BIN/dmbasic -f $EXECDIR/render_objects.bas $EXECDIR/StringUtils.bas -e EntryPointOneItem -p $DOCBASE $DOCUMENTUMOWNER $1 >> $LOGFILE

else
echo "Usage: render_objects.ksh [object_id]" >> $LOGFILE
exit 1
fi

# Exit Status
exit $?

Any ideas/suggestions.

Thanx
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Issue with cron job -Please help

Hi , I have an issue with cron job that i have scheduled today. The problem is that when i run this script in command prompt it work good giving me the desired results but if i schedule this to run using cron job it failes giving a "syntax error in line 11 :$"..... Can anyone look into this and... (6 Replies)
Discussion started by: bsandeep_80
6 Replies

2. Solaris

cron job starts new cron proccess

I run cron in solaris 10 zone. One cron job which syncing files to nfs mounted on container, creates after finishing another cron proccess(/usr/sbin/cron), and after 100 existing cron proccesses next cron job will not start. It's too weird for me, I'm not able to solve this problem. Theoretically... (3 Replies)
Discussion started by: ron76
3 Replies

3. UNIX for Dummies Questions & Answers

Cron job issue

This is regarding my cron job. My cron entry 30 * * * 1-5,0 /work1/informix/sample/script1.sh 31 * * * 1-5,0 /work1/informix/sample/script2.sh Every 30 mins script1.sh is run. (mon thru friday and sunday) Every 30 mins script2.sh is run. (mon thru friday and sunday) This is based on the... (3 Replies)
Discussion started by: kenkanya
3 Replies

4. Shell Programming and Scripting

cron job issue..i hav read the basic threads already...

hi friends well m facing a different sort of issue in my cron. i hav set job like this 30 09 * * 1 /bin/backup14M 01 14 * * 1 /bin/backup14N 20 18 * * 1 /bin/backup14E that is for every Monday at three different times. but, first job executes well, later ones do not. I checked my... (13 Replies)
Discussion started by: oracle.test2
13 Replies

5. Shell Programming and Scripting

cron job issue

Hi , I want to run script every minute so i added . cron entry as below usning crontab -e looks like */1 * * * * sh /home/sai/http_sim/http_start.sh but cron job is not running ? any way to start the cron or something ? Thanks, Raghavendra (2 Replies)
Discussion started by: raghavendra.nsn
2 Replies

6. Shell Programming and Scripting

Issue with svn update using cron job.

I want to update svn code using a nightly job using cron, i have created a job in cron as, 30 17-19 * * 1-5 /home/saprab/svnUpdate.sh <branch> <svnusername> <svnpassword> >> <logfile> 2>&1 svnUpdate.sh : =============== #!/bin/bash branch=$1 svnuser=$2 svnpass=$3 cd ${branch}... (2 Replies)
Discussion started by: bhavesh.sapra
2 Replies

7. Solaris

Cron job running even after cron is removed

Hi , I have removed a cron for particular user , but cron job seems to be running even after the cron entry is removed. The purpose of the cron was to sendmail to user ( it uses mailx utility ) I have restarted cron and sendmail service still user is getting mail alerts from the cron job. And... (4 Replies)
Discussion started by: chidori
4 Replies

8. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies

9. UNIX for Beginners Questions & Answers

Cron Job Issue

Dear Members Seeking you help on my issue. this script need to run on every end of month.i configured as below. but it runs everyday. why 0 9 28-31 * * ] && /usr/bin/bash /u01///scripts/e.sh (3 Replies)
Discussion started by: ded325
3 Replies

10. UNIX for Beginners Questions & Answers

Cron Job Issue

My Friends I want to run a script only at the end of month.but i tried below cront entry its not working. pls help 0 9 28-31 ] && /usr/bin/bash /u01/app/scripts/CX-eom.shOs Details: AIX 7.1.0.0 Please use CODE tags as required by forum rules! (5 Replies)
Discussion started by: ded325
5 Replies
GLOBUS-GATEKEEPER(8)						  Globus Toolkit					      GLOBUS-GATEKEEPER(8)

NAME
globus-gatekeeper - Authorize and execute a grid service on behalf of a user SYNOPSIS
globus-gatekeeper [-help] [-conf PARAMETER_FILE] [-test] [-d | -debug] {-inetd | -f} [-p PORT | -port PORT] [-home PATH] [-l LOGFILE | -logfile LOGFILE] [-lf LOG_FACILITY] [-acctfile ACCTFILE] [-e LIBEXECDIR] [-launch_method {fork_and_exit | fork_and_wait | dont_fork}] [-grid_services SERVICEDIR] [-globusid GLOBUSID] [-gridmap GRIDMAP] [-x509_cert_dir TRUSTED_CERT_DIR] [-x509_cert_file TRUSTED_CERT_FILE] [-x509_user_cert CERT_PATH] [-x509_user_key KEY_PATH] [-x509_user_proxy PROXY_PATH] [-k] [-globuskmap KMAP] [-pidfile PIDFILE] DESCRIPTION
The globus-gatekeeper program is a meta-server similar to inetd or xinetd that starts other services after authenticating a TCP connection using GSSAPI and mapping the client's credential to a local account. The most common use for the globus-gatekeeper program is to start instances of the globus-job-manager(8) service. A single globus-gatekeeper deployment can handle multiple different service configurations by having entries in the /etc/grid-services directory. Typically, users interact with the globus-gatekeeper program via client applications such as globusrun(1), globus-job-submit, or tools such as CoG jglobus or Condor-G. The full set of command-line options to globus-gatekeeper consists of: -help Display a help message to standard error and exit -conf PARAMETER_FILE Load configuration parameters from PARAMETER_FILE. The parameters in that file are treated as additional command-line options. -test Parse the configuration file and print out the POSIX user id of the globus-gatekeeper process, service home directory, service execution directory, and X.509 subject name and then exits. -d, -debug Run the globus-gatekeeper process in the foreground. -inetd Flag to indicate that the globus-gatekeeper process was started via inetd or a similar super-server. If this flag is set and the globus-gatekeeper was not started via inetd, a warning will be printed in the gatekeeper log. -f Flag to indicate that the globus-gatekeeper process should run in the foreground. This flag has no effect when the globus-gatekeeper is started via inetd. -p PORT, -port PORT Listen for connections on the TCP/IP port PORT. This option has no effect if the globus-gatekeeper is started via inetd or a similar service. If not specified and the gatekeeper is running as root, the default of 2119 is used. Otherwise, the gatekeeper defaults to an ephemeral port. -home PATH Sets the gatekeeper deployment directory to PATH. This is used to interpret relative paths for accounting files, libexecdir, certificate paths, and also to set the GLOBUS_LOCATION environment variable in the service environment. If not specified, the gatekeeper looks for service executables in /usr/sbin, configuration in /etc, and writes logs and accounting files to /var/log. -l LOGFILE, -logfile LOGFILE Write log entries to LOGFILE. If LOGFILE is equal to logoff or LOGOFF, then logging will be disabled, both to file and to syslog. -lf LOG_FACILITY Open syslog using the LOG_FACILITY. If not specified, LOG_DAEMON will be used as the default when using syslog. -acctfile ACCTFILE Set the path to write accounting records to ACCTFILE. If not set, records will be written to the log file. -e LIBEXECDIR Look for service executables in LIBEXECDIR. If not specified, the sbin subdirectory of the parameter to -home is used, or /usr/sbin if that is not set. -launch_method fork_and_exit|fork_and_wait|dont_fork Determine how to launch services. The method may be either fork_and_exit (the service runs completely independently of the gatekeeper, which exits after creating the new service process), fork_and_wait (the service is run in a separate process from the gatekeeper but the gatekeeper does not exit until the service terminates), or dont_fork, where the gatekeeper process becomes the service process via the exec() system call. -grid_services SERVICEDIR Look for service descriptions in SERVICEDIR. -globusid GLOBUSID Sets the GLOBUSID environment variable to GLOBUSID. This variable is used to construct the gatekeeper contact string if it can not be parsed from the service credential. -gridmap GRIDMAP Use the file at GRIDMAP to map GSSAPI names to POSIX user names. -x509_cert_dir TRUSTED_CERT_DIR Use the directory TRUSTED_CERT_DIR to locate trusted CA X.509 certificates. The gatekeeper sets the environment variable X509_CERT_DIR to this value. -x509_user_cert CERT_PATH Read the service X.509 certificate from CERT_PATH. The gatekeeper sets the X509_USER_CERT environment variable to this value. -x509_user_key KEY_PATH Read the private key for the service from KEY_PATH. The gatekeeper sets the X509_USER_KEY environment variable to this value. -x509_user_proxy PROXY_PATH Read the X.509 proxy certificate from PROXY_PATH. The gatekeeper sets the X509_USER_PROXY environment variable to this value. -k Use the globus-k5 command to acquire Kerberos 5 credentials before starting the service. -globuskmap KMAP Use KMAP as the path to the Grid credential to kerberos initialization mapping file. -pidfile PIDFILE Write the process id of the globus-gatekeeper to the file named by PIDFILE. ENVIRONMENT
If the following variables affect the execution of globus-gatekeeper: X509_CERT_DIR Directory containing X.509 trust anchors and signing policy files. X509_USER_PROXY Path to file containing an X.509 proxy. X509_USER_CERT Path to file containing an X.509 user certificate. X509_USER_KEY Path to file containing an X.509 user key. GLOBUS_LOCATION Default path to gatekeeper service files. FILES
/etc/grid-services/SERVICENAME Service configuration for SERVICENAME. /etc/grid-security/grid-mapfile Default file mapping Grid identities to POSIX identities. /etc/globuskmap Default file mapping Grid identities to Kerberos 5 principals. /etc/globus-nologin File to disable the globus-gatekeeper program. /var/log/globus-gatekeeper.log Default gatekeeper log. SEE ALSO
globus-k5(8), globusrun(1), globus-job-manager(8) University of Chicago 01/06/2012 GLOBUS-GATEKEEPER(8)
All times are GMT -4. The time now is 02:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy