aboutsummaryrefslogtreecommitdiffstats
path: root/bash_include
diff options
context:
space:
mode:
authorLAN-TW <lantw44@gmail.com>2012-02-15 23:49:16 +0800
committerLAN-TW <lantw44@gmail.com>2012-02-15 23:49:16 +0800
commit5832fe44203ccf0cc00134fa9c2e7834260d1861 (patch)
treebf33c65461c8f62b1302216281334c2cbc9abe1c /bash_include
parent1e0f0f8921c43a081b0b063ee10f1e5159b50148 (diff)
downloadconfigfile-5832fe44203ccf0cc00134fa9c2e7834260d1861.tar
configfile-5832fe44203ccf0cc00134fa9c2e7834260d1861.tar.gz
configfile-5832fe44203ccf0cc00134fa9c2e7834260d1861.tar.bz2
configfile-5832fe44203ccf0cc00134fa9c2e7834260d1861.tar.lz
configfile-5832fe44203ccf0cc00134fa9c2e7834260d1861.tar.xz
configfile-5832fe44203ccf0cc00134fa9c2e7834260d1861.tar.zst
configfile-5832fe44203ccf0cc00134fa9c2e7834260d1861.zip
bash_include: 背景執行清單標題bash_include-20120215
Diffstat (limited to 'bash_include')
-rw-r--r--bash_include8
1 files changed, 2 insertions, 6 deletions
diff --git a/bash_include b/bash_include
index ebf0c15..45ea26b 100644
--- a/bash_include
+++ b/bash_include
@@ -174,12 +174,6 @@ function bglist ()
{
local viewtime=0
[ "$1" = "--full" ] && viewtime=1
- if [ "$viewtime" = "1" ]
- then
- echo " INDEX TIME PID COMMAND"
- else
- echo " INDEX PID COMMAND"
- fi
{
for i in `find "$bgrunfiledir" -maxdepth 1 -mindepth 1 | sort`
do
@@ -195,6 +189,7 @@ function bglist ()
} | {
if [ "$viewtime" = "1" ]
then
+ echo " INDEX TIME PID COMMAND"
local readstat=0
local -i i=1
while true
@@ -225,6 +220,7 @@ function bglist ()
i=$i+1
done
else
+ echo " INDEX PID COMMAND"
cat -n
fi
} | $PAGER