每小时在UNIX服务器中执行C#代码 [英] Execute C# code in a UNIX server hourly
问题描述
如果我有2个C#代码片段(VS Projects),则返回两个XML文档。我想编写一个自动任务执行这2个C#代码每小时并存储XML以便不断更新数据。
是否可以在Unix服务器上执行此操作? 用 CRON ? Windows服务器更好吗?我想独立于PC进行,我没有编程和自动化工作/任务的经验。我一直在阅读使用带有计时器和任务调度程序的Windows服务,但它与PC相关的所有内容我希望这是独立的,但我不确定它是否可行。
我该怎么办?
你可以使用 cron [ ^ ],但您还需要安装 Mono [ ^ ],以便在UNIX中使用.NET应用程序。
If I have 2 C# pieces of code (VS Projects) witch return two XML docs . I want to program an automatic task what execute this 2 C# codes hourly and store the XMLs in order to keep updating the data .
Is it possible to do this in a Unix server ? with CRON? Is it better with a Windows server? I would like do it independently of the PC and I don't have experience programing and automatizing jobs/task . I have been reading about to use windows services with timer and Task scheduler but everything it's associated to a PC and I would like this would be independent but I'm not sure if it's possible.
How should I proceed?
You can use cron[^], but you will also need to install Mono[^] in order to use .NET applications in UNIX.
这篇关于每小时在UNIX服务器中执行C#代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!