using system() cmds on different servers.
Posted: Mon Jul 19, 2010 12:16 pm
I want to know if it is possible to use system() to run shell commands on another server on the network. IE i want to execute DIR on \\serverA\files and also on \\serverB\files. So far when i try
$last_line = system('dir \\serverA\files', $retval);
it does not return any results.
Is there a workaround for this? If I can't get this to to work I may try Perl.
ANY help much appreciated, thank you!
*** if you are interested in why I am doing this read below.
I post links of ISO files located on various servers on my company network and these links are posted online for my co-workers to use. However, these links only work in IE and not FF or Chrome. My workaround for this will be to move the files to a temporary folder on the hosting server when the link is clicked, and the file can then be downloaded from there.
$last_line = system('dir \\serverA\files', $retval);
it does not return any results.
Is there a workaround for this? If I can't get this to to work I may try Perl.
ANY help much appreciated, thank you!
*** if you are interested in why I am doing this read below.
I post links of ISO files located on various servers on my company network and these links are posted online for my co-workers to use. However, these links only work in IE and not FF or Chrome. My workaround for this will be to move the files to a temporary folder on the hosting server when the link is clicked, and the file can then be downloaded from there.