Find the answer to your Linux question:
Results 1 to 4 of 4
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..........
  1. #1
    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.......

  2. #2
    Linux User stokes's Avatar
    Join Date
    Oct 2004
    Location
    UK
    Posts
    268
    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 Semi-Linux Blog

  3. #3
    Just Joined!
    Join Date
    Oct 2008
    Posts
    6

    Smile thanks

    Thank you stokes,
    your solution really works for me.

  4. #4
    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •