1. #1

    Registered
    17/08/04
    Location
    Bonheiden
    Posts
    348
    iTrader
    6 (100%)
    Mentioned
    0 Post(s)

    output bash script tonen in PHP

    Hallo,

    Ik heb op een server een bash script dat telnet sessies doet. dmv PHP zou ik dit bash script willen executen en live de status willen tonen op de php webpagina. Iemand een idee hoe je dit best doet?
    een aparte php pagina openen die constant refresht is misschien een optie, maar dit is niet 'proper', niet?

    Of misschien heeft er iemand een ander idee?

    M.
    no votes  

  2. #2
    De Wouter's Avatar
    Registered
    11/05/13
    Location
    Prov. Antwerpen
    Posts
    595
    iTrader
    0
    Mentioned
    0 Post(s)
    Reputation
    0/0
    Even gegoogled:

    PHP: shell_exec - Manual

    Refresh zou je kunnen doen met AJAX calls die je om de x-aantal tijd uitvoert.
    no votes  

  3. #3

    Registered
    17/08/04
    Location
    Bonheiden
    Posts
    348
    iTrader
    6 (100%)
    Mentioned
    0 Post(s)
    Thanks!
    no votes  

  4. #4
    Cycloon's Avatar
    Registered
    18/01/04
    Location
    Melle
    Posts
    10,535
    iTrader
    56 (100%)
    Mentioned
    0 Post(s)
    Reputation
    27/102
    Je kan ook websockets gebruiken, dan kan je pushen ipv pollen.
    “In terms of how we evaluate schooling, everything is about working by yourself. If you work with someone else, it’s called cheating. Once you get out in the real world, everything you do involves working with other people.”
    PSN: Cycloon - Final Fantasy XIV: A realm reborn character
    no votes  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in