07-10-2012
Still same error message
Please assist..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is there any build in command in unix to kill all the child process for a given process ID ? If any one has script or command, please let me know.
Thanks
Sanjay (4 Replies)
Discussion started by: sanjay92
4 Replies
2. Shell Programming and Scripting
Hi there, i wonder if anyone can help
is there any way that i can write a script that will kill all current ftp processes, for example if ps -ef | grep ftp produces 3 active proceses, then I would like to somehow extract the PID for each one and pass that to kill -9
has anybody done this... (2 Replies)
Discussion started by: hcclnoodles
2 Replies
3. Shell Programming and Scripting
Hi All,
In my project i have two process runs in the back end.
Once i start my project, and execute the command ps, i get below output:
PID TTY TIME CMD
9086 pts/1 0:00 ksh
9241 pts/1 0:02 java
9240 pts/1 0:00 shell_script_bg
java with 9241 PID is the main... (4 Replies)
Discussion started by: rkrgarlapati
4 Replies
4. Shell Programming and Scripting
Hello all
i have simple script that executing program every 10 seconds
im invoke this script as daemon with second script that put it in the background
this is my first script (IsAliveTester.csh)
#!/bin/csh -f
@ iSleep = 10
set processName = "ClientTester"
while(1)
$processName
... (0 Replies)
Discussion started by: umen
0 Replies
5. Shell Programming and Scripting
#!/bin/sh
who
echo "\r"
echo Enter the terminal ID of the user in use:
echo "\r"
read TERM_ID
echo "\r"
ps -t $TERM_ID | grep sh
echo "\r"
echo Enter the process number to end:
echo "\r"
read PID
echo "\r"
kill -9 $PID
What this code does is ultimately grab the PID of a users sh... (6 Replies)
Discussion started by: psytropic
6 Replies
6. Shell Programming and Scripting
I would want to run a code for 1 min and if it doesnt succeed in 1 min..I would want to exit it..I am using the following code...But the script is not going into my code part.It is waiting for 60 secs and then getting killed.
The code which is in the while loop actually takes less than 60 secs...... (6 Replies)
Discussion started by: infernalhell
6 Replies
7. Shell Programming and Scripting
Hi,
I am new to shell scripting and want to create a script with the follwoing description:
I want to restrict the users from giving a kill command on a unix server. The server have a restricted logins with login id and passwords. I want a script that will find out if a user has given a... (9 Replies)
Discussion started by: shell_scripting
9 Replies
8. Shell Programming and Scripting
Hi,
I wrote a script to kill a process id.
I am able to kill the PID only if I enter the root password in the middle of the execution because I did not run as root i.e after i run the script from the terminal, instead of killing directly, it is killing only after entering the pass when it... (12 Replies)
Discussion started by: rajkumarme_1
12 Replies
9. Shell Programming and Scripting
Hi,
I'm trying to write a script where i'm trying to grep the PID and the associated file and list them. Then execute the KILL command sequentially on the listed PID's for ".tra" files
====================================================
ps -aux | grep mine
adm 27739 0.2 0.8 1131588... (12 Replies)
Discussion started by: murali1687
12 Replies
10. Shell Programming and Scripting
Hi All, Looking for a quick LINUX shell script which can continuously monitors the flle size, report the process which is creating a file greater than certain limit and also kill that process. Can someone please help me on this? (4 Replies)
Discussion started by: vasavimacherla
4 Replies
LEARN ABOUT SUNOS
scsi_log
scsi_log(9F) Kernel Functions for Drivers scsi_log(9F)
NAME
scsi_log - display a SCSI-device-related message
SYNOPSIS
#include <sys/scsi/scsi.h>
#include <sys/cmn_err.h>
void scsi_log(dev_info_t *dip, char *drv_name, uint_t level, const char *fmt, ...);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
PARAMETERS
dip Pointer to the dev_info structure.
drv_name String naming the device.
level Error level.
fmt Display format.
DESCRIPTION
scsi_log() is a utility function that displays a message via the cmn_err(9F) routine. The error levels that can be passed in to this func-
tion are CE_PANIC, CE_WARN, CE_NOTE, CE_CONT, and SCSI_DEBUG. The last level is used to assist in displaying debug messages to the console
only. drv_name is the short name by which this device is known; example disk driver names are sd and cmdk. If the dev_info_t pointer is
NULL, then the drv_name will be used with no unit or long name.
If the first character in format is:
o An exclamation mark (!), the message goes only to the system buffer.
o A caret (^), the message goes only to the console.
o A question mark (?) and level is CE_CONT, the message is always sent to the system buffer, but is written to the console only when the
system has been booted in verbose mode. See kernel(1M). If neither condition is met, the ? character has no effect and is simply
ignored.
All formatting conversions in use by cmn_err() also work with scsi_log().
CONTEXT
scsi_log() may be called from user or interrupt context.
SEE ALSO
kernel(1M), sd(7D), cmn_err(9F), scsi_errmsg(9F)
Writing Device Drivers
SunOS 5.10 18 Nov 2004 scsi_log(9F)