Run your script manually, and when it returns to command prompt, type "exit", or press Control-D and see what happens.
When you run su like you are, it will fork a new shell (and wait for input). When you exit this shell it'll continue with the rest of the script (as root).
(you mention a user called net1, but your script shows a user called netmon)
You should also probably run this with "su -" not just "su".
The "process started successfully" line is meaningless for a number of reasons. Mainly because a) you never test the result after starting the CMIS_STACK program, and b) when you run it in the background a new process is forked and it's unlikely anything wrong will happen before you could test it.
Hello all,
How do I start a background process and save the process id to a file on my system. For example %wait 5 & will execute and print the process id. I can't figure out how to get it to a file. I've tried: > filename 0>filename 1>filename.
Any assistance is most appreciated.
Thanks,
Jim... (10 Replies)
Hello everybody!
I got a question on process starting.
I installed e.g. squid on my Mac and all is working well,
but i wanted to figure out what process or script is starting
squid on booting the machine. I searched for a while but i could not find where i can change these configuration.
... (2 Replies)
Hi,
I am getting problem in starting up Sendmail on solaris. When I do /etc/init.d/sendmail start
in Process list it shows sendmail process properly. But when I do portcheck by netstat it doesn't show Port 25/smtp.
What could be the problem ?
Thanks
NeeleshG (6 Replies)
hey all,
i am working on sun solaris machine and i want to start a process in background using shell script (actually i wanna start tomcat server using shell script). please dont tell me that append a & at last because this is not working in the shell script. i have also used nohup and... (8 Replies)
Hello.
I have problem in Solaris 8.
I can logon cde with root there is no problem.
When I logon with normal user I am recieving black screen after 10 15 second login screen (cde pasword screen) coming again.
1 years ago we resolved same problem. We found a file It must be run with admin... (1 Reply)
Hey all, I need to launch a script from within 2 other scripts that can run independently of the two parent scripts... Im having a hard time doing this, if anyone knows how please let me know.
More detail.
ScriptA (bash), ScriptB (ksh), ScriptC (bash)
ScriptA, launches ScriptB
ScirptB,... (7 Replies)
Hello,
I installed x11vnc on a solaris 9 server.
#SunOS gandalf 5.9 Generic sun4u sparc SUNW,Ultra-60
When i run x11vnc i get following errors
bash-2.05# /usr/local/bin/x11vnc -display :0
17/06/2010 23:34:08 x11vnc version: 0.9.9 lastmod: 2009-12-21 pid: 16203
17/06/2010 23:34:15... (0 Replies)
Hi
We are in the situation where we want to start WebSphere using teh default SSL port of 443. In order to do this we can changed the WAS ssl port from 9443 to 443 and start as root. We would prefer not to start as root but the restriction of using ports < 1024 comes into play. We could install... (3 Replies)
the task is grant user1 to kill another (for example user2) process. My steps:
by root:
usermod -P "Process Management" user1
login user1
user1@server (~) pfexec kill <PID>
the result is:
ksh: <PID>: not found
or user1@server (~) pfexec pkill <PID>
the result: nothing happens, still... (0 Replies)
Discussion started by: dsyberia
0 Replies
LEARN ABOUT DEBIAN
renice
RENICE(1) User Commands RENICE(1)NAME
renice -- alter priority of running processes
SYNOPSIS
renice [-n] priority [[-p] pid ...] [[-g] pgrp ...] [[-u] user ...]
renice -h | -v
DESCRIPTION
Renice alters the scheduling priority of one or more running processes. The following who parameters are interpreted as process ID's,
process group ID's, or user names. Renice'ing a process group causes all processes in the process group to have their scheduling priority
altered. Renice'ing a user causes all processes owned by the user to have their scheduling priority altered. By default, the processes to
be affected are specified by their process ID's.
Options supported by renice:
-n, --priority
The scheduling priority of the process, process group, or user.
-g, --pgrp
Force who parameters to be interpreted as process group ID's.
-u, --user
Force the who parameters to be interpreted as user names.
-p, --pid
Resets the who interpretation to be (the default) process ID's.
-v, --version
Print version.
-h, --help
Print help.
For example,
renice +1 987 -u daemon root -p 32
would change the priority of process ID's 987 and 32, and all processes owned by users daemon and root.
Users other than the super-user may only alter the priority of processes they own, and can only monotonically increase their ``nice value''
(for security reasons) within the range 0 to PRIO_MAX (20), unless a nice resource limit is set (Linux 2.6.12 and higher). The super-user
may alter the priority of any process and set the priority to any value in the range PRIO_MIN (-20) to PRIO_MAX. Useful priorities are: 20
(the affected processes will run only when nothing else in the system wants to), 0 (the ``base'' scheduling priority), anything negative (to
make things go very fast).
FILES
/etc/passwd to map user names to user ID's
SEE ALSO getpriority(2), setpriority(2)BUGS
Non super-users can not increase scheduling priorities of their own processes, even if they were the ones that decreased the priorities in
the first place.
The Linux kernel (at least version 2.0.0) and linux libc (at least version 5.2.18) does not agree entirely on what the specifics of the sys-
temcall interface to set nice values is. Thus causes renice to report bogus previous nice values.
HISTORY
The renice command appeared in 4.0BSD.
AVAILABILITY
The renice command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
util-linux November 2010 util-linux