In a number of places in the linux scripts, there is a sequence like the following. This requires write access to the current directory.
wget ...
http://...../somefile.phprm somefile.php
That could be better replaced with this sequence:
(at the top of the file)
OA_WGET_OUTPUT=/dev/null
(down below)
wget -O $OA_WGET_OUTPUT ...
http://...../somefile.phpTwo advantages:
- Since the output is never written to a file, there is no problem with a read-only directory.
- for debugging, you can easily redirect the output either to stdout or to a real file, just by changing OA_WGET_OUTPUT. Note: to send output to stdout, use a minus sign as the file name:
OA_WGET_OUTPUT=-