cli output as html or encode it to viewable page?

Discussion in 'PHP' started by thesurface, Feb 6, 2014.

  1. #1
    Hello recently i installed on ubuntu slurm that show bw.

    i did:
    slurm > output.html

    but output is saved as cli output, is there a way encode it to viewable one ? i mean encode by php/or whatever to show colors new line etc in browser... is that possible ?

    (U[?1049h[1;44r(B[m[4l[?7h[39;49m[?25l[39;49m(B[m[H[2J[1;81H[37m[1K[2d[1K[3d[1K[4d[1K[5d[1K[6d[1K[7d[1K[8d[1K[9d[1K[10d[1K[11d[1K[12d[1K[13d[1K[14d[1K[15d[1K[16d[1K[17d[1K[18d[1K[19d[1K[20d[1K[21d[1K[22d[1K[23d[1K[24d[1K[25d[1K [39m(B[m[1;27H(B[0;1m[37m-= slurm 0.4.0 on vps9361 =-[16;7H(B[0m[37mActive Interface: (B[0;1m[37mvenet0[
    Code (markup):
     
    thesurface, Feb 6, 2014 IP