[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [NOVICE] frihed til sikerhed



Den 23-10-2010 10:16, hans henrik buur skrev:
Jørgen Heesche skrev:
 ....

#Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
#hans 6571 0.0 0.0 3620 768 pts/1 S+ 16:45 0:00 grep portmap mvh hhb

Jeg ved ikke hvad bogus betyder.
På linket http://procps.sf.net/faq.html
ses flg.

Why does "ps -aux" complain about a bogus '-'?

According to the POSIX and UNIX standards, the above command asks to display all
processes with a TTY (generally the commands users are running) plus all processes owned
by a user named "x". If that user doesn't exist, then ps will assume you really meant
"ps aux". The warning is given to gently break you of a habit that will cause you
trouble if a user named "x" were created.

Ok jeg tror ikke at jeg helt forstår hvad det betyder men jeg forstår at det ikke er et
problem.
Tak for hjälpen . Mvh hhb


:::

Egentlig mente du  nok kommandoen "ps aux" og ikke "ps -aux" og derfor kommer
ps med den advarsel.

:::

som jeg læser "man ps"  (prøv selv at se bladre lidt i manualen):

"      This version of ps accepts several kinds of options:
       1   UNIX options, which may be grouped and must be preceded by a dash.
       2   BSD options, which may be grouped and must not be used with a dash.
       3   GNU long options, which are preceded by two dashes.
"
dvs. der er 3 forskellige typer options , så det er ikke ligegyldigt
om man skriver "-aux" eller "aux".


Så ps -auUSER , f.eks.  ps -aufrank

med "-u" betyder bla. list processer tilhørende "frank" .
og "-a" list alle processer med nogle undtagelser.

Så egentlig betyder ps -aux   : list processer tilhørende brugeren "x" og alle processer
(lidt dobbelt...).

Men hvis der egentlig mentes  BSD-style aux uden "-" så betyder
 ps aux :
   a :    Lift the BSD-style "only yourself" restriction, ......
   u :    display user-oriented format
   x :    Lift the BSD-style "must have a tty" restriction, .....





 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2010-11-01, 02:02 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *