Linux Operating System (MOSC)

MOSC Banner

Any other methods can replace crontab?

edited Jul 14, 2013 11:38AM in Linux Operating System (MOSC) 1 commentAnswered
Hi expert,
I wrote a simple shell to start LTOM in background task mode, it was OK when started manually, but failed by crontab.
The error message in log is:
Exception in thread "main" java.lang.NoClassDefFoundError: sun.misc.BASE64Decoder
   at LTOM.StringEncrypter.decrypt(StringEncrypter.java:125)
   at LTOM.Ltom.main(Ltom.java:1024)

The area of the code where this is coming from is encrypting the password.
BUT I started the shell ok by manual.

manual start: sh /home/oracle/ltom/bktask.sh
crontab: 0,10,20,30,40,50 * * * * sh /home/oracle/ltom/bktask.sh

Following is my script:

bktask.sh

#!/bin/sh

#set env

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center