简体   繁体   English

在服务器端运行基于机械化的Perl脚本

[英]Run Mechanize-based Perl Script on server-side

I am new to web developing and till now, I only used client-side programming (Javascript) on my website. 我是Web开发的新手,直到现在,我只在我的网站上使用客户端编程(Javascript)。 My website is used to generate possible class schedules for my university given an input and comparing it with a data structure that has all the classes. 在给定输入的情况下,我的网站可用于为我的大学生成可能的上课时间表,并将其与包含所有班级的数据结构进行比较。

I update this data structure manually by running a Perl Script and encoding the result in JSON and then edit the .html. 我通过运行Perl脚本并将结果编码为JSON来手动更新此数据结构,然后编辑.html。 However, I would like to allow the server to run this script and automatically update itself every time interval. 但是,我想允许服务器运行此脚本并在每个时间间隔自动更新自身。

Please keep in mind that I am a newbie in server-side. 请记住,我是服务器端的新手。

Thanks a lot for your help. 非常感谢你的帮助。

If your server is a linux or other unix machine, what you're describing is a cron job. 如果您的服务器是linux或其他unix机器,那么您所描述的是cron作业。

man cron 曼克朗

should get you started. 应该让您开始。 I'm sure there is something similar on windows servers, but I have no idea what it would be. 我敢肯定Windows服务器上有类似的东西,但是我不知道会是什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM