Notes: January 2007 Archives

BASH socket IO

| | Comments (0)

BASH 可以藉由存取
/dev/tcp/host/port
/dev/udp/host/port
來作簡單的 socket IO
看實例:
bashget.sh 使用 /dev/tcp/host/80 抓 http:// 檔案, 類似 wget 簡易版
bashmail.sh 使用 /dev/tcp/host/25 發 mail
ref.
Unixjunkie Blog: Two Cool Bash Tricks
Bash tricks | bhaskarvk.info

Batch create users

| | Comments (0)

useradd -p`echo 1234 | openssl passwd -stdin` test
(create user test with password 1111 using default crypt algorithm)
useradd -p`echo 1234 | openssl passwd -1 -stdin` test
(create user test with password 1111 using MD5 algorithm)

Pages

March 2008

Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          

About this Archive

This page is a archive of entries in the Notes category from January 2007.

Notes: December 2006 is the previous archive.

Notes: February 2007 is the next archive.

Find recent content on the main index or look in the archives to find all content.