
gzdzw.51.net ·¢²¼ÓÚ2007-11-21 13:26:00 |
ÏêϸÄÚÈÝ( 70´ÎÔĶÁ)

ÏÂÃæÊÇÒ»¶Î·Ç³£¼òµ¥µ«ÓÖºÜʵÓõÄÈÕÀúCGI³ÌÐò£¬´Ë³ÌÐòÔںܶàÍøÕ¾É϶¼ÔÚʹÓá£Í¨¹ý¸Ã³ÌÐòÎÒÃǿɶÔCGI³ÌÐòÓÐÒ»¸ö½øÒ»²½µÄÈÏʶ£¬¶ÔCGI³ÌÐòµÄÈëÃÅÕߺÜÓаïÖú¡£³ÌÐòÈçÏ£º
#!/usr/bin/perl #ÕâÊÇCGI½âÊͳÌÐòµÄλÖÃ
($sec,$min,$hour,$day,$mon,$year,$wan)=localtime(time);#¶Áϵͳʱ¼ä²¢½«Ã븳ֵ¸ø±äÁ¿$sec;½«·Ö¸³Öµ¸ø±äÁ¿$min
#½«Ê±¸³Öµ¸ø±äÁ¿$hour;½«ÈÕ¸³Öµ¸ø±äÁ¿$day;½«Ô¸³Öµ¸ø±äÁ¿$mon;½«Ä긳ֵ¸ø±äÁ¿$...
more

gzdzw.51.net ·¢²¼ÓÚ2007-11-21 13:26:00 |
ÏêϸÄÚÈÝ( 61´ÎÔĶÁ)

ÔÚÏßÈËÊýͳ¼ÆCGI³ÌÐòÊǺܶàÍøÕ¾¶¼ÔÚʹÓõijÌÐò£¬´Ë³ÌÐò²¢²»¸´ÔÓ£¬ÔÚÕâÀïÎÒÒÔÖðÐнâÊ͵ķ½Ê½À´½âÆÊ´Ë³ÌÐò£¬Ï£Íû¶Ô³õѧCGI±à³ÌµÄÅóÓÑÓÐËù°ïÖú¡£
#!/usr/bin/perl #perl½âÊÍÆ÷·¾¶
$path= "."; #ĬÈϵ±Ç°Ö÷»úµÄ¾ø¶Ô·¾¶
$overtime= 3000;#Ë¢ÐÂʱ¼ä,
µ¥Î»Ã룬Ҳ¾ÍÊÇ˵ĬÈÏÓû§½«ÔÚÄúµÄÍøÕ¾ÉÏÍ£Áô...
more

˼ά ·¢²¼ÓÚ2007-11-21 13:26:00 |
ÏêϸÄÚÈÝ( 58´ÎÔĶÁ)

sub search{
$l=0;
$show=15;#É趨ÿҳÏÔʾÊý¾ÝµÄÐÐÊý¡£
open (output,"sj.txt");#´ò¿ªÊý¾ÝÎļþsj.txt
@count=;
close(output);
$w=@count;#µÃµ½sj.txtÎļþÖеÄÊý¾ÝÐÅÏ¢×ÜÊý$w.
if ($page eq ""){ $min=1; $max=$show; $page=1; }#É趨Ê×Ò³µÄ³õʼֵ:$pageΪҳÊý,$minΪÊý¾ÝÎļþÖеĵÚÒ»ÐÐÊý¾ÝÐÅÏ¢£¬$maxΪ¸ÃÒ³×îĩһÐÐÏÔʾµÄÊý¾ÝÎļþÖеÄÊý¾ÝÐÅÏ¢ÐС£
if ($page ne ""){ $min=(($page-1)*$show)+1; $max=$page*$show; }#¸÷·ÖÒ³...
more

˼ά ·¢²¼ÓÚ2007-11-21 13:26:00 |
ÏêϸÄÚÈÝ( 58´ÎÔĶÁ)

¹¬Ãô ·¢²¼ÓÚ2007-11-21 13:26:00 |
ÏêϸÄÚÈÝ( 91´ÎÔĶÁ)

A=`find ~ -print` | ls -l --full-time $A 2>/dev/null | grep "Jun 27" | grep 1998
LinuxµÄÃüÁîºÜÀ÷º¦µÄѽ£¡
¸øÄãдÁËÏÂÃæÕâ¸öscript£¬ÓÃ×Å·½±ãµã¶ù¡£Äã°ÑËü´æ³ÉÒ»¸öËæ±ãʲôÃû×ÖµÄÎļþ,ÖÃÉÏxÊôÐÔ¾ÍÐÐÁË¡£
#!/bin/sh
# Copyright by Ming Gong(¹¬Ãô) for&n...
more

¹¬Ãô ·¢²¼ÓÚ2007-11-21 13:26:00 |
ÏêϸÄÚÈÝ( 70´ÎÔĶÁ)

file=`date ¡¯+%m%d¡¯` | touch todayis.$file
»òÕß×öÒ»¸öshell½Å±¾£º
#!/usr/bin/sh
file=`date ¡¯+%M%d¡¯`
touch todayis.$file
exit 0
×¢ÒⶨÒåfile±äÁ¿Öеġ°`¡±²»ÊÇ¡° ¡¯¡±£¬¶øÊ...
more

os.silversand.net ·¢²¼ÓÚ2007-11-21 13:26:00 |
ÏêϸÄÚÈÝ( 51´ÎÔĶÁ)

¡¡¡¡/*
¡¡¡¡* ¡¯sched.c¡¯ is the main kernel file. It contains scheduling primitives
¡¡¡¡* (sleep_on, wakeup, schedule etc) as well as a number of simple system
¡¡¡¡* call functions (type getpid(), which just extracts a field from
¡¡¡¡* current-task
¡¡¡¡*/
¡¡¡¡#include
¡¡¡¡#include
¡¡¡¡#include
¡¡¡¡#include
¡¡¡¡#include ...
more

os.silversand.net ·¢²¼ÓÚ2007-11-21 13:26:00 |
ÏêϸÄÚÈÝ( 59´ÎÔĶÁ)

¡¡¡¡#define __LIBRARY__
¡¡¡¡#include
¡¡¡¡#include
¡¡¡¡/*
¡¡¡¡* we need this inline - forking from kernel space will result
¡¡¡¡* in NO COPY ON WRITE (!!!), until an execve is executed. This
¡¡¡¡* is no problem, but for the stack. This is handled by not letting
¡¡¡¡* main() use the stack at all after fork(). Thus, no function
¡¡¡¡* calls - which me...
more

os.silversand.net ·¢²¼ÓÚ2007-11-21 13:26:00 |
ÏêϸÄÚÈÝ( 51´ÎÔĶÁ)

¡¡¡¡boot.s
¡¡¡¡|
¡¡¡¡| boot.s is loaded at 0x7c00 by the bios-startup routines, and moves itself
¡¡¡¡| out of the way to address 0x90000, and jumps there.
¡¡¡¡|
¡¡¡¡| It then loads the system at 0x10000, using BIOS interrupts. Thereafter
¡¡¡¡| it disables all interrupts, moves the system down to 0x0000, changes
¡¡¡¡| to protected mode, and calls the start of s...
more

os.silversand.net ·¢²¼ÓÚ2007-11-21 13:26:00 |
ÏêϸÄÚÈÝ( 46´ÎÔĶÁ)

¡¡¡¡/*
¡¡¡¡* head.s contains the 32-bit startup code.
¡¡¡¡*
¡¡¡¡* NOTE!!! Startup happens at absolute address 0x00000000, which is also where
¡¡¡¡* the page directory will exist. The startup code will be overwritten by
¡¡¡¡* the page directory.
¡¡¡¡*/
¡¡¡¡.text
¡¡¡¡.globl _idt,_gdt,_pg_dir
¡¡¡¡_pg_dir:
¡¡¡¡startup_32:
...
more