umount partition #(may reboot and login as root etc) mkdir recover-dir #(make directory for recorverd files) extundelete /dev/partition --restore-all -o recover-dir
postconf -e 'relayhost = smtp.example.com' postconf -e 'smtp_sasl_auth_enable = yes' postconf -e 'smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd' postconf -e 'smtp_sasl_security_options =' echo "smtp.example.com someuser:howtoforge" > /etc/postfix/sasl_passwd chown root:root /etc/postfix/sasl_passwd chmod 600 /etc/postfix/sasl_passwd postmap /etc/postfix/sasl_passwd #create sasl_passwd.db /etc/init.d/postfix restart
bash NVIDIA-Linux[...]pkg1.run --kernel-source-path=/usr/src/linux2.6.xx
I'm acually using fcron.free.fr
Minutes | Hours | DayOfMonth | MonthOfYear | DayOfWeek | command |
0-59 | 0-23 | 1-31 | 1-12 or jan,feb,mar.. | 0-6 (0=sunday) or sun,mon,tue.. | (whatever) |
The commands get executed at the 'next' instance of a possible value. Possible values are (here in the case of minutes):
* | executes every minute |
0-30,31-45,46-59 | executes every minute |
0-3,30-32 | executes on minutes: 0,1,2,3 and 30, 31,32 |
0,1,2,3,30,31,32 | executes on minutes: 0,1,2,3 and 30, 31,32 |
*/15 | executes on minutes: 0,15,30,45 |
0-59/15 | executes on minutes: 0,15,30,45 |
0,15,30,45 | executes on minutes: 0,15,30,45 |
Additonally there are some special variables:
@reboot | on reboot | no equivalent (quite useful) |
@yearly | every new year | 0 0 1 1 * |
@annually | same as @yearly | 0 0 1 1 * |
@monthly | every new month | 0 0 1 * * |
@weekly | every new week | 0 0 * * 0 |
@daily | every new day | 0 0 * * * |
@hourly | every new hour | 0 * * * * |
Some examples:
30 9-17 * 1 sun,wed,sat echo `date` >> /date.file 2>&1 @reboot /usr/bin/fetchnews 2>/dev/null 1>&2 */15 * * * * /usr/sbin/fetchnews 2>/dev/null 1>&2
May send comments to: mac@calmar.ws, thanks!