Skip to content

Commit

Permalink
Add comment about netstat command
Browse files Browse the repository at this point in the history
  • Loading branch information
busma13 committed Dec 6, 2024
1 parent 975ee04 commit ddb8b98
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/scripts/src/helpers/scripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -770,12 +770,11 @@ async function showAssets(tsPort: string) {

export async function logTCPPorts() {
try {
// These netstat flags were chosen because they work in
// both the mac and linux versions of the command
const netstat = await execa('netstat', ['-an', '-t', 'tcp'], { shell: true, reject: false });
signale.info('TCP Ports:\n', netstat.stdout);
} catch (err) {
signale.error('Netstat command failed trying to log ports: ', err);
signale.error('stderr: ', err.stderr);
signale.error('stdout: ', err.stdout);
signale.error('message: ', err.message);
}
}

0 comments on commit ddb8b98

Please sign in to comment.