cancel
Showing results for 
Search instead for 
Did you mean: 
Create a Post
Michal_Gans
Nickel

cron schedule on tecli command

Jump to solution

I would like to monitor emulation status on SandBlast appliance, so I want to run "tecli s e v s" by cron every x min.

But if I start tecli command by cron, it ended with this error

/opt/CPsuite-R77/fw1/bin/tecli: line 49: /teCurrentPack/temain: No such file or directory
/opt/CPsuite-R77/fw1/bin/tecli: line 49: exec: /teCurrentPack/temain: cannot execute: No such file or directory

So I want to ask if anybody know which environment parameters need to be set for tecli to run?

Thanks

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Employee+
Employee+

Re: cron schedule on tecli command

Jump to solution

tecli requires the $FWDIR environment variable.

You will need to adjust your cronjob to source the .CPprofile.sh file under the /opt/CPshrd-RXX.YY/tmp directory.

2 Replies
Highlighted
Employee+
Employee+

Re: cron schedule on tecli command

Jump to solution

tecli requires the $FWDIR environment variable.

You will need to adjust your cronjob to source the .CPprofile.sh file under the /opt/CPshrd-RXX.YY/tmp directory.

Michal_Gans
Nickel

Re: cron schedule on tecli command

Jump to solution

Thanks Michael, 

#!/bin/bash -f
source /opt/CPshrd-R77/tmp/.CPprofile.sh

Made the trick.

0 Kudos