Hi
I was going through one of my pjct script .Please let me know the logic for the deamon is running or not as i think the condtn should be vice-versa.
**where workarea is the hostname .
idp1278 i sthe daemon name .
when the process is running ,it is showing as below command :
My doubt i s:
1>when ? is coming the process is running actually but in the script it is wriiten if [? is !0 ]then daemon not running .. .what is the actual logic to check the daemon running .
2>ps -fu workarea | grep ${p}/dev/null 2>&1
where $p is idp1278 .
when i executedthe above script nothing came and it took me to next command prompt.At this time the idp12278 daem,on was running in my env .
Also please let me know why this command is used /dev/null 2>&1
Meaning of:
redirect both stderr and stdout to '/dev/null' (/dev/null is the place to dump anything you don't want, basically this special file discards all data written to it)
You will find a lot of earlier posts on '> /dev/null 2>&1' in this forum. Please search the text 'dev null' on the search box available on top right corner of this page (google custom search to search unix.com)
My requirement is to run two scripts simultaneously.
Let say, script1.ksh is running in a loop :
example:
script1.ksh is:
for i in 1 2 3
do
script2.ksh 1 &
#psedu code which is required to write here
# if script 2.ksh is running, execute a script3.ksh (which actually check the... (2 Replies)
Hi
I am currently testing SCOM2012 on my AIX systems for monitoring. I tested it on 3 systems and immediately i got the following errors:
Alert: Network Status Monitor daemon (rpcstat) is not running
Source: AIX 7.1
Path: (left blank)
Last modified by: (left blank)
Last modified time:... (3 Replies)
Hi,
When process listing, I came across a process running as user daemon.
daemon 23576 23574 0 07:32:04 ? 0:07 oracle (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
root 27526 27444 1 07:38:43 ttyp5 0:00 grep 23574
why a process runs as user daemon, when it should be... (3 Replies)
Hello,
I need to increase the maximum number of open files for the Gnome configuration daemon, /usr/lib/gconfd-2. There is one of these for each username, no matter how many sessions they've got.
We have lots of people using DTUs to log into a Sun Ray server using the same account (bad idea,... (3 Replies)
Hi,
I have one query that is suppose if I have a script that pick up some files from source folder and put it into destination folder , and I want this script to run after every 1 hour, to make it configurable as per that I have options like crontab and nohup but when I test this script I have to... (2 Replies)
Hi,
I am trying to find files with specific name using find / -name core -print..
this command is hanging and never completes as it is searching for all the automount filesystems ..i cant eliminate using "! -fstype nfs" as this is not a nfs filesystem
pls let me know if anyone know how to... (2 Replies)
Hi,
I need to run an application (Hudson) listening to port 8080 on a remote Solaris server. I have managed to start that application and tried to access it with my browser from my local PC, but unsuccessfully.
I need to find out what is blocking the access to that port (or any other). A... (9 Replies)
Hi,
I'm a newbie in shell script.
I have a problem in running my a.out in a bash shell script named vetri . The following is the code.
#!bash/bin
./a.out abc.xyz
where ./a.out is a c++ bin file and abc.xyz is an argument. My ./a.out expects an input (cin >> temp). How can I give the... (5 Replies)