You are not logged in.

#1 2012-10-24 07:57:11

Xaero252
Member
Registered: 2011-11-28
Posts: 107

Managing a potentially large number of bash scripts

Heres the situation, I have a particular bash script that gets called upon each time a certain function on a server occurs. This can occur many, many times and each specific script instance will be unique and do something slightly different.

For example (this is not what the script does), say the script uses wget to download a page, and then download all images associated with that page. The server could call that script, with several different urls (around 50, maximum) at the same time. From a management perspective its a little exhaustive to have 50 seperate terminals setup to monitor 50 seperate script's at the same time. The bash scripts are however, written in such a way that they output a 1-line status message including progress.

My question is, does there happen to be any sort of software to monitor things in this fashion? For example, have each one its own line in a queue style management interface, with several columns for displaying which script, what arguments and the current output of the script?

Offline

#2 2012-10-24 14:24:17

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: Managing a potentially large number of bash scripts

Have the script log to journald or syslog?


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2012-10-24 22:41:20

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,238
Website

Re: Managing a potentially large number of bash scripts

Mr.Elendig wrote:

Have the script log to journald or syslog?

This.

http://www.cyberciti.biz/tips/howto-lin … yslog.html

Offline

Board footer

Powered by FluxBB