• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

cronjob/scheduled task syntax, please help

H

hepmepeas

Guest
hi, slightly new to windows servers, need to create a cronjob, only to find windows doesn't have cronjobs but rather "scheduled tasks". i've looked all over the internet and can't seem to find a specific answer for this, but would someone please tell me exactly what text to place in the plesk panel's "path to executable file" and "argument" fields in order to replicate this simple cronjob:

mv ./httpdocs/domain.com/file.html ./httpdocs/domain.com/renamedfile.html


thank you in advance to whomever is nice enough to help
 
Last edited by a moderator:
thanks for responding, can you tell me specifically what text to put in plesk panel's "path to executable file" and "argument" fields of the task scheduler to replicate the cronjob "mv ./httpdocs/domain.com/file.html ./httpdocs/domain.com/renamedfile.html"?
 
on windows the path to the file appears to be "C:/Inetpub/vhosts/domain.com/httpdocs/file.html", but don't know if that matters and of course can't find any help to determine.

please someone help, exact text for the fields please.
 
Use full paths for files. For example

move C:\directory1\directory2\file1.html C:\directory1\directory2\file2.html
 
Use full paths for files. For example

move C:\directory1\directory2\file1.html C:\directory1\directory2\file2.html

does that line go in the "path to executable file" field or the "arguments" field or what?

and what is the "full path" on a windows server "C:\Inetpub\vhosts\domain.com\httpdocs\file.html"?

because i've already tried things like this and nothing happens, it just says "task was launched successfully", yet nothing happens. numerous different permutations predicated on pure guesswork, same result over and over and over: nothing happens.

i'll ask again: what is the specific line(s) of text necessary to replicate the cronjob in the first post and what field(s) do i put it in within the plesk 11 panel task schedule interface? i don't know how many ways to keep asking the same question.
 
please please help. anyone. maybe this is such a simple question that those who can answer it are simply ignoring it?
 
guess i'm forced to pay $75 to plesk support just to get someone to answer to this. unbelievable.
 
Have you tried needed command in Windows command line? Did it work as expected? Just put working command to field.
 
Back
Top