...
-w Use 132 columns to display information, instead of the default
which is your window size. If the -w option is specified more
than once, ps will use as many columns as necessary without
regard for your window size.
...
####
open(PS_F, "ps -auwwx | grep inder |") || die "Can't open console\n";
while () {
(undef,undef,undef,undef,undef,undef,undef,undef,undef,undef,$comm,$comm1,$comm2) = split;
$comm .= ' '.$comm1.' '.$comm2;
if($comm =~ m/Theservice.pl /i) {
print "Service Already Running\n";
}
print $comm, "\n";
}
close(PS_F);
####
$ perl ps.pl
/System/Library/CoreServices/Finder.app/Contents/MacOS/Finder -psn_0_917505
sh -c ps
grep inder
####
$/ = q#(\w)# ; sub sig { print scalar reverse join ' ', @_ } sig
map { s$\$/\$/$\$2\$1$g && $_ } split( ' ', ",erckha rlPe erthnoa stJu" );