145
99

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

なんかしてるっぽい出力をするスクリプト

Last updated at Posted at 2017-04-18

仕事に疲れてぼーっとしたいけどサボってるって思われたくないときに、作業中かな?と思われるようなスクリプトを書きました。
必要なときにカスタマイズなどして使ってください。

すでにお使いのものがありましたら教えてください。

追記:なんかインストールしてるっぽいスクリプトも作りました。

Linux版

ProcessSomething.sh
#!/bin/bash
i=0
while :
do
    i=`expr $i + 1`
    echo "Now Processing... line :${i}"
    sleepTime=`expr $RANDOM % 3`
    sleep "${sleepTime}s"
done

Windows版

ProcessSomething.ps1
$i = 0
while($True){
    $i++
    Write-Host "Now Processing... "$i"行目まで処理しました。"
    Start-Sleep -m (Get-Random 1000)
}
145
99
7

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
145
99

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?