1830156 Members
7486 Online
109999 Solutions
New Discussion

Re: cron errors

 
Pradeep Pillai
New Member

cron errors

one of my cron jobs spits out an error as
ERROR [/.../.../.../.../monalert.sh]: not an SCCS file (co1)
could anybody help me out with this

thanks
pradeep
10 REPLIES 10
pap
Respected Contributor

Re: cron errors

Hi Pradip.
Can you post the crontab file which fires this job?

It seems that you are executing non executable file through a cron job.

Please make sure that file is having execute permission.

Thanks,
-pap
"Winners don't do different things , they do things differently"
Deepak Extross
Honored Contributor

Re: cron errors

Hi Pradip,

I suspect your cron job does a "get /.../.../.../.../monalert.sh".

/usr/bin/get generates an ASCII text file from the SCCS file, so it is alerting you that monalert.sh is not an SCCS file.

Please check what exactly is sought to be accomplished by your command. Did you want to run ftp's "get" instead? If so, consider using the "ftp -vin " syntax or use the "expect" tool.

If you are trying to invoke your own "get" utility or script, qualify it with the full path.

Hope this helps
SHABU KHAN
Trusted Contributor

Re: cron errors

Pradeep,

As Deepak mentioned, you need to specify the full path name for "get" in your script...

/usr/sccs/bin/get
/usr/ccs/bin/get
/usr/xpg4/bin/get
/usr/bin/get

whichever is applicable..

-Shabu
Pradeep Pillai
New Member

Re: cron errors

the cron job doesnt seem like using any sort of "get" anywhere....!

The cron script for my part looks like
00 1,6,12,18 * * * /opt/app/test/scripts/monalert.sh

thanks
pradeep
Patrick Wallek
Honored Contributor

Re: cron errors

Does the monalert.sh script call 'get' anywhere? What does the script do?
Helen French
Honored Contributor

Re: cron errors

Hi Pradeep,

I would suggest you to update your system with the latest patch bundle. A lot of SCCS error have been solved by patches.

HTH,
Shiju
Life is a promise, fulfill it!
Pradeep Pillai
New Member

Re: cron errors

nope ,my monalert.sh does not have a call to "get" anywhere !
Surprisingly I have other similiar scripts in the cron ,which runs just fine !

thanks
pradeep
SHABU KHAN
Trusted Contributor

Re: cron errors

Pradeep,

Do a:

help co1

and see if the error message is useful..

-Shabu
Pradeep Pillai
New Member

Re: cron errors

tried help col1.. did not make sense..

thanks
pradeep
SHABU KHAN
Trusted Contributor

Re: cron errors

Pradeep,

If it is an HP server..

help co1

will say

co1:
"not an SCCS file"
A file that you think is an SCCS file
does not begin with the characters "s.".

It is co1 (it is the error message that you are getting) and not col1

-Shabu