• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Shell script is not writing to log file

L

linuxxphybrid

Guest
I have the following shell script.
Code:
#!/bin/bash
# Variables
LOGFILE="/home/admin/cron/http_log"

# redirect STDOUT stream to LOGFILE
exec 1>>$LOGFILE

echo "GET /" | nc localhost 80
(The file name is /home/admin/cron/checkhttp.sh and the directory /home/admin/cron/, its subdirectories and all files in the directory and subdirectories have

Owner root
Group psaadm

and the file's permission is set to rxwr-xr-x. I set up a cron job in Plesk so that the script is executed every 5 minutes; its configuration is as follows:

Min */5
H *
DM *
M *
DW *
Command /home/admin/cron/checkhttp.sh)

The script is not writing to /home/admin/cron/http_log, and I don't know why. Why is the script not writing to /home/admin/cron/http_log? How can I fix the problem?
 
Back
Top