Ich kenne mich ein bischen mit PHP und Shellscripting aus...
So nun habe ich ein Shellscript, das z.b. einen ordner anlegt auf einem entfernten linux rechner,
ich will jetzt von einem anderen rechner wo php drauf läuft dieses shellscript auf den anderen rechner ausführen. So wie mache ich sowas mit php oder brauche ich noch was dazu...
Achso will natürlich nicht nur ordner damit erstellen sondern z.b. den rechner neustarten etc
hoffe einer kann mir helfen. :roll:
Shellskript mit PHP ausführen
-
greenrover
- Posts: 203
- Joined: 2004-12-17 19:34
- Contact:
Re: Shellskript mit PHP ausführen
guck dir mal die php funktin system an.
damit geht es relativ einfach.
damit geht es relativ einfach.
Re: Shellskript mit PHP ausführen
system() hilft hier nicht. Wandle das Shellscript in ein CGI-Script und rufe es entsprechend auf.
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Re: Shellskript mit PHP ausführen
ne cgi brauch man nicht...
z.b. ein gameserver webinterface da gibt es viele die mit php geschrieben sind und die php scripte führen die scripte auf den gameserver aus neustart etc :)
z.b. ein gameserver webinterface da gibt es viele die mit php geschrieben sind und die php scripte führen die scripte auf den gameserver aus neustart etc :)
Re: Shellskript mit PHP ausführen
Es geht nicht um einen lokales Script, sondern um ein remote gehostetes Script...
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
