【正文】
本獲取所需的數(shù)據(jù)并將其通過(guò)管道返回程序,該腳本使用 DDTS 工具來(lái)獲取數(shù)據(jù)。這種方法充分利用了已有工具和 perl 語(yǔ)言的靈活性,降低了開(kāi)發(fā)難度。為了確保偵聽(tīng)程序始終運(yùn)行,采用了在 UNIX 主機(jī)的系統(tǒng) crontab 里添加了一條指令使得系統(tǒng)每隔一分鐘檢查偵聽(tīng)程序 scksvr 是否正在運(yùn)行,并在因系統(tǒng)異常導(dǎo)致其中斷運(yùn)行的情況下重新啟 動(dòng)。 客戶端運(yùn)行在 Windows NT 平臺(tái)上,采用 Microsoft Visual C++的 ATL( Active Template Library)模板 COM 開(kāi)發(fā)和 MFC Socket 編程做成一個(gè) COM組件。使用 COM 組件可以避免在多個(gè) ASP 文件中使用 Winsock ActiveX 控件進(jìn)行編程,實(shí)現(xiàn)代碼復(fù)用。該 COM 組件還用于一些 VBScript 腳本,這些VBScript 腳本使用該 COM 組件并訪問(wèn)本地?cái)?shù)據(jù)庫(kù)實(shí)現(xiàn)數(shù)據(jù)的同步,具體實(shí)現(xiàn)的是自動(dòng)獲取 DDTS 上的當(dāng)天 CR 到本地?cái)?shù)據(jù)庫(kù)并發(fā)送 Email 給相關(guān)人員、指定 條件獲取 DDTS 上的 CR 到本地?cái)?shù)據(jù)庫(kù)并發(fā)送 Email 給相關(guān)人員、自動(dòng)更新正在進(jìn)行的 CR 的狀態(tài)、根據(jù) CR 和人員進(jìn)行的工時(shí)收集、 CR 統(tǒng)計(jì)與跟蹤等任務(wù),可以使用 Windows NT的 Schedule Service來(lái)定時(shí)運(yùn)行這些 VBScript腳本實(shí)現(xiàn)數(shù)據(jù)的定時(shí)自動(dòng)同步。 4. 結(jié)束語(yǔ) 本文分析了在企業(yè)安全策略下跨平臺(tái)數(shù)據(jù)同步面臨的問(wèn)題和幾種數(shù)據(jù)同步方法,在分析手工同步和開(kāi)放數(shù)據(jù)庫(kù)訪問(wèn) IP 端口的利弊基礎(chǔ)上提出了一種基于 Socket 通信的數(shù)據(jù)同步解決方案。在實(shí)現(xiàn)基于 Socket 通信的數(shù)據(jù)同步時(shí),服務(wù)器端充分利用 了已有的工具和 perl 語(yǔ)言的靈活性;根據(jù)實(shí)現(xiàn)Intra 自動(dòng)化工具的需要,客戶端使用了 Visual C++的 ATL 模板設(shè)計(jì)了一個(gè) Socket 客戶端 COM 組件。在設(shè)計(jì)的自動(dòng)化工具中,利用 Windows NT 的Schedule Service 實(shí)現(xiàn) CR 的定時(shí)自動(dòng)同步、更新及發(fā)送通知 Email 等任務(wù),使用 ASP 設(shè)計(jì)對(duì)本地?cái)?shù)據(jù)庫(kù)訪問(wèn)的交互頁(yè)面進(jìn)行 CR 跟蹤。在實(shí)際使用中,這種方案很好地滿足了設(shè)計(jì)目的,與原有 Intra 工具相比,大大降低了所有項(xiàng)目組成員在 CR 跟蹤上所貢獻(xiàn)的時(shí)間和精力。 附件 2:外文原文(復(fù)印件) Data Synchronization Over Different Platforms Under Enterprise Security Policy Abstract: This paper discusses methods of data synchronization over different platforms. Then it gives an example to illuminate the application of implementation of data synchronization over different platforms under enterprise security policy in the design of intra automatic tools. Key Words: Enterprise Security Policy, Intra Automatic Tools, Socket Communication, Componential Programming 1. introduction Have been discussed as for B S developping the advantage of the mode a lot of, the Intra automation tool transacts the application in the automation in the modern business enterprise increasingly universal. Along with modern business enterprise towards the direction that internationalization, group turn develops, modern business enterprise internal and each section a trend for appearing cent work closely turning with distributing world cent work is close to turn to turn to make with the world that distribute the trend each section a data for hardly finding out aly more pletely sharing with applicably the tool of the independence management among each section, each section will choose with the resources term according to the characteristics of this section at the time of developping own Intra automating the tool own Intra announces the the other hand, the original data in section announces the terrace to affected the section to announce the choice of the terrace to the Intra on the certain degree。On the other hand, at make selection own Intra announce the terrace at the same time, share with other section the section of the data originally too the ground of cowgirl chose own data announces the terrace. At the same time, modern business enterprise internal and each section a d