LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   understanding "at" command (https://www.linuxquestions.org/questions/linux-newbie-8/understanding-at-command-858185/)

Ribo01 01-23-2011 03:53 PM

understanding "at" command
 
Hello I need help understanding and using the "at" command. I know everyone would say read the man pages, bt dnt knw if its jst me that think the man pages are not elementary enough for newbies like mi. So I need an elementary way of executing the "at" command. Tried using the "at" command to kill a program at a certain time but didn't seem to get it, so I need help doing that. Distro is redhat linux. Thanks u all. Cheers

trist007 01-23-2011 03:58 PM

Ok here's what you need to do. Create a file and in that file put in
Code:

#!/bin/bash

pkill process

Replace process with the name of the process you want to kill. Save it.

Then run this.

at -f file 1:00

This will run that command at 1:00 AM.

unSpawn 01-23-2011 05:54 PM

...or queue the command without the need for an intermediate file: 'echo "pkill processname"|/usr/bin/at 1:00;'.

Ribo01 01-25-2011 04:35 PM

U guys are the. Bom wld try it out and get back at you. Thanks a lot. This forun is the best


All times are GMT -5. The time now is 04:51 PM.