Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Michal_Gans
Contributor
Contributor
Jump to solution

cron schedule on tecli command

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
masher
Employee
Employee

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.

View solution in original post

2 Replies
masher
Employee
Employee

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
Contributor
Contributor

Thanks Michael, 

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

Made the trick.

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events