LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   at command not working (https://www.linuxquestions.org/questions/linux-newbie-8/at-command-not-working-688707/)

raj_hcl1986@rediffma 12-06-2008 02:15 AM

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.

billymayday 12-06-2008 02:41 AM

What exactly do you expect from what you are trying to do?

at runs in the background, which makes no sense for top.

raj_hcl1986@rediffma 12-06-2008 02:49 AM

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?

billymayday 12-06-2008 03:06 AM

I use at like an ad hoc cron - it's great for running a script, or wget, but it runs in the background

Tinkster 12-06-2008 03:09 AM

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).

raj_hcl1986@rediffma 12-06-2008 03:17 AM

Thanks. it was helpful.

dv502 12-06-2008 05:08 AM

Quote:

Originally Posted by raj_hcl1986@rediffma (Post 3366166)
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

Tinkster 12-06-2008 12:32 PM

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


All times are GMT -5. The time now is 12:28 PM.