Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

CRONTAB - Send mail on restart

Writer Mia Lopez

I am trying to send an email when starting my machine with crontab.

@reboot (cd /home/untitle/lab/php/initmail/ && ./initmail)
@reboot mkdir /home/untitle/testcrontab

With this configuration, the folder is created but no email is sent, the initmail script works perfectly.

I am using php for sending email, the initmail script just run the command

#!/bin/bash
php /home/untitle/lab/php/initmail/initmail.php

I also have the symbolic link present in the init.d folder but none sends.

Thanks in advance

2 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy