Mothra said:
Come on, that's a bit harsh. He was trying to run some simple Perl code
- that's obviously why he thought it was suitable for a Perl newsgroup.
You've got to start somewhere.
Someone on comp.security.ssh might just as likely have knocked him back to
this group anyway, telling him it's not an SSH issue.
Or maybe he simply believed the hype about Perl coders all being
friendly & helpful? ;-)
Sorry, it wasn't meant to come across as harsh. It was just extremely
obviously not a perl problem (checking it from a command line, if you're
not sure, takes all of 20 secs). The other two questions were intended to
make sure that he definitely was in a position to at least *try* and do
what he wanted.
However, saying that it's okay to post here, just because there's some perl
code included, is possibly a little too ... "relaxed". That would make it
okay to ask why:
perl -e ' system("ps uax | sort -k2") '
doesn't sort the output by %CPU. Okay, it's a perl script, but what does the
problem have to do with perl?
Regards,
Garry
(the answer, btw, is that sort numbers the columns from 1, not 0, so you'd
want "sort -k3" [on my Linux box, anyway])