Active Topics

 


Reply
Thread Tools
Posts: 46 | Thanked: 6 times | Joined on Oct 2007 @ Tokyo
#21
Originally Posted by cybergypsy View Post
Thanks maillaxa, thats great!

For anyone else who would like to get this working , here is what I have done.
I set all this up via SSH on my desktop rather than the built-in terminal, this allows easy copy & paste as well as file transfers via secure copy (scp)
  1. Installed the aumix-gtk applcation from the repositories.
  2. Installed the cron package from this thread.
  3. As root created a crontab containing :-
    Code:
    30 23 * * * aumix -w 0
    00 7 * * * aumix -w 90
    This mutes the tablet at 11:30pm and un-mutes it at 07:00am
  4. Either reboot or run cron from the command line.

Good Luck
cybergypsy
Can you tell a little more please?

As root, I installed cron, and run crontab -e .. I entered something similar, " 30 23 * * * mplayer file.mp3 " but nothing happens at 23:30... I tried to edit /etc/crontab.. nothing happened

thx
 
Posts: 35 | Thanked: 18 times | Joined on Feb 2007 @ France
#22
you might need to specify the path to the .mp3 file as the command will be running as root and not as user.

I don't think the crontab files are stored in /etc , I think they're in /var somewhere but I can't check at the moment as I don't have it all installed currently due to the diablo upgrade this afternoon.
 
Posts: 674 | Thanked: 191 times | Joined on Mar 2008 @ Buenos Aires, Argentina
#23
The crontab files are stored in /tmp.
 
Posts: 674 | Thanked: 191 times | Joined on Mar 2008 @ Buenos Aires, Argentina
#24
Originally Posted by alephito View Post
I am sure I am root (I see the # in the command line) and I run tar with the 'zxvvf' parameters. How can I check if the script is set as executable?
EDIT: Where should I be positioned to untar the files? If I am in the root directory (/root) the permissions are well assigned (but ./cron/INSTALL fails for other reason). The problem happened standing in mmc1.

Now, I get this when I execute ./cron/INSTALL:

~# ./cron/INSTALL
./cron/INSTALL: line 3: ./UNINSTALL: not found
cp: omitting directory './cron'
cp: cannot stat './crontab': No such file or directory
chmod: /usr/bin/cron: No such file or directory
chmod: /usr/bin/crontab: No such file or directory
ln: /etc/rc2.d/S89cron: File exists

Last edited by alephito; 2008-06-24 at 22:47. Reason: Changed the problem.
 
Posts: 674 | Thanked: 191 times | Joined on Mar 2008 @ Buenos Aires, Argentina
#25
I solved doing this:

cd /root/cron
./INSTALL

Why './cron/INSTALL' did not work to begin?
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#26
Because it was looking for ./UNINSTALL, not ./cron/UNINSTALL, and so on.
 
Posts: 46 | Thanked: 6 times | Joined on Oct 2007 @ Tokyo
#27
Originally Posted by alephito View Post
The crontab files are stored in /tmp.
actually it seems to be in /var (chinook)

Anyway.. doesn't work for me >o<

# more /var/cron/tabs/root gives me

===========
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.3312 installed on Wed Jun 25 13:33:30 2008)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
35 13 * * * /usr/sbin/reboot
===========

which i created with crontab, as root.

But no reboot at 13H35.. Is my command ok?

I think cron is running since it shows with ps -aux | grep cron

I'm puzzled
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#28
Originally Posted by t24 View Post
Can you tell a little more please?

As root, I installed cron, and run crontab -e .. I entered something similar, " 30 23 * * * mplayer file.mp3 " but nothing happens at 23:30... I tried to edit /etc/crontab.. nothing happened

thx
" 30 23 * * * run-standalone.sh mplayer file.mp3 "

Mplayer sends a dbus command along the line. cron runs as root. dbus and root don't go so well on tablets hence the run-standalone.sh.
 
Posts: 46 | Thanked: 6 times | Joined on Oct 2007 @ Tokyo
#29
Originally Posted by qwerty12 View Post
" 30 23 * * * run-standalone.sh mplayer file.mp3 "

Mplayer sends a dbus command along the line. cron runs as root. dbus and root don't go so well on tablets hence the run-standalone.sh.
Nope, doesn't work for me... mplayer or anything else, run-standalone.sh or not... Nothing never happens

What am I doing wrong???

Recap :
1- on my n810, downloaded the package from the thread "cron has gone".. cron.tar.gz (.zip)

2- as root, used the INSTALL script

3 - rebooted, checked with ps -aux | grep cron... which gives me
1220 root 1548 SW /etc/rc2.d/S89cron start

4 - as root, crontab -e, added the line
30 23 * * * run-standalone.sh mplayer file.mp3

5 - checked it's in /var/cron/tabs/root

6 - wait

7 - weep
 
Posts: 674 | Thanked: 191 times | Joined on Mar 2008 @ Buenos Aires, Argentina
#30
Originally Posted by Benson View Post
Because it was looking for ./UNINSTALL, not ./cron/UNINSTALL, and so on.
Does it mean there is an error in the INSTALL file?
 
Reply

Tags
cron


 
Forum Jump


All times are GMT. The time now is 08:41.