1const { execSync } = require('child_process');
2
3const output = execSync('ls', { encoding: 'utf-8' });
4
5console.log('The output is:');
6console.log(output);
1const { exec } = require("child_process");
2
3exec("ls -la", (error, stdout, stderr) => {
4 if (error) {
5 console.log(`error: ${error.message}`);
6 return;
7 }
8 if (stderr) {
9 console.log(`stderr: ${stderr}`);
10 return;
11 }
12 console.log(`stdout: ${stdout}`);
13});
14
1<form action="">
2 <select name="channel">
3 <option value="#channel1">channel1</option>
4 <option value="#channel2">channel2</option>
5 </select>
6 </form>