| CPUG | |
| The Check Point User Group | |
| A Resource For The Check Point Community. Fast. Useful. Independent. | |
|
| |||||||
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Hi All I have a problem when trying to run an automated upgade_export script via crontab on SecurePlatform. The script executes perfectly when ran from the command line, but when ran via crontab, the upgrade_export part of the script doesn’t run. Crontab ------------------ 1 0 * * * bash /home/username/upgrade_export_script upgrade_export_script ------------------ #!/bin/sh cd /opt/CPsuite-R60/fw1/bin/upgrade_tools/ rm *fw_export.tgz echo | ./upgrade_export "$(date +%d-%m-%y)"_fw_export ftp -inv < ftpuploadscript exit 0 echo | ./upgrade_export "$(date +%d-%m-%y)"_fw_export this line does not execute when ran via crontab I know the script is running via crontab as the .tgz file is removed and if I add a test.txt file and do a ‘put test.txt’ line into the ftpuploadscript, this file is ftp’ed. This shows that the script is running via crontab, just not the upgrade_export procedure. Any ideas, or is there another way of doing this? |
![]() |
| Thread Tools | |
| Display Modes | |
| |