I'm trying to perform a one-liner using at
.
Basically, I want to send an SMS at some point in the future.
Here's my command to send an SMS:
php -r 'include_once("/home/eamorr/open/open.ie/www/newsite/ajax/constants.php");sendCentralSMS("08574930418","hi");'
The above works great! I receive my sms in a couple of seconds.
Now, how can I get at
to run this command in future?
I tried
php -r 'include_once("/home/eamorr/open/open.ie/www/newsite/ajax/constants.php");sendCentralSMS("08574930418","hi");' | at now + 2 minutes
But this sends my command immediately! I want to send the message in 2 minutes' time!