There is one special concern, when running the Qualys Connector via cron, rather than directly. Specifically, the Qualys Connector script has several libraries in a sub-directory, that it requires. When you run it by hand, these sub-directories are relative to the current directory (known as . and is the last entry in the @INC path). When run from cron, however, that is not the current directory.
There is a simple solution, prepend a cd <path to connector> command to the cron entry. For instance, assume:
- The Qualys connector is installed in /home/qconn/
- There is currently a cron entry that reads:
0 5 * * * /home/qconn/qualys_connector.pl
The cron entry needs to be updated to read:
0 5 * * * cd /home/qconn/; ./qualys_connector.pl