Skip to content

=$
|

  • Why upgrade PG?
  • explain.D.C
  • paste.D.C
  • Waiting for …
    • … PostgreSQL 16
    • … PostgreSQL 15
    • … PostgreSQL 14
    • … PostgreSQL 13
    • … PostgreSQL 12
    • … PostgreSQL 11
    • … PostgreSQL 10
    • … PostgreSQL 9.6
    • … PostgreSQL 9.5
    • … PostgreSQL 9.4
    • … PostgreSQL 9.3
    • … PostgreSQL 9.2
    • … PostgreSQL 9.1
    • … PostgreSQL 9.0
    • … PostgreSQL 8.5
    • … PostgreSQL 8.4
  • Projects
  • Contact

Tag: run_every

Run a command every “x seconds”

Relatively often I have to run some command every n seconds, to see what is happening.

To do this I generally resort to writing simple one liner in shell:

=$ while true; do some command; sleep 5; done

But it gets tedious. So I fixed it, by writing run_every.

Continue reading Run a command every “x seconds"

Posted on 2022-11-22|Tags announce, bash, cli, run_every, shell_utils|3 Comments on Run a command every “x seconds”

Search

Follow me

  • Comments RSS
  • Posts RSS

Popular Posts

  • System roles – what, why, how? 858 views | 2 comments
  • Explaining the unexplainable – part 3 210 views | 0 comments
  • CHAR(x) vs. VARCHAR(x) vs. VARCHAR vs. TEXT – UPDATED 2010-03-03 200 views | 0 comments
  • Explaining the unexplainable – part 2 181 views | 0 comments
  • “ERROR: operator does not exist: integer = text” how to fix it? 149 views | 0 comments
  • Waiting for PostgreSQL 11 – Fast ALTER TABLE ADD COLUMN with a non-NULL default 136 views | 0 comments
  • how to insert data to database – as fast as possible 123 views | 0 comments
  • Understanding pg_stat_activity 110 views | 0 comments
  • How much RAM is PostgreSQL using? 94 views | 0 comments
  • How to run short ALTER TABLE without long locking concurrent queries 86 views | 0 comments

PostgreSQL

  • Documentation
  • Explain Analyze analyzer
  • IRC help channel
  • Mailing Lists search
  • PG Planet
  • PostgreSQL Home Page

About me

  • CPAN
  • GitLab
  • Linked In
  • Why upgrade PG?
  • explain.D.C
  • paste.D.C
  • Waiting for …
    • … PostgreSQL 16
    • … PostgreSQL 15
    • … PostgreSQL 14
    • … PostgreSQL 13
    • … PostgreSQL 12
    • … PostgreSQL 11
    • … PostgreSQL 10
    • … PostgreSQL 9.6
    • … PostgreSQL 9.5
    • … PostgreSQL 9.4
    • … PostgreSQL 9.3
    • … PostgreSQL 9.2
    • … PostgreSQL 9.1
    • … PostgreSQL 9.0
    • … PostgreSQL 8.5
    • … PostgreSQL 8.4
  • Projects
  • Contact