wasieff6d4016-0170-42cc-9828-0628d6bc8409

FWM Command in bash script

Discussion created by wasieff6d4016-0170-42cc-9828-0628d6bc8409 on Jun 7, 2018
Latest reply on Nov 1, 2018 by Joseph Audet

Hello,

I try to run a bash script as a schedules task (admin user) via Gaia on a R77.30 management server. The purpose of the script is to use the "fwm logexport" command to convert log files to ascii format and then move the file over scp to a Linux server. 

Everything works as expected when calling the script on the command line via expert mode. When the script runs from the cron job everything works the same except that the fwm command cannot be found. 

 

When I just use "fwm" as command in the script I get this error: "fwm: command not found"

When I try to specify the whole path "/opt/CPsuite-R77/fw1/bin/fwm" I get this error: "/opt/CPsuite-R77/fw1/bin/fwm: error while loading shared libraries: libcplic_cntrct.so: cannot open shared object file: No such file or directory"

 

Thanks in advanced,

Dominik

Outcomes