MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm using LE2005 and have just discovered a beautiful little scheduler which you can run from the command line. Unfortunately for me it does absolutely nothing:
eg: "at 08:15" takes me to the "at" prompt - fine so far
Now I issue the command to run eg: "skype". I hit enter and then "control d" and it seems to be accepted ( ie no error messages )
However, come 08:15 nothing happens and when I type "atq" in the console, there is apparently nothing in the queue so the system is telling me it has done it.
I've not used the at command but looking at its man page, it looks like the time should be entered like:
8:15am
Also, I'm wondering if running as root could be a dangerous way to run Skype? Maybe you should setup the at command to accept a regular user to use that command as outlined in the man page.
yes have also tried your way and run as root or other user. Skype was not a good example I must admit, but have tried many other simple commands. Reading up a bit more on this I noticed that there should be a file: /var/at/at.conf or similar. I cant find one in this installation. It seems that this would define the users who could use "at" and the default is root of course.
I'm still not sure which service needs to be running. Possibly its "crond" but not sure.
the atd daemon handles running at commands at specified times AFAIK and i don't know of any service that at depends upon.
#from man pages
The superuser may use these commands in any case. For other users, permission to use at is determined
by the files /etc/at.allow and /etc/at.deny.
If the file /etc/at.allow exists, only usernames mentioned in it are allowed to use at.
If /etc/at.allow does not exist, /etc/at.deny is checked, every username not mentioned in it is then
allowed to use at.
If neither exists, only the superuser is allowed use of at.
An empty /etc/at.deny means that every user is allowed use these commands, this is the default configu-
ration.
thanks for info prozac. I checked that atf is running in MCC and all seems to be well. I have a file - /etc/at.deny which is empty. Here is the feedback I get after typing "at 13:00 (return )"
warning: commands will be executed using (in order) a) $SHELL b) login shell c)/bin/sh
Hi prozac - well Ive just tried again on a differnet machine running PCLinuxOS and I get exactly the same problem ie nothing. I shall now type in your example word for word and try that!
try and run something that writes to a file for example
Code:
echo "at ran this command successfully!" > /home/user/at.txt
and check the at.txt file after you think the time has past. it will tell us where the problem exactly is, in at or our understanding.
also make sure atd is running.
prozac - yes you are right! that's perfect. I was naive in asuming that a command output would appear automatically in the current terminal window. However, what I was hoping to do was execute various apps at specific times of day (eg KMAIL) If the app has a GUI and will run from the command line, I would have expected that to work fine. I've even tried to use the GUI version of cron - Kcron but Ive had no success with that either. Am I being a total "thicky" here?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.