Ar an 4u la de mi 6, scriobh Brian Foster :
> #!/bin/bash #/bin/bash
> export COLUMNS=1000 exec ps.real -w "$@"
> exec ps.real "$@"
As I understand it, the left-hand one of those won't work, because GNU
ps _ignores_ terminal settings (of which COLUMNS) is part when writing
to a pipe. Of course, my local GNU ps doesn't do any of this at all;
$ ps --version
procps version 2.0.6
$ ps -ef | grep Maildir
root 228 1 0 May30 ? 00:00:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr/lib/courier-imap/logger -maxprocs=40 -maxperip=4 -pid=/var/run/imapd.pid -forcebind -nodnslookup -noidentlookup 143 /usr/sbin/imaplogin /usr/lib/courier-imap/authlib/authcram /usr/lib/courier-imap/authlib/authuserdb /usr/lib/courier-imap/authlib/authpam /usr/lib/courier-imap/authlib/authldap /usr/bin/imapd Maildir
hcksplat 4760 4729 0 14:24 pts/0 00:00:00 grep Maildir
I'm not a pheasant plucker / I'm a pheasant plucker's son.
I'm just a'plucking pheasants / 'Til the pheasant plucker comes.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!