FG
💻 Software

Specify top's screen width in batch mode

Fresh5 days ago
Mar 15, 20265237 views
Confidence Score0%
0%

Problem

I am logging the output of: so I can keep track of which processes are using how much memory and CPU each minute. When top shows the full command line ( ), the command line text gets truncated at the edge of the screen. This is perfect when running and displaying in a terminal. However, I am sendin…

Error Output

top -b -n1 -c

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Specify top's screen width in batch mode

Low Risk

This seems to work: That appears to pad the lines with spaces to 512 columns, though, at least when the output is piped to another program, so you may want to filter the output like this: where that asterisk is preceded by two space characters.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment