タグ

2010年12月9日のブックマーク (2件)

  • Bashのおぼえがき

    #!/bin/bash if [ -a ./result.dat ] then mv ./result.dat ./result.dat-org fi if [ -d ./data ] then echo " directory data is found. " else mkdir ./data fi if [ ! -s ./result.dat ] then rm ./result.dat fi 1項演算子は他にもたくさんありますが、自分で主に使ってるのはこの3つです。 if文については次項を参照 1つ目のif文:カレントディレクトリにresult.datというファイルが存在するかをチェックして存在すれば、result.dat-orgにrenameする。 あるプログラムの出力がresult.datという名前であり出力先に同じファイル名のものが存在した場合、

    H58
    H58 2010/12/09
  • Man page of ipmitool

    ipmitool(1) manpage By Duncan Laurie <duncan@iceblink.org> Last updated Sat Apr 30 22:38:45 MST 2005 NAME ipmitool - utility for controlling IPMI-enabled devices SYNOPSIS ipmitool [-c|-h|-v|-V] -I open <command> ipmitool [-c|-h|-v|-V] -I lan -H <hostname> [-p <port>] [-U <username>] [-A <authtype>] [-L <privlvl>] [-a|-E|-P|-f <password>] [-o <oemtype>] <command> ipmitool [-c|-h|-v|-V] -I lanplus

    H58
    H58 2010/12/09
    ipmitool