Sponsored Content
Top Forums Shell Programming and Scripting Help with script to stop a user giving kill command on a server!! Post 302384389 by shell_scripting on Tuesday 5th of January 2010 05:46:45 AM
Old 01-05-2010
Hey
As i am new to acripting. Could you please help me in explaining this in detail..........
Thanks in advance

Last edited by shell_scripting; 01-05-2010 at 09:21 AM..
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How do I stop or kill Netscape FastTrack Server?

After installing Apache and configuring the httpd.conf file to listen to port 80, I have come to find that there is another server on the Sco box I'm working on. Would someone please tell me how to stop or kill this server. The server is Netscape FastTrack Server. Also, how might I remove all... (2 Replies)
Discussion started by: cstovall
2 Replies

2. Shell Programming and Scripting

Stop / kill the process individually

Hi , I have a situation, where I have 10 indivudal processess started by similar instance.I say similar instance because each of them being started as a new thread: Say I've following unix process running process1_ADAP process2_ADAP process3_ADAP Current scenario: Now I have SHUTDOWN... (5 Replies)
Discussion started by: braindrain
5 Replies

3. AIX

Script allows user to kill other users: I'd like to know HOW...

Hello list, Have a problem that's highlighting gaps in my knowledge; can you assist? We have a script that's tacked onto our trading application which allows branch managers etc. to kill off the sessions of other users at their branch. A menu option in the application spawns a shell running... (8 Replies)
Discussion started by: alexop
8 Replies

4. Shell Programming and Scripting

mv command is giving error in shell script

Hi, In my shell script when I am using mv command using shell variables it is giving me error of syntax. Following is the shell script: file_edifice="*.txt" fquote="'" fdquote=\" for file in $file_edifice do file_name=$fquote$file$fquote tofile_name=`date... (5 Replies)
Discussion started by: gammit
5 Replies

5. UNIX for Dummies Questions & Answers

crontab or looping script to Kill process from user

I am looking for a way to kill 2 processes from a user through some kind of script. Using an oracle script, I get two process ids that need to be killed. SQL> select ssn.process as client_process_id, pcs.spid as oracle_process_id, ssn.sid, ssn.serial# 2 from v$session ssn inner join... (5 Replies)
Discussion started by: Meert
5 Replies

6. Shell Programming and Scripting

How to stop a script running in remote server from local script

Hi, I have googled for quite some time and couldn't able to get what exactly I am looking for.. My query is "how to stop a shell script which is running inside a remote server, using a script"??? can any one give some suggestions to sort this out. (1 Reply)
Discussion started by: mannepalli
1 Replies

7. Shell Programming and Scripting

Creating oracle user and giving him grants using shell script

Hi , I want to write a shell script that can create oracle database user and grants permission to this user. Thanks & Regards, Deepak (4 Replies)
Discussion started by: Deepakjha
4 Replies

8. Shell Programming and Scripting

script to kill a pid giving error

Hi, I simply want to kill a running process using a script that read pid from a file and tries to kill it .Getting error as shown below code.. cat $HOME/BackupScript.ksh.run | head -1 | while read pid do ps -p $pid > /dev/null 2>&1 if ; then kill -9 $pid else echo "no running $pid... (5 Replies)
Discussion started by: dhirajdsharma
5 Replies

9. Shell Programming and Scripting

Shell script to stop and start server

Hi, I need to create a shell script for automated server patching, with the following scenario: I have two Linux servers Primary and secondary. Server patching should start on Primary 1st and then secondary. 1st check both servers are up and running. Then stop primary and patching will... (1 Reply)
Discussion started by: rcroyal88
1 Replies
explain_putchar(3)					     Library Functions Manual						explain_putchar(3)

NAME
explain_putchar - explain putchar(3) errors SYNOPSIS
#include <libexplain/putchar.h> const char *explain_putchar(int c); const char *explain_errno_putchar(int errnum, int c); void explain_message_putchar(char *message, int message_size, int c); void explain_message_errno_putchar(char *message, int message_size, int errnum, int c); DESCRIPTION
These functions may be used to obtain explanations for errors returned by the putchar(3) system call. explain_putchar const char *explain_putchar(int c); The explain_putchar function is used to obtain an explanation of an error returned by the putchar(3) system call. The least the message will contain is the value of strerror(errno), but usually it will do much better, and indicate the underlying cause in more detail. The errno global variable will be used to obtain the error value to be decoded. This function is intended to be used in a fashion similar to the following example: if (putchar(c) == EOF) { fprintf(stderr, "%s ", explain_putchar(c)); exit(EXIT_FAILURE); } c The original c, exactly as passed to the putchar(3) system call. Returns: The message explaining the error. This message buffer is shared by all libexplain functions which do not supply a buffer in their argument list. This will be overwritten by the next call to any libexplain function which shares this buffer, including other threads. Note: This function is not thread safe, because it shares a return buffer across all threads, and many other functions in this library. explain_errno_putchar const char *explain_errno_putchar(int errnum, int c); The explain_errno_putchar function is used to obtain an explanation of an error returned by the putchar(3) system call. The least the mes- sage will contain is the value of strerror(errnum), but usually it will do much better, and indicate the underlying cause in more detail. This function is intended to be used in a fashion similar to the following example: if (putchar(c) == EOF) { int err = errno; fprintf(stderr, "%s ", explain_errno_putchar(err, c)); exit(EXIT_FAILURE); } errnum The error value to be decoded, usually obtained from the errno global variable just before this function is called. This is neces- sary if you need to call any code between the system call to be explained and this function, because many libc functions will alter the value of errno. c The original c, exactly as passed to the putchar(3) system call. Returns: The message explaining the error. This message buffer is shared by all libexplain functions which do not supply a buffer in their argument list. This will be overwritten by the next call to any libexplain function which shares this buffer, including other threads. Note: This function is not thread safe, because it shares a return buffer across all threads, and many other functions in this library. explain_message_putchar void explain_message_putchar(char *message, int message_size, int c); The explain_message_putchar function may be used to obtain an explanation of an error returned by the putchar(3) system call. The least the message will contain is the value of strerror(errno), but usually it will do much better, and indicate the underlying cause in more detail. The errno global variable will be used to obtain the error value to be decoded. This function is intended to be used in a fashion similar to the following example: if (putchar(c) == EOF) { char message[3000]; explain_message_putchar(message, sizeof(message), c); fprintf(stderr, "%s ", message); exit(EXIT_FAILURE); } message The location in which to store the returned message. If a suitable message return buffer is supplied, this function is thread safe. message_size The size in bytes of the location in which to store the returned message. c The original c, exactly as passed to the putchar(3) system call. explain_message_errno_putchar void explain_message_errno_putchar(char *message, int message_size, int errnum, int c); The explain_message_errno_putchar function may be used to obtain an explanation of an error returned by the putchar(3) system call. The least the message will contain is the value of strerror(errnum), but usually it will do much better, and indicate the underlying cause in more detail. This function is intended to be used in a fashion similar to the following example: if (putchar(c) == EOF) { int err = errno; char message[3000]; explain_message_errno_putchar(message, sizeof(message), err, c); fprintf(stderr, "%s ", message); exit(EXIT_FAILURE); } message The location in which to store the returned message. If a suitable message return buffer is supplied, this function is thread safe. message_size The size in bytes of the location in which to store the returned message. errnum The error value to be decoded, usually obtained from the errno global variable just before this function is called. This is neces- sary if you need to call any code between the system call to be explained and this function, because many libc functions will alter the value of errno. c The original c, exactly as passed to the putchar(3) system call. SEE ALSO
putchar(3) output of characters explain_putchar_or_die(3) output of characters and report errors COPYRIGHT
libexplain version 0.52 Copyright (C) 2008 Peter Miller explain_putchar(3)
All times are GMT -4. The time now is 06:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy