I'm writing an application (Progress language) that needs to:
1) load the contents of a cron table into the Progress application;
2) display this information in a human manner and allow a select group of people to update it (these people are logged in as themselves, not as root);
3) save... (3 Replies)
Writing a simple test script that looks for ssh, kills if its running and verifies if its still running. If it isn't, move on. My issue, its cause I don't know how, is to verify if ssh is running still. Also, is there a way have this do this on a remote server? I already have the ssh keys... (7 Replies)
Dear All
I am running into a situation where I am running a script as another user lets say oracle using su command as below, and the script fails because the .profile of oracle is not executed so the environment variables are not set.
cat /etc/passwd | grep oracle... (4 Replies)
HI I 'm new shall script and unix. I want to create script for change password root by ssh-keygen command . I have 50 servers and I want ot login ot the servers via ssh by type ones password and can login every machines.The script ssh-keygen must ot generate key every weekly than it send new... (2 Replies)
Hello All,
I am trying to run some simulations through SSH from my mac on our university SOLARIS system. My problem is that whenever I want to execute a command I get an error which says "Invalid argument".
Maybe I should explain more what I want to do and what I did.
Firstly I installed a... (10 Replies)
1) Environment:Red Hat Linux, bash shell
Script to be run owned by user :myUser
Home environment of myUser: pathto/home
2) ESP agent with root access will run
JobXXX.sh
su - myUser -c "/pathto/home/bin/script.sh"
where script.sh has some echo statements and an exit statement in the end... (4 Replies)
Hi all,
I have to run C++ file using root programming, using following commands:
$root -l
root .L TwoTrees.C++
root TwoTrees t
root t.Loop()
root.q
I wonder if I can write script to do the following.
Thanks
Pooja (12 Replies)
Hi All, my script.sh has the below lines, and i need to run the script as root or wam. please tell me if this will work
#!/bin/bash
sudo -t wam /usr/local/wam/stopwam -r ------- this needs run as wam user
/usr/local/web/stopweb -a --- this needs to run as... (18 Replies)
Hi, I'm trying to run a user defined shell script with options and arguments via ssh but getting error as ksh: Script.sh: not found.
Here is what i'm running:
ssh -t username@server 'cd /path/to/script; script.sh -t start
here '-t' with script.sh, is an user defined option and 'start' is also... (3 Replies)
Discussion started by: xsam
3 Replies
LEARN ABOUT DEBIAN
watch-multiple-mimedefangs
WATCH-MULTIPLE-MIMDEFANGS(8) System Manager's Manual WATCH-MULTIPLE-MIMDEFANGS(8)NAME
watch-multiple-mimdefangs.tcl - Keep an eye on a cluster of MIMEDefang machines
SYNOPSIS
watch-multiple-mimdefangs.tcl [-archive] machine-1 machine-2 ... machine-N
DESCRIPTION
watch-multiple-mimdefangs.tcl is a Tk script that graphically displays the status of mimedefang-multiplexor(8) on a cluster of machines.
Note that Tcl/Tk 8.4 or higher is required to run watch-multiple-mimdefangs.tcl.
If you supply the -archive command-line option, then watch-multiple-mimdefangs.tcl logs the output of md-mx-ctrl rawload for each machine.
The output for machine_name is logged in:
$HOME/.watch-multiple-mimedefangs/machine_name/data.
PREREQUISITES
To use watch-multiple-mimdefangs.tcl to monitor a cluster of machines, you need the following prerequisites:
o A UNIX-like machine with Tcl/Tk 8.4, the X window system and an SSH client. You also need "xterm" to use some of the features.
o The ability to SSH as root to all of the machines you want to monitor. Ideally, you should be using the SSH agent so that you can
SSH to the monitored machines as root without being prompted for a password or pass phrase.
o The program md-mx-ctrl on root's path on all the machines you want to monitor.
DISPLAY
For each machine specified on the command line, watch-multiple-mimdefangs.tcl creates a chart with five columns. The columns are:
o A button with the name of the machine. Clicking the button pops up a menu that lets you take various actions, as described later.
If all slaves on the machine are busy, the button turns yellow.
o A label showing the number of busy slaves in the form "busy/total", where total is the total number of slaves.
o A label showing the average number of messages per second over the last 10 seconds.
o A label showing the average number of milliseconds per scan over the last 10 seconds.
o A chart that graphs the average number of busy slaves, the average number of messages per second and the average scan time in mil-
liseconds, all averaged over the last 10 seconds.
MACHINE MENU
If you click on a machine name, a menu with three options pops up:
SSH Open an xterm session and ssh as root to the machine.
Busy Slaves
Monitor the busy slaves on the machine. If you click on the process-ID of a slave, an xterm will open up and the command "strace -s
100 -t-p pid" will be executed on the remote machine. This is Linux-specific, but you can edit watch-multiple-mimdefangs.tcl to
replace the command with your particular system's command for tracing system calls.
Delete Remove the machine from the list of machines being monitored.
ADDING A MACHINE
If you need to add a machine to the display, simply type the name of the machine in the "Add Machine:" box and press Enter.
AUTHOR
watch-multiple-mimdefangs.tcl was written by David F. Skoll.
SEE ALSO mimedefang.pl(8), mimedefang-filter(5), mimedefang(8), mimedefang-protocol(7), md-mx-ctrl(8), watch-mimedefang(8)4th Berkeley Distribution 12 January 2007 WATCH-MULTIPLE-MIMDEFANGS(8)