au1544s: /var/cron> ls -log
total 3348
-rw-------   1  243691 Aug 21 14:48 log
-rw-------   1  399268 Aug 21 00:01 log.0
-rw-------   1  451651 Aug 20 00:01 log.1
-rw-------   1  494912 Aug 19 00:01 log.2
-rw-------   1   75077 Apr  5  2002 log.3

when iam trying to view i dont have permissions

-----Original Message-----
From: Schubert, John [NTWK SVCS] [mailto:[EMAIL PROTECTED]
Sent: Thursday, 21 August 2003 4:01 AM
To: Vema Venkata; Dan Muey; Jeff Westman; beginners
Subject: RE: Cron jobs and perl


Anytime you have problems with a cron, the easiest place to look first is in the 
cronlog.  If you have root access, look at the file /var/cron/log (this is Solaris, 
other *nix may have it elsewhere).  If you don't have root access, delete my E-mail 
and I apoligize for intruding. :-)

In the cron log you will see if the command executed or if it failed out.  You may 
also note you "have mail", which may contain some useful info.  (again, this is all 
from a Solaris point of view).

Looking at your pasted entries, it looks ok, however running the .profile first may be 
causing problems.

John

-----Original Message-----
From: Vema Venkata [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 19, 2003 10:00 PM
To: Dan Muey; Jeff Westman; beginners
Subject: Cron jobs and perl


Hi Dan 

The problem still persisits pls. help/suggest me what to do ?

When iam executing the xapipgm.pl it is getting executed properly but when iam trying 
to execute thru crontab
it is not 

xapipgm.pl
**************************************************************
#!/bin/sh
  #myrun.shell
  xapipgm=srvtst26.pl
  pgrep -f $xapipgm > /dev/null
  # runrc=$?
  # echo "Return Code is: $?"
  if [ $? -eq 0 ]
  then
  set `pgrep -f $xapipgm `
  echo "AHD XAPI Server ($xapipgm) Running with Process Id: $1" 
 else 
  echo "AHD XAPI Server is now Started Running on  
`date`.">log/init/ahdxapi.init.$1$2$3.$4$5.log
  set `date '+%Y %m %d %H %M' `
  xapipgm=srvtst26.pl
 perl -w $xapipgm > log/init/ahdxapi.init.$1$2$3.$4$5.log 
2>log/init/ahdxapi.init.$1$2$3.$4$5.err
  #perl -w $4$5>log/init/ahdxapi.init
  fi
  
**************************************************************


Cron tab settings are as follows
________________________________________________________________________________________
* * * * * . /home/paradigm/.profile; /proj/ahd02/CAisd/site/mods/scripts/xapipgm.pl >> 
/proj/ahd02/CAisd/site/mods/scripts/log/init/ahdxapi.init.log  2>&1

_________________________________________________________________________________________

Access permsissons Details

In the following path i have

"/proj/ahd02/CAisd/site/mods/scripts"------------->Xapipgm.pl
"/proj/ahd02/CAisd/site/mods/scripts/log/init"------------->ahdxapi.init.log
and the access permission for log folder is drwxr-xr-x and init folder is drwxr-xr-x.

And the log file name i.e (agdxapi.init.log) is -rwxrwxrwx




rgds
venkat

 
 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to