How to make a system call remotely?
问题 I have an app that has to mount a disk on a server. The disk and the server all connected, it just has to use the linux 'mount' command. I wrote a php that is simply: <? exec("/var/www/MountTheDisk.sh"); ?> And I added bash script: MountTheDisk.sh #!/bin/bash diskutil mount /dev/xvdb1 /mnt/theDisk/ echo trying to mount Now, if I run that php, I get no result. Nothing is echo'd and no disk is mounted. How can I run this command remotely? Maybe php is not the best method? 回答1: This solution