NewtownGuy
Technical User
Hello,
I'm sure this is a permissions problem, but I can't solve it.
I have a perl script in /var/ It writes a log file among other things. It can write the log file just fine when it is invoked from a web page that runs on an Apache2 server on the same machine. The log is in the same folder as the script. So the script is executable, etc, and the file can be written.
But, that same script cannot write (append) to the log file when the script is called by another script that is running on the same machine. The other script receives a socket connection to send data to the first script, rather than receiving data from the local Apache2 server. I know the two scripts can talk to one another because other functions are performed fine.
What do I need to enable the script that writes the log file to write to the log file regardless of who invokes it ?
Thank you in advance.
I'm sure this is a permissions problem, but I can't solve it.
I have a perl script in /var/ It writes a log file among other things. It can write the log file just fine when it is invoked from a web page that runs on an Apache2 server on the same machine. The log is in the same folder as the script. So the script is executable, etc, and the file can be written.
But, that same script cannot write (append) to the log file when the script is called by another script that is running on the same machine. The other script receives a socket connection to send data to the first script, rather than receiving data from the local Apache2 server. I know the two scripts can talk to one another because other functions are performed fine.
What do I need to enable the script that writes the log file to write to the log file regardless of who invokes it ?
Thank you in advance.