![]() |
Re: Automatic Muting via cron
Quote:
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 |
Re: Automatic Muting via cron
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. |
Re: Automatic Muting via cron
The crontab files are stored in /tmp.
|
Re: Automatic Muting via cron
Quote:
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 |
Re: Automatic Muting via cron
I solved doing this:
cd /root/cron ./INSTALL Why './cron/INSTALL' did not work to begin? |
Re: Automatic Muting via cron
Because it was looking for ./UNINSTALL, not ./cron/UNINSTALL, and so on.
|
Re: Automatic Muting via cron
Quote:
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 |
Re: Automatic Muting via cron
Quote:
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. |
Re: Automatic Muting via cron
Quote:
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 |
Re: Automatic Muting via cron
Quote:
|
All times are GMT. The time now is 16:29. |
vBulletin® Version 3.8.8