![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Invalid Argument and glassfish | Andrew2008 | SUN Solaris | 1 | 04-30-2008 12:25 PM |
| option followed by : taking next option if argument missing with getopts | gurukottur | Shell Programming and Scripting | 2 | 03-17-2008 09:46 AM |
| msgrcv : Invalid argument | answers | UNIX for Dummies Questions & Answers | 1 | 02-08-2008 07:31 AM |
| non-numeric argument | TiredOrangeCat | UNIX for Dummies Questions & Answers | 3 | 02-12-2007 11:37 PM |
| stty: : Invalid argument | tony3101 | Shell Programming and Scripting | 2 | 03-16-2006 03:33 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
ps: 65535 is an invalid non-numeric argument for -p option
I want to figure out what is the reason of error message I have in Solaris 10. Why Solaris 10 dosn't recognize 65535?
ps: 65535 is an invalid non-numeric argument for -p option usage: ps [ -aAdeflcjLPyZ ] [ -o format ] [ -t termlist ] [ -u userlist ] [ -U userlist ] [ -G grouplist ] [ -p proclist ] [ -g pgrplist ] [ -s sidlist ] [ -z zonelist ] 'format' is one or more of: Thank you |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
It recognizes 30000 but fails with 30001 with that clueless error message about 30001 being "non-numeric". Traditionally Unix limited pid's to 30000 so in the old days this would be a reasonable limit (but they need to work on that error message). But on Solaris 10 limits.h says the largest PID is 999999. I believe that Sun has indeed cranked up the max pid and thus there is, at this point, a bug in ps.
|
|
#3
|
||||
|
||||
|
hmm, i've tried it on my workstation, it's not a bug in ps, it just don't work with the default settings from solaris (30.000 like perderabo said) as a limit and it doesn't work with pids creater then the limit which is set in the kernel.
see: Code:
root@mp-wst01 # uname -a
SunOS mp-wst01 5.10 Generic_118833-24 sun4u sparc SUNW,Sun-Blade-100
root@mp-wst01 # grep pidmax /etc/system
set pidmax=98302
root@mp-wst01 #
root@mp-wst01 # adb -P ">> " -k /dev/ksyms /dev/mem
physmem 1799c
>> pidmax /D
pidmax:
pidmax: 98302
>>
root@mp-wst01 # ps -p 65535
PID TTY TIME CMD
root@mp-wst01 #
root@mp-wst01 # ps -p 98302
PID TTY TIME CMD
root@mp-wst01 #
root@mp-wst01 # ps -p 98303
ps: 98303 is an invalid non-numeric argument for -p option
usage: ps [ -aAdeflcjLPyZ ] [ -o format ] [ -t termlist ]
[ -u userlist ] [ -U userlist ] [ -G grouplist ]
[ -p proclist ] [ -g pgrplist ] [ -s sidlist ] [ -z zonelist ]
'format' is one or more of:
user ruser group rgroup uid ruid gid rgid pid ppid pgid sid taskid ctid
pri opri pcpu pmem vsz rss osz nice class time etime stime zone zoneid
f s c lwp nlwp psr tty addr wchan fname comm args projid project pset
root@mp-wst01 #
here's the description from the "Solaris Tunable Parameters Reference Manual": Quote:
regards pressy |
|
#4
|
|||
|
|||
|
Smart!
The smart desision! Is the maxpid setting will be effective for curent session only in the proposed solution?
|
|
#5
|
||||
|
||||
|
Quote:
regards pressy |
|
#6
|
|||
|
|||
|
Meantime, 65535 in the scripts, is it just a hystorical way to indicate -1? Does it work in long types for pidmax 9999999 with the same sense?
|
|||
| Google The UNIX and Linux Forums |