Click to See Complete Forum and Search --> : problem running script with CRON


maxthree
12-28-2002, 08:57 PM
Hi,
I have following problem :
I made as script that works just fine. If I run it, no probs.

Now, if I run it with CRON I have a problem with following line

/opt/MagellanNMS/bin/cmccmd <argument>

all this does is send <argument> to a prog I have running.


Again, script runs fine when I run it manually.

When I run it with cron, I get "could not establish connection with functional layer".


anybody know WHY it refuses to work if launched by CRON?

SuperHornet
12-29-2002, 04:03 AM
Which user is the script getting executed under,
the same user as when you ran it manuly?

Is the premissions of the app you are passing arguments to executable by which ever user you are running?

Also make sure you have full working paths in your script, not ~/scripts/myscripts