Reputation: 5685
I need to call a PHP script on machine1 from a .sh
script on machine2. How can I do this?
Basically I need to pass a parameter to the respective PHP script and make it run using it.
Thanks!
Upvotes: 0
Views: 256
Reputation: 3171
You can use ssh:
ssh user@otherhost /path/to/php-script
if you want to do this in a script, you have to enable public key authentiction.
Upvotes: 2