klaasvaak
User
| Posts: 520 |   |

|
Synology Linux: “shell_exec()” and “exec() problem - 2008/08/03 13:56
NOTE: This is a new thread based upon Joe’s post Re: TVDb on Synology (Linux) - 2008/08/03 10:12
Hi Joe,
Joe wrote:I would like to mention that changing the shell_exec with the exec on my DS207+ leads to endless, multiple media searches, when I manually start to refresh the media library. Well, I’m not encountering this type of problem, but in my system a media refresh from the “search for new media”-menu in the config screen doesn’t work at all. However, if I start from there a media refresh followed by a manual “http://<server_ip>:<port>/media_search.php” in my browser it does work smoothly. For some reason the file media_search.php isn’t called. So far I couldn’t find out the reason.
Joe wrote: I therefore now use your other suggestion, what you proposed on the Synology.NL forum, simply to "hard code":
| Code: | function wget_location()
{
if (is_windows())
return os_path(SC_LOCATION.'ext/wget/wget.exe');
else
return $location= '/usr/syno/bin/php';
}
|
I’m note sure I fully understand the hard coded path as in my system function “wget” is located in ‘/usr/syno/bin/’ in stead of ‘/usr/syno/bin/php/’. I tried both hard coded paths (to be sure), but the only result was that I couldn’t update my RSS feeds from my TV anymore.
Therefore I think we shouldn’t try to avoid function exec(), but I suggest we find the reason why function “media search” isn't called automatically.
Hope this makes sense, regards, Klaas
-----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
Pinnacle SC200
|