12-24-2013
Thanks for your reply.
Just wanted to confirm: I am working in Ksh. So will that command work?
alarm 15 will wait for 15 sec ?
Also what is pkill command is used for? does it act like ctrl+c ?
Sorry but i am new to shell scripting so please help
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear Sir,
Now I use oracle database on AIX server and found some user use iligal program such as development tool logon to my database.
I want to detect the process of illegal program and kill it.
Could you please suggest me to make detect process.
Thank you very much
Pkanonwe. (2 Replies)
Discussion started by: pkanonwe
2 Replies
2. HP-UX
Hi
I have a doubt regarding process states in HP unix system. Is there a way to check whether a process is hanged or still actively running? I have few scripts which run for a long time. but sometimes these are getting hanged. But i'm never sure whether they are running or waiting in kind of... (4 Replies)
Discussion started by: truth
4 Replies
3. Shell Programming and Scripting
Hi Everyone,
I have written a script to automate the docbase cleanup process on every weekly basis. That is in this script i have to shutdown the docbase and then kill all the process that are hanged except one process(epic process) and need to delete some log files and then i have to start the... (8 Replies)
Discussion started by: Sheethal
8 Replies
4. Shell Programming and Scripting
Hi Friends!!
I have obtained following output from a tool called pdftoxml:
<xml>
<text top="423" left="521" width="333" height="20" font="3">Although the the number of fuzzy rules of a system is </text>
<text top="441" left="500" width="355" height="20" font="3">directly dependant on these... (2 Replies)
Discussion started by: parshant_bvcoe
2 Replies
5. Solaris
Hi,
My process is visible in 'ps' command but actually it is not working or it got hanged. This process is not generating any log. Now How can I know that my process got hanged.
Please help. (2 Replies)
Discussion started by: sanjay1979
2 Replies
6. Shell Programming and Scripting
Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it
This is how we execute the script (and this is the requirement) ... (2 Replies)
Discussion started by: jonnyvic
2 Replies
7. Shell Programming and Scripting
I want to detect key pressed in my .cgi web page, but it does not work even I found the code in other web site.
My code is :
#!/bin/sh
#=================================================
# PATH defination
# ================================================... (2 Replies)
Discussion started by: Shuinvy
2 Replies
8. Shell Programming and Scripting
Hi,
I have to create a script (ksh or perl) that starts certain number of parallel jobs (another scripts), each of them runs as a foreground process in a separate session. Plus I start monitoring job that has to determine if any of those scripts is expecting input from operator, and switch to... (4 Replies)
Discussion started by: andyh80
4 Replies
9. Shell Programming and Scripting
I wish to print my current shell which happens to be bash in my script check.sh
more check.sh
echo $0
echo `ps -p $$`
But instead of printing it prints check.sh i.e the name of the script for both the commands.
Can you please suggest how to print the current shell i m on inside the... (2 Replies)
Discussion started by: mohtashims
2 Replies
10. UNIX for Beginners Questions & Answers
Hello,
I am running under ubuntu 14.04
Very long time ago, I set a script (ban.sh) to block ip addresses abusing my system which was not active.
I have not touched the server over six months or more.
Today, after restart the system, ban.sh started running all of a sudden and keep submitting... (4 Replies)
Discussion started by: baris35
4 Replies
leave(1) General Commands Manual leave(1)
NAME
leave - remind you when you have to leave
SYNOPSIS
[hhmm]
DESCRIPTION
The command waits until the specified time, then reminds you to leave. You are reminded 5 minutes and 1 minute before the actual time, at
the time, and every minute thereafter. When you log off, exits.
The time of day is in the form hhmm, where hh is a time in hours (which can range from 0 through 11 or 0 through 24 hours), and mm is the
number of minutes after the specified hour. If the value of hh is greater than 11 (24-hour clock time), the specified value is reduced by
12 to a new value in the range of 0 through 11, thus ensuring that the alarm time is always set to activate within the next 12 hours. For
example, if hhmm is 1350 and the current time is 4:00 PM (1600), the 1350 value is changed to 150 and the alarm is set for 1:50 AM, nine
hours and 50 minutes later. On the other hand, if it is 9:00 AM and hhmm is specified as 2200 (10:00 PM), the value used is converted to
1000 and the alarm is set for one hour later instead of 13 hours as specified.
If no argument is provided, prompts with
A reply of newline causes to exit; otherwise the reply is assumed to be a time. This form is suitable for inclusion in a or file.
The command ignores interrupts, quits, and terminate signals. To get rid of it you should either log off or use giving its process ID.
EXAMPLES
The command
sends an alarm (a beep) to your terminal to remind you that you have to leave at 12:04 and reminds you that you are late at one minute
intervals after 12:04.
WARNINGS
The command checks to see if a user has logged out by checking the file every 100 seconds. If a user logs out and logs back in to the same
tty before makes its periodic check, may not know that the user has logged out.
AUTHOR
was developed by the University of California, Berkeley.
FILES
SEE ALSO
calendar(1).
leave(1)