The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cron issue kingdbag SUN Solaris 5 07-10-2008 12:14 PM
Another Cron issue. Beefy UNIX for Dummies Questions & Answers 2 03-13-2008 01:30 PM
FTP Cron Issue edua Shell Programming and Scripting 7 11-27-2007 03:30 AM
Issue with cron job -Please help bsandeep_80 Shell Programming and Scripting 6 07-27-2007 03:20 PM
cron issue Optimus_P UNIX for Advanced & Expert Users 5 08-26-2002 02:30 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 11-21-2005
nattynatty nattynatty is offline
Registered User
  
 

Join Date: Apr 2002
Posts: 31
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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:19 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0