× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

PuTTY terminal width: ps output

aks-2
Apprentice

PuTTY terminal width: ps output

In a PuTTY terminal window, I am struggling to get ps to display the full command line for long commands, despite trying to override the output width. Ideally, I'd like to get ps to wrap. I tried:

ps axf --cols 300

The lines just get truncated at terminal width.

 

If I redirect to a file, no chopping of lines.

 

However, more <file> shows full lines wrapped, but, cat chops the ends off.

 

Any suggestions?

Model: RN21400|ReadyNAS 214 Series 4- Bay (Diskless)
Message 1 of 4
aks-2
Apprentice

Re: PuTTY terminal width: ps output

Note, I also tried to get ps to ignore termnal width by adding w w :

ps axfww

Lines still chopped at terminal width.

Message 2 of 4
StephenB
Guru

Re: PuTTY terminal width: ps output


@aks-2 wrote:

Note, I also tried to get ps to ignore termnal width by adding w w :

ps axfww

Lines still chopped at terminal width.


Odd, as I'm not seeing that.  ps efx truncates, but ps efxww wraps.

 

Have you tried piping it through something else (for instance grep).

 

Message 3 of 4
aks-2
Apprentice

Re: PuTTY terminal width: ps output

I literally have no idea what's happened, I just retried all the combinations from yesterday, all wrap fine Smiley Surprised!

I did not reboot the ReadyNAS, but I have rebooted the PC (Win10). I was very confused as this obviously worked in the past, and I just started to wonder whether it was 'broken' by the recent patch/update.

I am running 6.10.5 Hotfix 1.

Message 4 of 4
Top Contributors
Discussion stats
  • 3 replies
  • 906 views
  • 0 kudos
  • 2 in conversation
Announcements