Re: Automatic way of terminating a program

From: Jorge Fábregas (fabregasj_at_prtc.net)
Date: 11/01/05

  • Next message: Rick Stevens: "Re: Automatic way of terminating a program"
    To: fedora-list@redhat.com
    Date: Mon, 31 Oct 2005 19:52:49 -0400
    
    

    On Monday 31 October 2005 7:37 pm, Paul Smith wrote:
    > Is there some automatic way of terminating a program at a previously
    > specified time?

    You can use the "at" command if it's going to be for something specific (not
    periodically):

    Try:

    at 4:10pm <ENTER>
    kill -15 `pidof myProcessName` <ENTER>
    <CTRL-D>

    You can specify as many commands you want after the "at" invocation and end it
    with a end-of-line (here invoked with CTRL-D). There are many ways to invoke
    the "at" command. Read the man page or google for it.

    HTH,
    Jorge

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Rick Stevens: "Re: Automatic way of terminating a program"

    Relevant Pages

    • Re: Disconnecting from a dial up connection
      ... Terminate your dial-up / PPPoE connection at a specified time using Task Scheduler: ... command line command to disconnect the modem from phone line. ...
      (microsoft.public.windowsxp.newusers)
    • Re: Grant computer access tousers by time of day
      ... so there is a way to restrict log on access but is ... there a way to log that person off at a specified time. ... What about using the "at" command through Scheduled Tasks? ... >Unsolicited e-mail is not answered. ...
      (microsoft.public.windowsxp.security_admin)
    • Re: excel file opened automaticaly at specified time & date
      ... then try the Task Manager in the Control Panel. ... His job is to launch stuff at a specified time. ... There you will discover the AT command which will allow you launch commands ...
      (microsoft.public.excel.misc)
    • Re: Windows Automatic Update
      ... this" is not clever as many processes in Windows that are not meant to ... :>> showing that it's looking for any updates) from the command line ... :>> every day) and at a specified time. ... :>> that you can manually install them, or just alert you, or turn it ...
      (microsoft.public.windowsxp.configuration_manage)
    • Re: Scheduled jobs
      ... I have the same problem as you Brian - When I schedule a plain Bat command ... I tried both at the command prompt and using the scheduler. ... they failed to run at the specified time. ... Brian A. Sesko ...
      (microsoft.public.windowsxp.basics)