•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 391,151 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,142 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser:
Views: 898 | Replies: 1
![]() |
•
•
Join Date: Oct 2007
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hi,
I want to create a script that can be run daily(as cron job?) and which does the following:
1) Queries a MySQL database to return details of registered users.
2) For each user, compares their expiry date with today's date and if the remaining period is either 30,14,7,3,2 or 1 days sends them an email to say that their subscription will expire in 'n' days.
The main application uses MySQL & PHP, but I'm assuming I'd need a shell script in this case.
Any help gratefully received.
Thanks,
Nick
I want to create a script that can be run daily(as cron job?) and which does the following:
1) Queries a MySQL database to return details of registered users.
2) For each user, compares their expiry date with today's date and if the remaining period is either 30,14,7,3,2 or 1 days sends them an email to say that their subscription will expire in 'n' days.
The main application uses MySQL & PHP, but I'm assuming I'd need a shell script in this case.
Any help gratefully received.
Thanks,
Nick
•
•
Join Date: May 2006
Location: ★ ijug.net ★
Posts: 834
Reputation:
Rep Power: 4
Solved Threads: 61
You can use some auto responder.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
Similar Threads
- Sending email from a shell script (Shell Scripting)
- test mysql query for no results (PHP)
- I Need Help Installing Vbulletin (MySQL)
- Hotmail wont let me send emails (Web Browsers)
- Need Help - Cannot Send Emails (Techies' Lounge)
- Change output in cgi script (Perl)
- pagination of mysql query results (PHP)
- Can't send emails using my neighbour's Netgear network (Networking Hardware Configuration)
- help installing vbulletin (Database Design)
- MySQL Maestro (Computer Science and Software Design)
Other Threads in the Shell Scripting Forum
- Previous Thread: Not sure if this is the right place...need windows script that will delete directorys
- Next Thread: Creating a user in Linux without adduser/useradd


Linear Mode