File size: 530 Bytes
713d96a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const express = require('express')
const app = express()
const port = 7860

app.get('/', (req, res) => {
  res.send('Your Live Stream Is Online Now!')
})

app.listen(port, () => {
  console.log(`Put The web Adress In Uptimerobot!`)
})

const { exec } = require('child_process');
var yourscript = exec('sh live.sh',
        (error, stdout, stderr) => {
            console.log(stdout);
            console.log(stderr);
            if (error !== null) {
                console.log(`exec error: ${error}`);
            }
        });