ÎÒÊÇwindows Xpϵͳ£¬ÎÒͨ¹ý´úÂëʵÏÖÁ¬½Óµ½ÁËһ̨Linuxϵͳ£¬ÓÃtelnetʵÏֵġ£¡£¡£
ÏÖÔÚ£¬ÎÒÏë°Ñ±¾µØwindowsµÄÒ»¸öÎļþ Èç*.bat»òÕßÆäËûÎļþ±£´æÔÚLinuxϵͳÏ£¨ÎļþλÖÃ×Ô¶¨ÒåÈÎÒâλÖã©
ͨ¹ýtelnetÈçºÎʵÏÖ¡£¡£¡£¡£¡£¡£
´úÂëºÍÔÚLinuxϵͳϲÙ×÷µÄÒ»Ñù£¬Ï£Íû¸÷λ¸æËßÎÒ£¬¾ÍÊÇwindowsÔ¶³ÌtelnetµÇ½Linuxϵͳ ......
<?
$myDB=odbc_connect("Dogs","","");
$query="select name,weight from dog_list";
$result=odbc_do($myDB,$query);
while(odbc_fetch_row($result)){
print odbc_result($result,"name");
& ......
×î½üÏîÄ¿ÐèÒªÔÚredhat el4ÏÂͨ¹ýjava¶ÁÈ¡accessÊý¾Ý,ÓÉÓÚÒµÎñÔÒò,Ö»ÄÜÓÃaccessÊý¾Ý¿â.ÔÚÍøÉÏÕÒÁËһЩ·½·¨,µ«¶¼Ê§°Ü.
ÇëÎÊÓÐûÓÐ×ö¹ýÕâ·½ÃæµÄ¸ßÊÖ¸ø¸ö½â¾ö°ì·¨,»òÓгɹ¦µÄ°²×°¹ý³ÌÒ²¿É
ÒÑ°²×°¹ýunixodbc,mdbtools,mdbtools-odbc
ÎҵĴúÂëÒ»Ö±Ö´ÐÐʧ°Ü,ÊÇ·ñ´úÂëÓÐÎÊÌâ:
************************* ......
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
void get_cal(const char *arg)
{
char cmd[64];
strcpy(cmd, arg);
......
±¾ÈËдһ¸ölinuxÎļþ´«Êä·þÎñÆ÷£¬¿Í»§¶ËÁ¬½Ólinux·þÎñÆ÷·¢ËÍÎļþ¡£¿Í»§¶ËÊDzÉÓöϿªÖØÁ¬»úÖÆ¡£
ÎÊÌâÈçÏ£º
·þÎñÆ÷£º
@ acceptÁ¬½Óºó ´´½¨Ï߳̿ªÊ¼½ÓÊÜÎļþ
Èç¹û´ËʱÍøÂç¶Ï¿ªÁË£¬µ«ÊÇ·þÎñÆ÷recvº¯Êýһʱ»¹Ã»Óмì²âµ½¶Ï¿ª£¬¶ø´Ëʱ¿Í»§»úÏȼì²âµ½¶Ï¿ªÁË ²¢ÇÒÖ´ÐжϿªÖØÁ¬¼ÌÐø·¢ËÍÕâ¸öÎļþ¡ ......
Çó½Ì
±ÈÈçÎÒ×Ô¼ºÐ´ÁËÒ»¸öеÄcal º¯Êý È»ºógcc ºóÉú³Écal ¿ÉÖ´ÐÐÎļþ£¬µ«ÊÇÔÚ/usr/bin Ŀ¼ÖÐÔ±¾¾Í´æÔÚcal µÄ¿ÉÖ´ÐÐÎļþ£¬ÎÒÈç¹ûÏëÓÃÎÒ×Ô¼ºÐ´µÄcalÌæ´úϵͳ
×Ô´øµÄcal ÎÒÓ¦¸ÃÈçºÎ×öÄØ£¿£¬Ã²ËÆÒªÐÞ¸ÄSHELL µÄ¾ø¶Ô·¾¶£¬Çó½Ì¾ßÌåÓ¦¸ÃÈçºÎ×ö£¿
sf
ÄãÏëÓÃ×Ô¶¨Ò庯Êýreplaceϵͳº¯Êý
Éú³ÉÎļþʱÈç¹ûÄã×Ô´øĿ¼ ......