Have to use "ps awwx".


On Wed, 23 May 2001, Sebastian Dransfeld wrote:

>
> When I run "service sutofs reload" the running automount's are checked
> with
> root@s186b:/tmp# ps ax|grep "[0-9]:[0-9][0-9] /usr/sbin/automount "
> 16227 ?        S      0:00 /usr/sbin/automount --timeout 60 /local file /etc/aut
> 16250 ?        S      0:00 /usr/sbin/automount --timeout 60 /net file /etc/auto.
> 16503 pts/2    S      0:00 /usr/sbin/automount --timeout 60 /local file /etc/aut
> 16509 pts/2    S      0:00 /usr/sbin/automount --timeout 60 /net file /etc/auto.
> 16668 pts/1    S      0:00 /usr/sbin/automount --timeout 60 /local file /etc/aut
> 16674 pts/1    S      0:00 /usr/sbin/automount --timeout 60 /net file /etc/auto.
>
> And as you can see, the lines are chopped. This results in that the
> running commands are never matched and never killed.
>
> So why does grep chop the output? Or is it just the way it's supposed to
> be, and /etc/init.d/autofs needs mending?
>
> seb
>
>
>


Reply via email to