Am approaching below pattern.
$G_Source_Path = '//Server/Input';
$G_Archive_Path = '//Server/Archive';
$G_FILE_NAME = 'xyz.txt';
exec ('sh', '-c "mv [$G_Source_Path]/[$G_FILE_NAME] [$G_Archive_Path]"',8);
When i ran the above script it is returning no such file or directory. But the file exist in that remote server folder.
Thanks,
Srinath.