D
D
Dealaxer2016-11-25 15:05:25
Task Schedulers
Dealaxer, 2016-11-25 15:05:25

How to create a script execution command in Windows Server via Cron that works successfully in Linux?

People, hello everyone!
Recently, I had to fiddle with the settings of Windows Server 2012, before that I only worked with Linux.
How to create a script execution command in Windows Server that works successfully in Linux?
There is a command for cron on Linux:

echo "* * * * * /usr/bin/php -q /home/runscript.php send-data >/dev/null 2>&1" >> mwcron

How to bring this command to normal in Windows? There is no Cron in Windows, but the Task Scheduler, in general, introduced me into a stupor, I don’t understand it.
Do you have examples, please share!
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dealaxer, 2016-11-25
@Dealaxer

Found a solution by myself. In this case, Cygwin
can act as an assistant. The command in this case is:
Thanks to all who responded and just viewers!

A
amambaru, 2017-08-26
@amambaru

install nncron.
native utility for Windows with cron format emulation

S
Saboteur, 2016-11-25
@saboteur_kiev

You can install a cron port and use it. For example nncron - I've been using it successfully since 2k. It is put as a service from the desired user, it works like a clock.

A
athacker, 2016-11-25
@athacker

What people just don’t come up with, if only they don’t read the documentation ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question