12-08-2010
Let me clarify my requirement
I think i confused everyone. Let me clear you my reqyirements :-
Leave login part that is already taking care.
I have conf file in each file which has two entries seperated by comma. look like :-
best1,ls /opt/bmc/Patrol3/*/best1
......, .......................
In which "Best1" is the product name and "ls /opt/bmc/Patrol3/*/best1" is the way to find the product version of Best1 in that particular server.
Now what i need is to run the second part(ls /opt/bmc/Patrol3/*/best1) in the server and forward output with corresponding product name to a file. The output file should look like
Product name Version
Best1 3.0.1
Loganame 1.0
..... ...
.... ...
Note :- The file is varying for each server(contain lot of product) as the product in each server is different.
I hope i am not confusing again
Thanks,
Ren
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am new to this forum and unix too. I have just started learning unix. As I was going through the first chapter, I read that unix is multitasking, multiprogramming, multiprocessing and multiuser OS.
My question is: Is there any difference between a TASK and a PROCESS. How are PROCESS... (2 Replies)
Discussion started by: hana
2 Replies
2. Shell Programming and Scripting
I have a file contains
TASK gsnmpproxy {
CommandLine = $SMCHOME/bin/gsnmpProxy.exe
}
TASK gsnmpdbgui {
CommandLine = $SMCHOME/bin/gsnmpdbgui.exe
I would like to comment and than uncomment specific task eg TASK gsnmpproxy
Pls suggest how to do in shell script (9 Replies)
Discussion started by: madhusmita
9 Replies
3. Shell Programming and Scripting
I have an ASCII file that I receive on a monthly bases that is fixed length. I break the file into separate files based on a 5 character numerical sequence. I have 20 different sequences I have to find.
the input file looks something like this
xy-ins 2008yuthnrlsinrthsntwilgrha33260001... (4 Replies)
Discussion started by: jcalisi
4 Replies
4. Shell Programming and Scripting
I have an task definition listing xml file that contains a list of tasks such as
<TASKLIST
<TASK definition="Completion date" id="Taskname1" Some other
<CODE name="Code12"
<Parameter pname="Dog" input="5.6" units="feet" etc /Parameter>
<Parameter... (3 Replies)
Discussion started by: MissI
3 Replies
5. UNIX for Advanced & Expert Users
I want to make a script to automate printer adding task.My inputs are like
Printer name : xyz
Port number :9001
I should write a script to make the Printer adding task will be automated.
Like in manually adding task we are doing through hppi or jetadmin tools.
---------- Post updated at... (2 Replies)
Discussion started by: AnilKPatnaik
2 Replies
6. Shell Programming and Scripting
Hi all,
I'm newbie and stuck here. Thanks for any help.
Input(txt file)
a b X
c d Y
e f Z
g h W
Requested output:
a b X Y
c d Y X
e f Z W
g h W Z
Please use code tags when posting data and code samples! (10 Replies)
Discussion started by: hernand
10 Replies
7. Shell Programming and Scripting
Hi experts,
I have a problem with the below shell task:
I need to modify the file creatin a paired row , per each row
which matches filter (e.g. number of nonempty columns = 5)
Output should look like this:
second row is original one from the input,
first row(red) is pairing row, it's... (29 Replies)
Discussion started by: hernand
29 Replies
8. Shell Programming and Scripting
Dear all,
I'm a newbie in programming and I would like to know if it is possible to parallelize the script:
for l in {1..1000}
do
cut -f$l quase2 |tr "\n" "," |sed 's/$/\
/g' |sed '/^$/d' >a_$l.t
done
I tried:
for l in {1..1000}
do
cut -f$l quase2 |tr "\n" "," |sed 's/$/\
/g' |sed... (7 Replies)
Discussion started by: valente
7 Replies
9. Shell Programming and Scripting
Hello everyone my name is Telis and i just registered in this forum.. i just started programming in linux shell and i need help with this easy task..
this is my code
#!/bin/sh
echo "What is your First name?"
read name
if ; then
echo "Hello Master."
else
echo "Who are you?"
fi
when i... (2 Replies)
Discussion started by: Telis
2 Replies
10. Shell Programming and Scripting
Dear All,
I am relatively new to UNIX and wanted to accomplish a simple task which should be automated. That's why I need your help. I shall briefly describe what I want.
Basically, there is a process (X) (related to a particular software which I am using in my system) which automatically... (5 Replies)
Discussion started by: Samiran Dam
5 Replies
ris(8) System Manager's Manual ris(8)
Name
ris - remote installation services utility
Syntax
/etc/ris
Description
The utility performs remote installation services which install system software to a client machine through the TCP/IP local network. The
client machine can be a VAX or a RISC machine.
The server on which the remote installation services area is located can be either a VAX or a RISC machine.
The remote installation services utility uses the directory as a base. When you install the first product to the utility creates a remote
installation services area. The area is called either or
The area contains one or more ULTRIX software products. Each product contains the subsets of the kits that can be installed to clients on
a network. Clients registered for an area install software over the network to their processor.
The utility performs the following functions:
a - Add client
r - Remove client
s - Show products in remote installation environments
m - Modify client
i - Install software
You must use the utility interactively to set up a remote installation services area. After you have set up a remote installation services
area on the server, you can use the utility either interactively or from the command line to manage clients.
The directory also holds a subdirectory, This directory contains a database file, that you can use to manage multiple clients.
Examples
The example that follows invokes the utility interactively:
# /etc/ris
A menu appears from which you can select options to perform functions.
The examples that follow manage the client using the command line.
The syntax of the command to add a client follows:
/etc/ris -a <clientname> -h <Ethernet_address> -p path,product[,product]
The following command adds client and allows that client to install a product over the network:
# /etc/ris -a bergal -h 08-00-2B-03-05-8B -p ris0.mips,product_1
The syntax of the command to modify a client follows:
/etc/ris -a <clientname> [-h <Ethernet_address>] [-p <path,product,product>]
The following command modifies client and allows that client to install a product over the network:
# /etc/ris -m bergal -p ris0.mips,product_2
The syntax of the command to remove a client follows:
/etc/ris -r <clientname>
The following command removes client
# /etc/ris -r bergal
Files
See Also
setld(8)
Guide to the Remote Installation Services
Guide to Server Setup
ris(8)