LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-23-2011, 04:53 PM   #1
Ribo01
Member
 
Registered: Aug 2010
Posts: 103

Rep: Reputation: 5
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
 
Old 01-23-2011, 04:58 PM   #2
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,027

Rep: Reputation: 69
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.

Last edited by trist007; 01-23-2011 at 05:01 PM.
 
Old 01-23-2011, 06:54 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
...or queue the command without the need for an intermediate file: 'echo "pkill processname"|/usr/bin/at 1:00;'.
 
Old 01-25-2011, 05:35 PM   #4
Ribo01
Member
 
Registered: Aug 2010
Posts: 103

Original Poster
Rep: Reputation: 5
U guys are the. Bom wld try it out and get back at you. Thanks a lot. This forun is the best
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie says hello & understanding the "dd" command Bill2206 LinuxQuestions.org Member Intro 1 01-22-2011 05:33 PM
ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn." shojaru Linux - Newbie 0 03-05-2009 05:23 AM
Understanding "who" command arnuld Linux - Software 1 01-02-2009 08:33 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 11:18 PM
Understanding the "Top" Command gauravdamri Linux - Newbie 1 02-07-2006 04:25 PM


All times are GMT -5. The time now is 07:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration