Not anywhere near a terminal so this is not at all tested. Also, cant remember off hand which field the PID is so you need to adjust the awk statement accordingly. Run the shell by passing in the user id of the user.
hi all...
I investigate if exists some script so that when unix run an application (in this case backup's), so after of that does run killall command to all users connected, or if it is possible to be put in crontab...
I wait for and they help me so I do not have much knowledge in programming....... (2 Replies)
Hi guys
I have a shell script that executes sql statemets and sends the output to a file.the script takes in parameters executes sql and sends the result to an output file.
#!/bin/sh
echo " $2 $3 $4 $5 $6 $7
isql -w400 -U$2 -S$5 -P$3 << xxx
use $4
go
print"**Changes to the table... (0 Replies)
Hi all,
I've been pulling my hair out with this problem for 3 days:wall: now without success any help would be massively appreciated.
Basically the script is used to shutdown a rails server so a new IP address can be assigned, the shutdown part is taken care of in function_one using the... (2 Replies)
I am using blow script :--
#!/bin/bash
FIND=$(ps -elf | grep "snmp_trap.sh" | grep -v grep) #check snmp_trap.sh is running or not
if
then
# echo "process found"
exit 0;
else
echo "process not found"
exec /home/Ketan_r /snmp_trap.sh 2>&1 & disown -h ... (1 Reply)
I am trying to call a script(callingscript.sh) from a master script(masterscript.sh) to get string type value from calling script to master script. I have used scripts mentioned below.
#masterscript.sh
./callingscript.sh
echo $fileExist
#callingscript.sh
echo "The script is called"... (2 Replies)
:wall:killall -wHi
i need to understand how the -w option works in terms of processes.
If this command is issued does it literally terminate all running processes ..wait for them all to be terminated and then return to standard output ?
Thanks in advance (2 Replies)
Hello all,
I am facing a weird issue while executing a code below -
#!/bin/bash
cd /wload/baot/home/baotasa0/sandboxes_finance/ext_ukba_bde/pset
sh UKBA_publish.sh UKBA 28082015 3
if
then
echo "Param file conversion for all the areas are completed, please check in your home directory"... (2 Replies)
I'm new to utilities like socat and netcat and I'm not clear if they will do what I need.
I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes.
I'm using Cygwin bash on Windows 10.
My... (3 Replies)
Discussion started by: siegfried
3 Replies
LEARN ABOUT DEBIAN
proc::killall
Killall(3pm) User Contributed Perl Documentation Killall(3pm)NAME
killall - Kill all instances of a process by pattern matching the command-line
SYNOPSIS
use Proc::Killall;
killall('HUP', 'xterm'); # SIGHUP all xterms
killall('KILL', '^netscape$'); # SIGKILL to "netscape"
DESCRIPTION
This module provides one function, "killall()", which takes two parameters: a signal name or number (see "kill()") and a process pattern.
This pattern is matched against the process' command-line as the "ps" command would show it ("ps" is not used internally, instead a package
called "Proc::ProcessTable" is used).
"killall" searches the process table and sends that signal to all processes which match the pattern. The return value is the number of
processes that were successfully signaled. If any kills failed, the $! variable will be set based on that last one that failed (even if a
successful kill happened afterward).
AUTHOR
Written in 2000 by Aaron Sherman <ajs@ajs.com>
"Proc::Killall" is copyright 2000 by Aaron Sherman, and may be distributed under the same terms as Perl itself.
PREREQUISITES
"Proc::ProcessTable" is required for "Proc::Killall" to function.
SEE ALSO
perl, perlfunc, perlvar, Proc::ProcessTable
perl v5.14.2 2013-02-10 Killall(3pm)