Thank you very much sir !!!
I will try this when I get in the office on Thursday.
Have a nice weekend.
Quote:
Originally Posted by Don Cragun
It seems to me that putting the output from all of the cmd* scripts in a single file is just making your life harder (since you have to manually find the end of each command file's output and write it to a separate file to mail it back to the user), but I have done as you requested. I did sneak in two status lines in the output.txt file that should make it easier to separate the output after all of the cmd* files have finished and have also included the exit code in the closing separator line in output.txt since I would think your users will want that information.
This script logs when a script starts, when it ends (and includes its exit status), and when the last script ends to the file log.txt. Both log.txt and output.txt are cleared when you start this script; so don't run it a second time before you extract all of the data you need from output.txt. This seems dangerous to me, but it is what you requested.
Hi all,
I have done ssh-keygen to two servers in work place and given there entry for authorized_keys. I m able to ssh to other servers without asking password. But i face problem while trying to run a command or script on other server. It is throwing an Error.
$ ssh... (4 Replies)
I hope someone can shed any light on this mystery.
I am trying to run the following command:
su userID -c
remsh server -l userid -n "awk -F^ '\$4 == \"SMITH\"' /tmp/infromational/version74b/LIVE/TEMPORARY/ABCfiles/HLC_Database_File.bat|head -1" > /tmp/variant/45BV32/var/store13.logfnd
I... (15 Replies)
Hi everyone,
when executing this command in unix:
echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error.
here is content of my script:
tdbsrvr$ vi hc.sh
"hc.sh" 22 lines, 509... (4 Replies)
Hi
I, essentially have two parts in my script. The first ftp's to server S10 and retrieves a batch of files. The second part does the crunching and arranging, They both work independently but when run all in sam script I cannoy get 2nd part to run, i.e. the cat, cut & sed. I think it may be... (10 Replies)
Hey, I am trying to write a script that will open all of my session windows, and then secure shell into the appropriate server in the new windows. Seems simple, but I cant get it to work! Please help! :confused: (1 Reply)
Hi,
Not sure what the issue is here, but when i run the script. A simple copy command, it does not find the cp command ? See scrpt below :
#!/bin/sh
set -x
#############################################
# Backup Processes #... (4 Replies)
Dear All,
Writing a script in which I want to run a command in background and keep it running even script is finished.
I have tried like below,
`truss -p <pid> >> & /tmp/log &`
But doesnt work.. script goes running and nothing in log file. (7 Replies)
Hello,
Please i'd like to run command in a script shell , how can i do ?
here my commands :
cd blcr-build // run command in this rep
sudo insmod ./blcr_imports/kbuild/blcr_imports.ko //root
sudo insmod ./cr_module/kbuild/blcr.ko //root
Thank you. (1 Reply)
hello
i have write a script which can create username + password
#!/bin/bash
# Script to add a user to Linux system
if ; then
read -p "Enter username : " username
read -s -p "Enter password : " password
egrep "^$username" /etc/passwd >/dev/null
if ; then... (3 Replies)
Discussion started by: nimafire
3 Replies
LEARN ABOUT DEBIAN
mdm-run
MDM-RUN(1) User Commands MDM-RUN(1)NAME
mdm-run - run a command in parallel with mdm-master
SYNOPSIS
mdm-run command
mdm-sync command
DESCRIPTION
mdm-run annotates command as a candidate for parallel execution. If an mdm-master process is present (i.e., the environment variable
MDM_CMD_SOCK is defined), mdm-run submits command to the mdm-master, and it exits when the master issues the command to an mdm-slave
process (which may be connected to another terminal) for execution. mdm-sync runs command in place, but it coordinates with mdm-master to
ensure that executing command does not interfere with commands that are currently executing in parallel.
If there is no mdm-master process present (i.e., the environment variable MDM_CMD_SOCK is not defined), both mdm-run and mdm-sync simply
run command as if you entered command all by itself.
These programs are a part of the Middleman System (mdm).
OPTIONS
Neither mdm-run nor mdm-sync accepts any options.
EXIT STATUS
If there is no mdm-master process present, the exit status of mdm-run is the exit status of command. If an mdm-master process is present,
the exit status is 0 if and only if command is successfully issued to an mdm-slave process for execution.
The exit status of mdm-sync is always the exit status of command.
ENVIRONMENT
The mdm system uses the following environment variable for internal communication, and thus you should not try to set them yourself.
MDM_CMD_SOCK
mdm-run uses this environment variable to decide whether a mdm-master process is present.
EXAMPLE
See mdm.screen(1) for an example use of mdm-run.
SEE ALSO mdm.screen(1)Linux 2009-03-06 MDM-RUN(1)