windowsץȡlinuxÉÏsqlite db問題
´ó¼ÒºÃ, ÉÏÀñ°ÝÓÐÀ´ÎÊ˵ÈçºÎ´ÓlinuxÉÏ·ÖÏí³ösqliteµÄdbÊý¾ÝÈÃwindows²Ù×÷, ºóÀ´Ò»Ö±ÎÞ·¨Ö±½Ó͸¹ýip·½Ê½Äõ½µµ°¸, Ïë˵¸ÄÓÃftp·½Ê½¶ÁµµÐ´Èëºó, ÔÙÉÏ´«»Ølinux server, ÏÖÔÚÓиöÎÊÌâµ±win pc¿ªÆôdbµµ°¸ºó, ºÃÏñ»áËøסËü, µ¼ÖÂÔÙÒ»´ÎÅܲâÊÔ³ÌÐòʱ, ÒòΪ»¹ÔÚ´æÈ¡µÄ¹Øϵ, dbµµ°¸ÎÞ·¨ÖØÐÂÏÂÔØ, µ¥¶Àrun batÎļþ»áÏÔʾʹÓÃȨÏÞ±»¾Ü, ÎÞ·¨¸²Ð´dbµµ°¸, ²»ÖªµÀÕâÊÇʲôÎÊÌâ?
<%
Dim objExecutor
Dim sResult
Set objExecutor = Server.CreateObject("ASPExec.Execute")
objExecutor.Application = "cmd.exe"
objExecutor.Parameters = "/c c:\Inetpub\wwwroot\ftp\test.bat" 'hope your batch file is in c drive.
objExecutor.ShowWindow = False
'Here we execute the app and get the output to this string
sResult = objExecutor.ExecuteWinApp
Response.write "Result: " & sResult & " <p>"
'ÏÈÓÃftp°Ñ檔°¸download»Ø來, ÔÙ開啟db資ÁÏ
Set conn = Server.createObject("ADODB.Connection") '½¨Á¢Ò»個連線
Set rs = Server.createObject("ADODB.RecordSet") '½¨Á¢Ò»個recordset
conn.open "DRIVER={SQLite3 ODBC Driver};Database=C:\Inetpub\wwwroot\ftp\mydb.db"
'conn.open "DRIVER={SQLite3 ODBC Driver};Database=\\192.168.122.4\test\mydb.db" 'Ô±¾ÒªÓõķ½Ê½, ¿ÉÊÇÒ»Ö±無·¨³É¹¦
rs.open "select * from enum",conn,1,3
Ïà¹ØÎÊ´ð£º
ÓÉÓÚÎҲŸոսӴ¥socket±à³Ì£¬×Ô¼ºÐ´ÁËÒ»¸ö¼òµ¥³ÌÐò£¬µ«¾ÍÊÇÔÚÔËÐеÄʱºò³öÏֶδíÎó£¬ÎÞ·¨½â¾ö£¬ÏÖÔÚÎÒ°ÑÔ´´úÂëÌù³öÀ´£¬Çë¸÷λ´óϺָÕýһϣ¡Ð»Ð»£¡
#include<stdio.h>
#include<stdlib.h>
#include& ......
´úÂëÌ«¶à£¬²»ºÃÌù£¬
´óÖÂÉæ¼°µ½ÕâЩ£º
char *arg[MAXSIZE];
char *buffer[MAXSIZE];
.........
arg[k]=(char*)malloc(sizeof(char)*j);
strcpy(arg[k],buffer);
.................[color=#993300][/color]
µ ......
ÈçÌ⣬ÔÚWINDOWSµ×ϵÄCODE»á£¬µ«ÔÚLINUXϲ»ÖªµÀÈçºÎʵÏÖ£¬JSµÄ´úÂëÓ¦¸ÃÊDz»Ò»ÑùµÄ¡£ Çó½Ì¡£
·Ö²»¹»ÔÙ¼Ó¡£
http://topic.csdn.net/u/20100113/08/17ba1e71-4c33-43f6-91a5-0e031c86e5ed.html
linux ......
Çë´ó¼ÒÍƼöÒ»±¾¹úÄÚ×÷ÕßдµÄlinux±à³Ì·½ÃæµÄÊ飬×îºÃÓд®¿Ú±à³Ì·½ÃæµÄ¡£
ÔÚchina£pubÉÏËÑÁËËÑ£¬Ò²Ã»·¢ÏÖÏà¹ØµÄÊé¼®¡£
¹úÄÚ×÷Õß,»¹ÕæÉÙ¼û!
googleÉÏÈ¥ËÑ°É Â¥Ö÷ ×Ô¼º¶àËÑһЩ¶Ô±ÈÒ»ÏÂ
²»¹ý»¹ÊÇÍƼö¶Á¹úÍâµÄ ......
½«ËùÒª·¢Ë͵Ätcp°ü·ÅÔÚ·¢ËͶÓÁÐÖУ¬Èç¹ûÔÚ15ÃëÄÚûÊÕµ½ACK£¬¾ÍÖØ·¢£¬ÏëÇëÎÊ´ó¼Ò£¬ÕâÑùÊDz»ÊÇÒª¶Ôÿ¸öTCP°ü¼Ó¶¨Ê±Æ÷°¢£¬³ýÁËÓÃalarm,»¹ÄÜÓÃʲôÁË£¿
Äã¸ãÓ¦ÓõĻ°²»ÐèÒª¹ØÐÄtcpÐÒéÕ»ÊÇÔõô´¦ÀíµÄ°¡
tcpÐÒéÕ»ÓÐÖØ· ......