-1

I want to execute a script at user defined day and time. I have read about cron jobs. Issue is that in cron job we have to define dtime. I also have read Create a cron job with user define dtime

Where/How to execute shell_exec($cmd); command I am using IIS server.

Community
  • 1
  • 1
user1885057
  • 85
  • 1
  • 2
  • 12

1 Answers1

0

I have used a scheduled task to send entries in my outgoing mail table.

The action calls the php executable; "C:\Program Files (x86)\PHP\v5.3\php.exe"

Then an argument with a -f set calls the script; -f C:\inetpub\wwwroot\xxx\tools\send-mail.php

You could also look at creating each as a task. PHP however, wont help you with this. See c# creating scheduled tasks.

Community
  • 1
  • 1
atoms
  • 2,993
  • 2
  • 22
  • 43