I have problem with a csh script. This script simply search for a certail process id and kill that using simple kill -5 <pid>. Everything is okay untill there is valid process id trapped. But if the process id is already cleaned before the execution of the kill command, but script ends saying the pid not found.
Is there any mechanism, I can apply to force the script not to exit from the shell and keep in loop for the next one even the process id is not found ?
It can be done, but requires more details. If the PID is not found, you said "loop for the next one" which next one? Are you giving it a list of PID's to be killed or continue checking for the same PID?
Okay, those "lgdump", "fmdmn" commands are the database utilities. So don't be confused. Even if the process is cleaned from OS part still its been shown alive by "lgdump" utility which I want to trap here. But the script exits when the "kill -5" do not find any such process. I just want to restrict my script from quiting in this case.
Please see if can be of some help.
Regards...
Last edited by Scott; 03-04-2012 at 11:14 AM..
Reason: Code tags, please
Hi everyone,
I am trying to configure AIX 6.1 using syslogd to send syslog event to syslog server configured on RHEL. However, RHEL never receives the events.
I have tried to redirect the syslog event on AIX to a local file and successful. Only forwarding to remote server fails.
Firewall... (10 Replies)
Hi to everybody
i stuck on a simple thing i had a string and i want cut it , i try already few thing with the cut command but does not the way it should.
The script is in csh and running on AIX 4.3.2.0
here are few samples how the string can look like
FT71;1;1;1;;;1;31.01.2017... (9 Replies)
Hi,
on AIX 6,
are the system events historicized ? I want to know how was the performance on 18th of march. Is there any way ?
thanks and regards. (2 Replies)
Hi All,
I need your hand to resolve an issue I am facing with a join command in one of the script. Please see the 3 files attached where file1 and file2 are the two files I am passing to the join command written in the command file. Prior to calling the join I am also sorting both the files on... (6 Replies)
I have an extraordinary problem with a csh script.....(feel free to berate the use of this but I'm modifying an existing bunch of them)
Anyway, I have a master csh script which in turn calls a second csh script. This second csh script is below. Within this second script are two compiled C++... (1 Reply)
Hi,
I have a query that suppose the first or last name of the user changes and we need to change its userid for aix too. Then in that case how do we handle this scenario??I guess we can't change the user id so we should re-create the new id and associate all the data of the old id. But I donno... (1 Reply)