タグ

shellに関するOKIIZOのブックマーク (19)

  • Linuxのシェルスクリプト変数の記号あれこれ - 気まぐれな備忘録(仮)


      使 $():()=()    $NAME NAME $1, $2, , $9 129 ${10}, ${11},  1011  $0  $#  $@  $* IFSIFS $?  $$ ID $! 
    Linuxのシェルスクリプト変数の記号あれこれ - 気まぐれな備忘録(仮)
    OKIIZO
    OKIIZO 2012/06/25
  • Bash: Error handling - FVue

    Problem I want to catch errors in bash script using set -e (or set -o errexit or trap ERR). What are best practices? To -e or not to to -e? Opinions differ about whether it's wise to use set -e, because of its seemingly non-intuitive problems... In favour of -e: Use set -e - Writing Robust Bash Shell Scripts - David Pashley Doubtful about -e: Why doesn't set -e (or set -o errexit, or trap ERR) do

    OKIIZO
    OKIIZO 2012/06/05
  • Error handling in Bash

    What is your favorite method to handle errors in Bash? The best example of handling errors I have found on the web was written by William Shotts, Jr at http://www.linuxcommand.org. He suggests using the following function for error handling in Bash: #!/bin/bash # A slicker error handling routine # I put a variable in my scripts named PROGNAME which # holds the name of the program being run. You ca

    Error handling in Bash
    OKIIZO
    OKIIZO 2012/06/05
    bashのエラーハンドリングについて
  • ncコマンドとbashの/dev/tcpで通信 - suztomoのはてなダイアリー


    netcatbash/dev/tcp使Reverse Shell with Bash bashtcp/dev/tcp/host/port 使 nc(netcat)-llisten mode.tcp8080*1 bash5/dev/tcp/[]/[]*2  
    ncコマンドとbashの/dev/tcpで通信 - suztomoのはてなダイアリー
    OKIIZO
    OKIIZO 2012/05/29
  • Ubuntu Manpage: flock - Manage locks from shell scripts

    OKIIZO
    OKIIZO 2012/04/24
    排他ロックをかけられるコマンド
  • BSD Administration Scripts

  • シェルスクリプトに関する覚え書き


    csh使 Bourn(sh)csh 便    2>&-   $< 使 Bournread   cshBourncsh    ;  & ( ) | ^ < > ? * [ ] $ ` " ' { } [TAB] [SP
    OKIIZO
    OKIIZO 2011/01/19
  • 無学浅識: MinTTY


    2009/02/02 MinTTY3CygwinTera Term使CygwinMinTTYrxvt使MinTTYPuTTYPuTTYPortableApps.comPortable使 C:\cygwin\etc\passwd(/etc/passwd)zsh使 /bin/bash -> /bin/zsh  C:\cygwin\bin\mintty.exe - CygwinchereMinTTY $ chere -i
    OKIIZO
    OKIIZO 2010/10/18
  • Tera Termマクロ活用入門(1):各種ログインを自動化する | OSDN Magazine

    Windows向けのターミナルエミュレータ「Tera Term」(テラターム)には強力なマクロ機能が搭載されており、これを利用することでネットワーク経由でマシンを自動操作したり、管理情報を取得する、といったことが可能だ。記事ではいくつかのサンプルとともにTera Termマクロの基的な使い方を紹介する。 Tera TermおよびTera Termマクロの基 Tera Termのマクロ機能を紹介する前に、簡単にTera Termについて紹介をしておこう。Tera Termはオープンソースで開発されているWindows向けのターミナルエミュレータ(端末エミュレータ)だ。かつてはTelnetクライアントやCOMポート経由でのシリアル接続機能を備えた無償のターミナルエミュレータとして有名だったが、1998年にいったん開発が中断された後にオープンソース化され、現在ではSSHクライアント機能やC

    Tera Termマクロ活用入門(1):各種ログインを自動化する | OSDN Magazine
    OKIIZO
    OKIIZO 2010/01/11
  • 簡単なキュー登録による複数タスクのバッチ処理を可能にするTask Spooler | OSDN Magazine


    Task Spooler使 Task SpooleratTask SpooleratatTask SpoolerTask Spooler
    簡単なキュー登録による複数タスクのバッチ処理を可能にするTask Spooler | OSDN Magazine
  • [ZshWiki]

    Zsh is a command-line interpreter for the shell programming language. It includes features like completion, context-sensitive help, and directory management. Zsh also supports customization through themes and plugins. The Zsh framework can be used to develop LGBT inclusion initiatives. It provides a structure and guidance on how to implement these initiatives effectively. The framework can be tail

    OKIIZO
    OKIIZO 2009/09/08
    Zshまとめwiki
  • 第3回 zsh使いこなしポイント即効編 | gihyo.jp

    zshを使い始めて最初に気になる点のうち、すぐに設定してすぐに効果を実感できる即効薬的なものを今回は紹介しよう。 プロンプト これまでとは違うシェルを起動してまず目にするのがプロンプトで、これが変わるとちょっとした違和感がある。この違和感は結構大切でスーパーユーザに切り替えたり、あまり設定していないマシンを触っていたりということが実感できるので慎重に作業を進めるきっかけに利用できる。 zshに乗り換えたときもそうした違和感を感じ、それまでのシェルと似たものにしたくなるかもしれないが、ちょっとした違和感を保ってこれまでとは違う機能をたくさん利用するのだ、という心構えにしたらどうだろうか。心構えはともかくとして、プロンプト出力にもzshの細やかな配慮があるので、それを活かさないのは損である。 その機能をフルに活かしている、とまでは行かないが、筆者の ~/.zshrc のプロンプト設定部分は概ね

    第3回 zsh使いこなしポイント即効編 | gihyo.jp
  • Ubuntu System Admin Class: Command Line Basics « DoctorMO’s Blag

    I’m reporting all the materials for the class that I taught this evening to seven students at the south end technology center. This section is for learning basic command line theory and practical and don’t forget, everything is alpha and I expect people to edit the sources and help fixing problems wiki style: Lesson Plan for teachers Presentation Slides Overview Sheet Practical Sheet Cheat Sheet T

  • E-Book: Mastering Powershell by Dr. Tobias Weltner

  • Copy files over network using compression Using sudo, tar

    OKIIZO
    OKIIZO 2009/03/28
  • Measures download speed on eth0 Using awk, cut, echo, grep, ifconfig, sleep

    Pug Puppies for Sale Near Me pugs puppies for sale teacup pugs for sale pug puppies for sale by owner pug puppies ohio PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas pug puppies for sale $200 pugs for sale near me under $500 pugs for sale under $400 near me pugs for sale near me puppies for sale

    OKIIZO
    OKIIZO 2009/03/28
  • test your process limits

    OKIIZO
    OKIIZO 2009/03/28
  • All commands

    Other solutions that involve doing du -sx /* are incomplete because they will still descend other top-level filesystems are that mounted directly at "/" because the * expands to explicitly include all files and directories in "/", and du will still traverse them even with -x because you asked it to by supplying the directory name as a parameter (indirectly via "*"). Show Sample Output 4.0K /mnt 4.

    OKIIZO
    OKIIZO 2009/02/18
  • PuTTY Connection Manager

    PuTTY Connection Manager is a windows PuTTY tool to manage multiple PuTTY instances using tabs in a single windowPuTTY Connection Manager Looking for a tabbed version of famous PuTTY? PuTTY Connection Manager is a free PuTTY Client Add-on for Windows platforms which goal is to provide a solution for managing multiple PuTTY instances. This is one of the most important missing feature of PuTTY (ref

    OKIIZO
    OKIIZO 2008/12/15
  • 1