「shell入門」PIDを取得するサンプル
サンプルコード:
#!/bin/bash
echo “PID of this script: $$”
echo “PPID of this script: $PPID ...
「Linux入門」execコマンドを利用するサンプル
サンプル
#!/bin/bash
#file_desc
exec 3<&0 0<name.txt
read line1
read line2
exec 0< ...
Coding Changes the World
サンプルコード:
#!/bin/bash
echo “PID of this script: $$”
echo “PPID of this script: $PPID ...
サンプル
#!/bin/bash
#file_desc
exec 3<&0 0<name.txt
read line1
read line2
exec 0< ...