linux shell ½Å±¾ µ÷ÓÃÊý¾Ý¿â
×î½üÒ»Ö±ÔÚæÏîÄ¿£¬×öµÄ¹ý³ÌÖÐÓöµ½Ò»¸öºÜ¾À½áµÄÊÂÇé¡£ÐèÒªÓÃshell½Å±¾ÂÖѵÊý¾Ý¿â£¬Êý¾ÝÖ´ÐÐÍê±ÏÒÔºó²ÅÄܵ÷ÓÃÆäËûµÄshell½Å±¾¡£ÔÚÕâÀï×ܽáһϣ¬Óë´ó¼Ò¹²Ïí¡£
½Å±¾ÈçÏ£º
shell ½Å±¾ÈçÏ£º
#!/bin/sh
SQL_DIR=/home/tang/tek/sql/tek
SHELL_DIR=/home/tang/tek/sh/tek
LOG_DIR=/home/tang/tek/logs
. /home/tang/.bash_profile
#$SHELL_DIR/runsql.sh /home/tang/tek/sh/tek/test.sql > test.txt
log_check=1
checkCount=0
while [[ $log_check -ne 0 ]]; do
newlog_check=`sqlplus -s/nolog Óû§Ãû/ÃÜÂë@Sid<<-EOF
set heading off feedback off pages 0
select count(*)
from tek.admin_user sn
where sn.name is null
exit
EOF`
log_check=$newlog_check
echo "log check value is:" $log_check
let checkCount=$checkCount+1
if [ $checkCount -gt 2 ]; then
sqlplus -s/nolog Óû§Ãû/ÃÜÂë@Sid<<-EOF
update tek.user_info bm set bm.name=0 where bm.name='tangpengtao';
commit;
exit
EOF
let checkCount=0
fi
echo $checkCount
#ÐÝÃß3Ãë¡£ÔÙÂÖѵ
sleep 3
done
. $SHELL_DIR/tpt.sh
linuxÏ°²×°Ò»¸ö¿Í»§¶Ë¡£²½ÖèÈçÏ£º
1.´´½¨Óû§
#groupadd dba
#useradd -d /usr/local/oracle -g dba oracle
#passwd oracle
2.½âѹÈí¼þ
#gunzip ship_9204_linux_disk1.cpio.gz
#gunzip ship_9204_linux_disk2.cpio.gz
#gunzip ship_9204_linux_disk3.cpio.gz
#cpio -idvm < ship_9204_linux_disk1.cpio
#cpio -idvm < ship_9204_linux_disk2.cpio
#cpio -idvm < ship_9204_linux_disk3.cpio
#cp -rf Disk1 /usr/local/oracle
#cp -rf Disk2 /usr/local/oracle
#cp -rf Disk3 /usr/local/oracle
3.´ò²¹¶¡
#unzip p3006854_9204_LINUX.zip
#cp -rf 3006854 /usr/local/oracle
#sh /usr/local/oracle/3006854/rhel3_pre_install.sh
4.ÅäÖÃoracleÓû§»·¾³±äÁ¿
$vi .bash_profileÄÚÈÝÈçÏ£º
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/
Ïà¹ØÎĵµ£º
ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......
sock_rawÔʼÌ×½Ó×Ö±à³Ì¿ÉÒÔ½ÓÊÕµ½±¾»úÍø¿¨ÉϵÄÊý¾ÝÖ¡»òÕßÊý¾Ý°ü,¶ÔÓë¼àÌýÍøÂçµÄÁ÷Á¿ºÍ·ÖÎöÊǺÜÓÐ×÷ÓõÄ.Ò»¹²¿ÉÒÔÓÐ3ÖÖ·½Ê½´´½¨ÕâÖÖsocket
1.socket(AF_INET, SOCK_RAW, IPPROTO_TCP|IPPROTO_UDP|IPPROTO_ICMP)·¢ËͽÓÊÕipÊý¾Ý°ü
2.socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP|ETH_P_ARP|ETH_P_ALL))·¢ËͽÓÊÕÒÔÌ« ......
zipÊǸöʹÓù㷺µÄѹËõ³ÌÐò£¬Îļþ¾ËüѹËõºó»áÁíÍâ²úÉú¾ßÓД.zip”À©Õ¹ÃûµÄѹËõÎļþ¡£
linux zip ÃüÁîÏê½â
¹¦ÄÜ˵Ã÷£ºÑ¹ËõÎļþ¡£
Óï·¨£ºzip [-AcdDfFghjJKlLmoqrSTuvVwXyz$][-b <¹¤×÷Ŀ¼>][-ll][-n <×Öβ×Ö·û´®>][-t <ÈÕÆÚʱ¼ä>][-<ѹËõЧÂÊ>][ѹËõÉú³ÉÎļþ][Ô´Îļþ][-i <·¶±¾ ......
4)º¯Êý
Èç¹ûÄúдÁËһЩÉÔ΢¸´ÔÓһЩµÄ³ÌÐò£¬Äú¾Í»á·¢ÏÖÔÚ³ÌÐòÖпÉÄÜÔÚ¼¸¸öµØ·½Ê¹ÓÃÁËÏàͬµÄ´úÂ룬²¢ÇÒÄúÒ²»á·¢ÏÖ£¬Èç¹ûÎÒÃÇʹÓÃÁ˺¯Êý£¬»á·½±ãºÜ¶à¡£Ò»¸öº¯ÊýÊÇÕâ¸öÑù×ӵģº
functionname()
{
# inside the body $1 is the first argument given to the function
# $2 the second ...
body
}
ÄúÐèÒªÔÚÿ¸ö³ÌÐ ......