Hi,
I am pretty new to unix.
Lets say i have a program(run_program) that will call another file function(functiona, in same directory):
hence, inside that run_program. i will just call "functiona xx xx" to refer and use that function. this run ok until i run this program from another folder.... (3 Replies)
This may sounds dumb, but can I call on a function from a file? For example, I have a function file full of functions like below (no shell designation):
func { echo "blah blah blah 1" }
func2 { echo "blah blah blah 2" }
func3 { echo "blah blah blah 3" }
Am I able to call on any one... (3 Replies)
This is my function which is creating three variables based on counter & writing these variable to database by calling another function writeRecord
but only one record is getting wrote in DB.... Please advise ASAP...:confused:
function InsertFtg
{
FTGSTR=""
echo "Saurabh is GREAT $#"
let... (2 Replies)
Hi,
I have a shell script 'sample.sh' which has some functions as below.
#fun1
fun1()
{
date
}
#fun2()
{
echo hi
}
I want to run these functions as background processes and also redirect the output to a file. My function calling statements are in a different file 'sample.cfg' as... (3 Replies)
I need to
1.Open a csv
2.Process the csv i.e. Modify 2 column in the csv.
To modify the column the value needs to be passed to a pl/sql function and the return value should be updated
For eg:
If column 2 E,then E will be passed in database function
which will return Employee.
3. Write a... (5 Replies)
I have a function which does awk proceessing
sub mergeDescription {
system (q@awk -F'~' '
NR == FNR {
A = $1
B = $2
C = $0
next
}
{
n = split ( C, V, "~" )
if... (3 Replies)
In my prog if i enter the input for the 1st time it is executing correctly,
but for the second time entire script is not executing it just exiting
my code is
#!/bin/sh
checkpo()
{
echo "Checking the entered PO to create output text file ";
IFS=$'\n'
set -f
var=0
for i in $(cat... (3 Replies)
After some thought.
I am uncomfortable issuing my professors name where, there may be unintended side effects from any negative responses/feedback. Willing to re post if I can omit school / professor publicly, but can message moderator for validation? I am here for knowledge and understanding,... (1 Reply)
Discussion started by: briandanielz
1 Replies
LEARN ABOUT DEBIAN
hobbitlaunch
HOBBITLAUNCH(8) System Manager's Manual HOBBITLAUNCH(8)NAME
hobbitlaunch - Master program to launch other Xymon programs
SYNOPSIS
hobbitlaunch [options]
DESCRIPTION hobbitlaunch(8) is the main program that controls the execution and scheduling of all of the components in the Xymon system.
hobbitlaunch allows the administrator to add, remove or change the set of Xymon applications and extensions without restarting Xymon - hob-
bitlaunch will automatically notice any changes in the set of tasks, and change the scheduling of activities accordingly.
hobbitlaunch also allows the administrator to setup specific logfiles for each component of the Xymon system, instead of getting output
from all components logged to a single file.
OPTIONS --env=FILENAME
Loads the environment from FILENAME before starting other tools. The environment defined by FILENAME is the default, it can be
overridden by the ENVFILE option in hobbitlaunch.cfg(5)--config=FILENAME
This option defines the file that hobbitlaunch scans for tasks it must launch. A description of this file is in hobbitlaunch.cfg(5)
The default tasklist is /etc/hobbitlaunch.cfg
--log=FILENAME
Defines the logfile where hobbitlaunch logs information about failures to launch tasks and other data about the operation of hobbit-
launch. Logs from individual tasks are defined in the hobbitlaunch.cfg file. By default this is logged to stdout.
--pidfile=FILENAME
Filename which hobbitlaunch saves its own process-ID to. Commonly used by automated start/stop scripts.
--verbose
Logs the launch of all tasks to the logfile. Note that the logfile may become quite large if you enable this.
--dump Just dump the contents of the hobbitlaunch.cfg file after parsing it. Used for debugging.
--debug
Enable debugging output while running.
--no-daemon
hobbitlaunch normally detaches from the controlling tty and runs as a background task. This option keeps it running in the fore-
ground.
STARTING TASKS
hobbitlaunch will read the configuration file and start all of the tasks listed there.
If a task completes abnormally (i.e. terminated by a signal or with a non-zero exit status), then hobbitlaunch will attempt to restart it 5
times. If it still will not run, then the task is disabled for 10 minutes. This will be logged to the hobbitlaunch logfile.
If the configuration file changes, hobbitlaunch will re-read it and notice any changes. If a running task was removed from the configura-
tion, then the task is stopped. If a new task was added, it will be started. If the command used for a task changed, or it was given a new
environment definition file, or the logfile was changed, then the task is stopped and restarted with the new definition.
SEE ALSO hobbitlaunch.cfg(5), xymon(7)Xymon Version 4.2.3: 4 Feb 2009 HOBBITLAUNCH(8)