LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 12-06-2008, 02:15 AM   #1
raj_hcl1986@rediffma
LQ Newbie
 
Registered: Oct 2008
Posts: 21

Rep: Reputation: 15
at command not working


Hi
When i m trying to run at command, its not working.

The way I have done this is:
at 06:58 December 06.
at> top
at> Ctrl+D

Pls help me to solve this.
 
Old 12-06-2008, 02:41 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 120Reputation: 120
What exactly do you expect from what you are trying to do?

at runs in the background, which makes no sense for top.
 
Old 12-06-2008, 02:49 AM   #3
raj_hcl1986@rediffma
LQ Newbie
 
Registered: Oct 2008
Posts: 21

Original Poster
Rep: Reputation: 15
I was just exercising on at command, want to know how this works. I am expecting the output of top command or any other on my screen.
If not possible, where at is basically used?
 
Old 12-06-2008, 03:06 AM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 120Reputation: 120
I use at like an ad hoc cron - it's great for running a script, or wget, but it runs in the background
 
Old 12-06-2008, 03:09 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
At is commonly used for one-off commands that don't
require interaction. In other words: anything one would
use cron for if it were repeated. E.g.you want to reboot
a non mission critical machine on the weekend w/o having
to come in (except for if it doesn't come up and needs
interaction).
 
Old 12-06-2008, 03:17 AM   #6
raj_hcl1986@rediffma
LQ Newbie
 
Registered: Oct 2008
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks. it was helpful.
 
Old 12-06-2008, 05:08 AM   #7
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 54
Quote:
Originally Posted by raj_hcl1986@rediffma View Post
Hi
When i m trying to run at command, its not working.

The way I have done this is:
at 06:58 December 06.
at> top
at> Ctrl+D

Pls help me to solve this.
Check if the atd deamon has started, if not you need to start it first.

To allow a regular user to use at, you need to add your user ID
to /etc/at.allow. If /etc/at.allow doesn't exist, create it like so

echo "username" > /etc/at.allow

Just replace username with your actual user ID.

- Goodluck

Last edited by dv502; 12-06-2008 at 05:20 AM.
 
Old 12-06-2008, 12:32 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Of course his problem there and then he scheduled a job
for 2 years ago ...
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mv command not working lqchangba AIX 9 07-23-2008 09:31 PM
du -sh * Command not working young_rhkid Linux - Newbie 3 10-01-2007 11:51 AM
at command not working??? sulekha Ubuntu 2 07-27-2007 01:17 PM
su command not working dahmad Linux - Newbie 6 02-28-2003 12:08 AM
ps command not working slackerboy Slackware 2 08-22-2002 11:01 PM


All times are GMT -5. The time now is 01:41 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration