If this is your first visit, check our documentation. To post, register or login.

scheduled daily admin task?

Locked

Started by yourguide on 28 Sep 2010, 7:37 PM · Views: 2,301

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
28 Sep 2010, 7:37 PM
#1
yourguide avatar

yourguide

New Zenner

Join Date:
Apr 2010
Posts:
10
Plugin Contributions:
0

Post #1 by yourguide

I hired a developer to write a customized daily import from a CSV file into ZenCart.
It works flawslessly, but it requires me to log in to the admin of zencart before it will run.
The file is a PHP file inside the admin folder, with certain dependencies inside subfolders from there.... "application_top.php" from the "includes" folder within the admin folder.... then several from an "includes2" which I am assuming he created.
I tried moving all the needed files to a folder other than admin, but I just get a 500 server error then.
Ultimately I want this script to run daily automatically with a scheduled task... but since it requires me to log in each time before it will run, I am not sure how to do that.

I am using a Windows 2008 Server, IIS7.
Anyone have any ideas on how to get this to run automatically without it redirecting me to the login page and requiring authentication?

Thanks.

28 Sep 2010, 11:20 PM
#2
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Post #2 by vger

As we exclusively use Linux Servers I'm not even sure if you can run Cron Jobs on Windows Servers.

That would be the natural solution on Linux.

Vger

1 Oct 2010, 11:25 AM
#3
amit001 avatar

amit001

New Zenner

Join Date:
Jul 2008
Location:
India
Posts:
46
Plugin Contributions:
0

Post #3 by amit001

Could you guide how this is possible with linux.

1 Oct 2010, 2:45 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #4 by drbyte

Amit001:

Could you guide how this is possible with linux.
type "cron" into your favorite search engine

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.