Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Newbie > how to kill process at specified time...

Forgot Password?
 Linux Newbie   If you're new to the wonderful world of Linux, start here!

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 10-16-2008   #1 (permalink)
Just Joined!
 
Join Date: Oct 2008
Posts: 6
Question how to kill process at specified time...

Dear all,
i want to know aboout kill command in linux.how can kill the process at a specified time? plz guide me on that.......
dhananjayingroup is offline  


Reply With Quote
Old 10-16-2008   #2 (permalink)
Linux User
 
stokes's Avatar
 
Join Date: Oct 2004
Location: UK
Posts: 260
Send a message via MSN to stokes
Hello,

You can use cron to schedule a command to run at a specified time. use

Code:
crontab -e
to add your new cron job. Use wikipedia to learn a bit more about cron first:

cron - Wikipedia, the free encyclopedia

To kill a process you can either refer to its process ID, i.e.

Code:
kill 1234
Use ps -ex first to see the process ID's for each process (check the PID column)

Or you can kill a process by refering to its name, i.e.

Code:
killall gnome-panel
Hope this helps
__________________
Registered Linux user #389109
My Linux Blog
stokes is offline   Reply With Quote
Old 10-16-2008   #3 (permalink)
Just Joined!
 
Join Date: Oct 2008
Posts: 6
Smile thanks

Thank you stokes,
your solution really works for me.
dhananjayingroup is offline   Reply With Quote
Old 10-17-2008   #4 (permalink)
Just Joined!
 
garry_3peace's Avatar
 
Join Date: Oct 2008
Posts: 67
If I am not mistaken, you also can use at. If cron will run periodically, at will only run only once...
garry_3peace is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 07:27 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2