CN1238789C - Synchronous updating method for remote terminal foreground application software - Google Patents
Synchronous updating method for remote terminal foreground application software Download PDFInfo
- Publication number
- CN1238789C CN1238789C CN 02145480 CN02145480A CN1238789C CN 1238789 C CN1238789 C CN 1238789C CN 02145480 CN02145480 CN 02145480 CN 02145480 A CN02145480 A CN 02145480A CN 1238789 C CN1238789 C CN 1238789C
- Authority
- CN
- China
- Prior art keywords
- remote terminal
- server
- terminal foreground
- program
- time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 230000001360 synchronised effect Effects 0.000 title abstract description 7
- 230000005540 biological transmission Effects 0.000 claims abstract description 13
- 238000011161 development Methods 0.000 claims abstract description 7
- 238000012986 modification Methods 0.000 claims description 26
- 230000004048 modification Effects 0.000 claims description 26
- 238000012546 transfer Methods 0.000 claims description 8
- 238000000151 deposition Methods 0.000 claims description 4
- 238000012545 processing Methods 0.000 claims description 4
- 230000000007 visual effect Effects 0.000 claims description 4
- 230000008676 import Effects 0.000 claims 1
- 230000002123 temporal effect Effects 0.000 claims 1
- 241000700605 Viruses Species 0.000 abstract description 3
- 238000012423 maintenance Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000009434 installation Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The present invention relates to a synchronous updating method for application software of a remote terminal foreground, which judges whether a program needs updating by using a development platform programming program and calls an FTP command in a DOS to implement transmission and updating of an application program between a server and a remote terminal foreground. The method comprises the following steps: establishing initialization files in the server and the remote terminal foreground; executing an updating detection program; comparing the latest modifying time of the remote terminal foreground and that of the server by the program; updating the application program and the latest modifying time of the remote terminal foreground if the latest modifying time of the remote terminal foreground is earlier than that of the server; returning updated time information of the remote terminal foreground to the server. The present invention can save working time for maintenance and development workers; less manual intervention brings smaller error rate. The files of the remote terminal foreground need not sharing; the application program is not disclosed and network viruses are difficult to invade computers to destroy file systems.
Description
Technical field
The present invention relates to a kind of remote terminal foreground application software synchronization update method, the automatic synchronous updating method of remote terminal foreground application software that particularly a kind of manual intervention is few.
Background technology
Most of computer system all adopts the client/server mode to carry out production management, and communication, the data administrator that general VB (Visual Basic), VC (Visual C) that uses always or PB (PowerBuilder) write all is to adopt foreground mode to be installed on the on-site terminal.This mode brings a relatively stubborn problem for the system maintenance personnel: when foreground application being made amendment, when function expands, how amended program updates being arrived on-the-spot each terminal.
Also there is not special software to realize the automatic renewal of remote terminal foreground application at present both at home and abroad.Usually adopt two kinds of methods:
First method is exactly that the remote terminal file directory is shared, and the maintainer passes to remote terminal with program by the network neighbor at main equipment room.This is to only there being the computer system of five following remote terminals, also prove to be the most simple and convenient method, but for computer system with five above terminals, all carry out manual file transfer to every, need the regular hour, if modification of program is frequent, then in this work, to spend a large amount of time.And file directory is shared, is easy to divulge a secret and the virus intrusion, even password is set, the virus of a lot of Network Transmission also can break a code, and the intrusion computing machine destroys file system, brings very big threat for the terminal system security.When remote terminal quantity for a long time, unavoidable operator is sometimes with the deletion of file directory sharing functionality, causes the maintainer can't updating file.For the terminal of using Win3.11 operating system,, need to remove updating file to the scene especially because file-sharing can't be set.
Second method is exactly that the maintainer uses the FTP order by hand from certain Server Transport application program to remote terminal, and this requires the maintainer to carry out to the scene, and therefore general maintainer does not often use this method.
Therefore how convenient power-saving accomplishes that the remote terminal Software Edition is consistent with maintainer's exploitation version, just becomes a difficult problem.
Summary of the invention
In view of this, at the problems referred to above, be sought after a kind of technology and can have realized the renewal of terminal foreground application software synchronization automatically, do not need to safeguard developer and the too much intervention of user, thereby the invention provides a kind of remote terminal foreground application software synchronization update method, to reach the purpose of the quick and convenient renewal of remote terminal application software.
The invention provides a kind of remote terminal foreground application software synchronization update method, use development platform to program to judge whether to carry out program updates, if need then call transmission and renewal that the FTP order of DOS realizes application program between server and the remote terminal foreground;
Wherein, method for updating program comprises the steps: that A. sets up initialization files at server and remote terminal foreground; B. carry out and upgrade trace routine; C. program compares nearest modification time in remote terminal foreground and the nearest modification time of server; If D. the nearest modification time in remote terminal foreground is more Zao than the nearest modification time of server, then fill order is carried out the renewal of application program and remote terminal foreground modification time; Information is returned server between the remote terminal foreground sun after the renewal;
Described initialization files comprise: set up the text server_update_time.txt that preserves nearest modification time on server; Set up two texts on the remote terminal foreground: a configuration text file setinit.ini who deposits remote terminal foreground computer name, server name or server address; A text client_update_time.txt who deposits the nearest modification time that the remote terminal foreground application upgrades; Work out three batch processing texts on the remote terminal foreground: a text ftp_server_time.txt who is used for depositing on the transmission server the nearest modification time of program; A text ftp_server_file.txt who is used for transfer application; A file f tp_client_time.txt who is used for the text that nearest modification time is deposited on the remote terminal foreground is transferred to server.
The synchronous renewal technology of this kind remote terminal foreground application version reaches the minimum of interference of safeguarding developer and operating personnel, and all terminal foreground applications are upgraded in time, safeguards that developer's work efficiency improves greatly.
Description of drawings
Fig. 1 is a server workflow diagram of the present invention;
Fig. 2 is a remote terminal workflow diagram of the present invention;
Fig. 3 is an autoexec workflow diagram of the present invention.
The number in the figure explanation
Step 101 beginning
Step 102 application modification
Step 103 is copied to server with update routine
Step 104 is revised server update time server_update_time.txt
Step 105 finishes
Step 201 beginning
Step 202 is got computer name and server address from setinit.txt
Step 203 transmission server text update time, fill order (ftp-v-i-s:ftp_server_time.txt server name or address)
Step 204 is got the terminal updating time from client_update_time.txt and is given rq1
Step 205 is got the server update time from server_update_time.txt and is given rq2
Step 206rq1<rq2
Step 207 transfer application, fill order (ftp-v-i-s:ftp_server_file.txt server name or address)
Step 208 is got the current time and is upgraded client_update_time.txt
Step 209 is renamed client_update_time.txt and is deposited in addition
Step 210 is transferred to server with the terminal updating time, fill order (ftp-v-i-s:ftp_client_time_n.txt server name or address)
Step 211 finishes
Step 301 beginning
Step 304Bin (binary transmissions mode)
Step 305Lcd local directory position
Step 306cd server directory position
Step 307Mget or mput filename
Step 308Bye (withdrawing from)
Embodiment
Development platform programs to senior language establishment such as VB, VC or PB, determines when and carry out the time of upgrading trace routine (remote_copy.exe) several modes are generally arranged: program is joined in the power-on command, start during system boot; Program is joined in the plan target, regularly start; Before executive utility, at first carry out the remote_copy.exe program; Inform by telephone and manually start.
This problem is an example with the VB development platform, adopts and program is joined in the power-on command mode that starts during system boot.The specific implementation method is as follows:
At first carry out the installation of initial program:
Set up a text (being named as server_update_time.txt) on server, preserve and safeguard the nearest modification time that developer's application programs is upgraded, this needs manual input.When safeguard the developer foreground application is made amendment finish after, program is copied in the server assigned catalogue, and is upgraded nearest modification time.
The server_update_time.txt sample:
20021030
When the install software of remote terminal foreground, need set up applications running environment and application program storing directory first, set up a catalogue remote_copy (can use other names) again, the synchronous update software of set up applications.
The synchronous update software process of set up applications version is as follows:
(1) set up the setup catalogue under the remote_copy catalogue, mainly deposit text, text mainly comprises initialization files setinit.ini and remote terminal foreground file update time client_update_time.txt
The setinit.ini sample:
[parameter]
DeviceNo=1
Host=158.15.20.11
Attention: DeviceNo represents terminal number, and every station terminal should be different, and Host represents server address, and these two string variable names can not be changed, and the DeviceNo value can be changed, and server address has the certain standard form.For example first station terminal is as above set, and second station terminal then is set to:
[parameter]
DeviceNo=2
Host=158.15.20.11
The Client_update_time.txt sample:
20021025
(2) set up three batch processing texts (each terminal is identical) under the setup catalogue, file should be encrypted, and prevents that the non-developer of maintenance from changing file and knowing server user's name and password.
Transmission server text update time ftp_server_time.txt,
Transmission server refresh routine text ftp_server_file.txt,
Server text file f tp_client_file.txt is given on transmission remote terminal foreground update time
The ftp_server_time.txt sample:
jhy
jhy
bin
lcd?c:\remote_copy\setup
cd/appl/jhy_cgb
mget?server_update_time.txt
bye
The ftp_server_file.txt sample:
jhy
jhy
bin
lcd?c:\jhy_cgb
cd/appl/jhy_cgb
mget
*.fmx
bye
The ftp_client_time.txt sample:
jhy
jhy
bin
lcd?c:\remote_copy\setup
cd/appl/jhy_cgb
mput_client_update_time_1.txt
bye
In the mput_client_update_time_1.txt statement 1 is meant the terminal name, and be consistent with the DeviceNo among the setinit.ini, and different terminals should be different, and this file is mainly for safeguarding whether developer's inquiry terminal carried out the renewal of application program.
(3) will upgrade master routine remote_copy.exe synchronously is installed under the remote_copy catalogue;
(4) the synchronous update software mode of starting terminal is set: be set in the power-on command.
Main input update time in depositing the text of update time, in the batch processing text being connected of main input FTP and server, assigned catalogue, transfer files, close bind command, generally transfer files can be selected mget for use
*. suffix name and mput
*. the order of suffix name, specifically transmit which program of which catalogue, can define hereof.
The initial installation after the end, when safeguarding that the developer need upgrade application program, only need carry out modification of program in this locality and copy server to, change the server update time (server_update_time) again, the manual operations of renewal work just is through with, safeguard that the developer can check the more new situation of terminal by checking terminal updating time text that the server remote terminal sends, and needn't go to the renewal that application program is carried out at the scene, the remote terminal operating personnel need not the renewal that any intervention just realizes application program.
Now, describe concrete operations flow process of the present invention in detail in conjunction with Fig. 1 to Fig. 3.
Fig. 1 has represented server workflow of the present invention, it comprises the steps: beginning (step 101), application modification (step 102), update routine is copied to server (step 103), revise server update time server_update_time.txt (step 104), finish (step 105).
Fig. 2 has represented remote terminal workflow of the present invention, it comprises the steps: beginning (step 201), get computer name and server address (step 202) from setinit.txt, transmission server text update time, fill order (ftp-v-i-s:ftp_server_time.txt server name or address) (step 203), get the terminal updating time from client_update_time.txt and give rq1 (step 204), getting the server update time from server_update-time.txt judges that whether rq1 is less than rq2 (step 206) for rq2 (step 205), if rq1 is not less than rq2, then skip to step 210, if rq1 is less than rq2, transfer application then, fill order (ftp-v-i-s:ftp_server_file.txt server name or address) (step 207), get the current time and upgrade client_update_time.txt (step 208), client_update_time.txt after upgrading is changed a filename to be preserved, and be transferred to server (step 209), the terminal updating time is transferred to server, (ftp-v-I-s:ftp_client_time_n.txt server name or address (step 210) finish (step 211) fill order.
Fig. 3 has represented autoexec workflow of the present invention, it comprises the steps: beginning (step 301), server user's name (login user) (step 302), user password (entering password) (step 303), Bin (binary transmissions mode) (step 304), Lcd local directory position (step 305), cd server directory position (step 306), Mget or mput filename (step 307), Bye (withdrawing from) (step 308) finishes (step 309).
Implement the back effect:
1. when safeguarding developer's updating file, only need to copy the program after upgrading to server (this just should back up the generalized case server), the nearest modification time of update service device application program again, to save the working time of safeguarding that the developer is a large amount of compared with method with network neighbor's transfer files, manual intervention is few, and error rate is just few;
2. remote terminal foreground file does not need to share, and application program can not divulged a secret, and internet worm is difficult to invade computing machine and destroys file system;
3. program updates carries out under the situation of user's nonintervention unconsciously, reduces remote terminal operator's workload, improves user satisfaction;
4. this kind remote terminal foreground application software version simultaneous techniques belongs to current techique, can move on popular now terminal operating system such as Win3.11, Win95/98, win2000, can be other computer systems and uses for reference, and promotion prospect is widely arranged.
Claims (5)
1. remote terminal foreground application software synchronization update method, it is characterized in that, use the higher level lanquage development platform to program to judge whether the remote terminal foreground needs to carry out program updates earlier, if need then call transmission and renewal that the FTP order of DOS realizes application program between server and the remote terminal foreground;
Wherein, described method for updating program comprises:
A. set up initialization files at server and remote terminal foreground;
B. carry out and upgrade trace routine;
C. program compares nearest modification time in remote terminal foreground and the nearest modification time of server;
If D. the nearest modification time in remote terminal foreground is more Zao than the nearest modification time of server, then fill order is carried out the renewal of application program and remote terminal foreground modification time; Remote terminal foreground temporal information after the renewal is returned server.
2. remote terminal foreground application software synchronization update method as claimed in claim 1 is characterized in that the deploy content of described initialization files comprises:
On server, set up the text of preserving nearest modification time;
Set up two texts on the remote terminal foreground:
The one, deposit the configuration text file of remote terminal foreground computer name, server name or server address;
Another is a text of depositing the nearest modification time that the remote terminal foreground application upgrades;
At three batch processing texts of remote terminal foreground establishment, mainly import being connected of FTP and server, assigned catalogue, transfer files, close bind command:
A text that is used for depositing on the transmission server the nearest modification time of program;
One is used to transmit the text that needs upgrade;
A file that is used for the text that nearest modification time is deposited on the remote terminal foreground is transferred to server.
3. remote terminal foreground application software synchronization update method as claimed in claim 2, it is characterized in that, after the text of the nearest modification time of described remote terminal foreground application need upgrade, the text after this renewal is changed a filename preserve, be transferred to server.
4. remote terminal foreground application software synchronization update method as claimed in claim 1 is characterized in that, trace routine is upgraded in described execution, when be set at system boot its start-up time or in the plan target regularly or before executive utility.
5. remote terminal foreground application software synchronization update method as claimed in claim 1 is characterized in that, described development platform programs and is Visual Basic, Visual C or the establishment of PowerBuilder higher level lanquage.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 02145480 CN1238789C (en) | 2002-11-19 | 2002-11-19 | Synchronous updating method for remote terminal foreground application software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 02145480 CN1238789C (en) | 2002-11-19 | 2002-11-19 | Synchronous updating method for remote terminal foreground application software |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1501244A CN1501244A (en) | 2004-06-02 |
CN1238789C true CN1238789C (en) | 2006-01-25 |
Family
ID=34232465
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 02145480 Expired - Fee Related CN1238789C (en) | 2002-11-19 | 2002-11-19 | Synchronous updating method for remote terminal foreground application software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1238789C (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100433620C (en) * | 2004-11-09 | 2008-11-12 | 华为技术有限公司 | Method for synchronizing network server identification in smart netwrok |
CN103198375A (en) * | 2013-03-13 | 2013-07-10 | 重庆大学 | Machining workshop electronic workticket information interactive system and method based on Android platform |
CN105511914B (en) * | 2015-12-01 | 2019-05-31 | 百度在线网络技术(北京)有限公司 | Using update method, device and system |
-
2002
- 2002-11-19 CN CN 02145480 patent/CN1238789C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN1501244A (en) | 2004-06-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7890689B2 (en) | Virtual appliance management | |
CN1777867A (en) | System and method for updating files utilizing delta compression patching. | |
CN1735862A (en) | System and method for updating installation components in a networked environment | |
EP2021937B1 (en) | Techniques to perform gradual upgrades | |
US7757291B2 (en) | Malware containment by application encapsulation | |
US7287068B1 (en) | System and method for updating devices that execute an operating system or application program directly from nonvolatile storage | |
CN100351779C (en) | Soft installatign on mobile computering apparatus using configuration manager rolling back and safety characteristic | |
CN1291313C (en) | System and method for the automatic installation and configuration of an operating system | |
CN101042645A (en) | Method, equipment and system for unionize software development environment | |
CN1783082A (en) | Method and system for maintaining namespace consistency with a file system | |
CN1852101A (en) | Parallel downloading method and terminal | |
CN1668010A (en) | Tag-based schema for distributing update metadata in an update distribution system | |
US20040188511A1 (en) | System to automatically process components on a device | |
CN1957345A (en) | Device management method for device management system | |
CN1744603A (en) | Remote file update via remote protocol | |
CN101727338A (en) | Parallel upgrade method and application system for network computer | |
CN1858704A (en) | Method of upgrading sequence | |
CN1577322A (en) | Method and system for application installation and management using an application-based naming system including aliases | |
CN101056280A (en) | An upgrade management method and system for instant message client | |
CN101059799A (en) | Method for introducing regular file into data base | |
CN1581077A (en) | Method for device for improving computer furction for accessing internet | |
CN1845119A (en) | Storage and management of authentication information and method and system for proxy authentication | |
CN1549130A (en) | Method of document synchronization | |
CN1859180A (en) | Method and system for realizing network terminal equipment configuration automatic updating | |
CN1238789C (en) | Synchronous updating method for remote terminal foreground application software |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20060125 Termination date: 20131119 |