Sponsored Content
Operating Systems Solaris Netra X1 LOM: Unable to change any variable via the "set" command Post 302774691 by Smiling Dragon on Saturday 2nd of March 2013 10:57:09 PM
Old 03-02-2013
Ahhh, so it's very limited then :/ The LOM docs from oracle actually list that set syntax even!!! <sigh>

Many thanks! That'll save me a lot of head scratching!

Time I got my head round LOMLite I guess Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to change "set" values in perl, windows...

i am using perl in win2000advanced server... --------------------------- perl -version: --------------------------- This is perl, v5.6.1 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2001, Larry Wall Binary build 638 provided by... (1 Reply)
Discussion started by: sekar sundaram
1 Replies

2. Programming

Differece between "env" and "set" command

Hi, Please clarify what is the difference between "env" and "set" command. I guess set will display the system variables and user defined variables. Thanks Sweta (1 Reply)
Discussion started by: sweta
1 Replies

3. Programming

getting "mi_cmd_var_create: unable to create variable object" error msg

Hi, i am working in C in Fedora Eclipse 3.3.0 with gdb debugger. I am geting segmentation fault with an error message "mi_cmd_var_create: unable to create variable object" on debugging the program. What should I do to solve this problem? rgds, Dona_m (14 Replies)
Discussion started by: dona_m
14 Replies

4. Shell Programming and Scripting

Unable to store "-e" in variable ??????

p="-e" echo $p It is not returning the value "-e" stored. Instead returns null. I am wondering how could this happen. Please help me out.I tried all possibilities like p='-e' | p="\-e". Nothing seems to work. :confused::confused: (10 Replies)
Discussion started by: shanneykar
10 Replies

5. Shell Programming and Scripting

Set command ending with a "." (dot)

Hi I have a "set" command which ends with a "." (dot), for example: set `grep "\<${pnum}\>" /tstmp/data.txt |sed 's/#//'` . Can somebody help me to understand the purpose of this "set" and "." combination? The problem is that this command does not produce the same result when run on AIX... (2 Replies)
Discussion started by: aoussenko
2 Replies

6. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

7. Shell Programming and Scripting

Find lines with "A" then change "E" to "X" same line

I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
Discussion started by: nightwatchrenba
10 Replies

8. Shell Programming and Scripting

"set variable with spaces and apostrophe after s"

Hi Guys, I have a variable such that: set x = (Session,Date,Type,Receive Coil Name,Manufacturer,Manufacturer's Model Name) foreach i ($x) echo $i end I would like to read each variable one by one like: Session Date Type Receive Coil Name Manufacturer Manufacturer's Model Name Is... (1 Reply)
Discussion started by: dixits
1 Replies

9. Shell Programming and Scripting

Unable to store "python --version" to a shell variable

Hi All, I need to get the version of python installed and store it in a variable for later use. Whereas it is printing on the console instead of storing to variable. I am able to store output of ls command in a variable. Please check the below code : root@myhost:/volumes/srini# cat... (4 Replies)
Discussion started by: srinivasan.neel
4 Replies

10. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
cook_rsh(1)						      General Commands Manual						       cook_rsh(1)

NAME
cook - load balancing rsh SYNOPSIS
cook [ option... ] architecture command [ argument... ] cook -Help DESCRIPTION
The cook program is a wrapper around rsh(1) which does simple load balancing. It obtains its load information by running the rup(1) command, and selects the most suitable host hased on the architecture you specify, and the least load of all hosts of that architecture. The first command line argument is the architecture name which is used to get the list of possible hosts. From that list the rup(1) command is run to determine the host with the lowest load, which is in turn used as the first argument of the eventual rsh(1) command. COOKBOOKS
In order to make use of this program, somewhere in your cookbook, you need to add a line which reads parallel_rsh = "cook"; If the host chosen is the same as the caller (build host) then this program just exec the command skipping the rsh. So it costs nothing to use this in a one machine network! For each recipe you want distributed to a remote host, you need to add a host-binding attribute to. Typical usage is where you have a muti-architecture build. %1/%0%.o: %0%.c host-binding %1 { cc -o [target] -c [resolve %0%.c]; } In the recipe given here, each architecture has its object files placed into a separate architecture-specific directory tree. The architecture name (%1) is used in the host-binding, so that the compiles may be load-balanced to all machines of that architecture. If you need a command to run on a specific host (say, because that's where a specific application license resides), then simply use the host name in the host-binding attribute, rather than an architecture name. DEFINING THE CLASSES
The /host_lists.pl file is expected to exist, and to contain variable definitions used to determine if hosts are members of particular architectures. The /host_lists.pl file defines a perl HOL "hash of lists" The hash is %ArchNames and it maps names of architectures as user want to see them, to list references as the actual lists are stored. The names of each architecture could be any form you wish but the convention is to use the GNUish names such as "sparc-sun-solaris2.8". For each architecture, define one or more lists of machines according to what function each machine set may do. This can be as simple or as elaborate as required. The form of the list variable name can be any valid perl identifier but may as well be like the architecture name with dash changed to underbar and dot removed, and the type added. For example one might define solaris hosts as: @sparc_sun_solaris28_hosts = ( "mickey", "minny", "scrooge" ); And linux hosts as: @i386_linux22_hosts = ( "goofy", "scrooge" ); If there is a need to define different sets of machines for different types of jobs then add a suffix to the names in the host-binding directive on each of the recipes, and lists here with the same suffix. The hash to map argument names to lists is defined like: %ArchNames = ( "sparc-solaris2.8", => @sparc_solaris28_hosts, "i586-unknown-linux22", => @i386_linux22_hosts, ); Of course if users have differing opinions as to what the architecture names should look like, you can define "alias" mappings as well. "sun4-SunOS-5.8", => @sparc_solaris28_hosts, Or maybe the level is of no importance, then define "sparc-solaris", => @sparc_solaris28_hosts, "sparc-solaris2.7", => @sparc_solaris28_hosts, Also, this list isn't allowed to be empty. And finally, curtesy of Perl, the last line of the file must read 1; for obscure and magical reasons. SYSLOG LOGGING
Typical commands seen during a build would look like sh -c 'cd /aegis/dd/gumby2.2.C079 && sh -ce /aegis/dd/gumby2.2.C079/.6.1; echo $? > /aegis/dd/gumby2.2.C079/.6.2' So we can extract the project/ change from the command quite easily and logging it via syslog would be a trivial addition. OPTIONS
This command is not usually given any options. -h Help - show usage info -vP Verbose - report choice -Tn Trace value for testing FILES
/exclude.hosts This file is used to list those host which must not be used by this script. Simply list excuded hosts, one hostname per line. If the file is absent, all hosts reported by rup(1) may be used. /host_lists.pl This file defines the classes of hosts for each architecture. AUTHOR
Jerry Pendergraft <jerry@endocardial.com> Reference Manual Cook cook_rsh(1)
All times are GMT -4. The time now is 01:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy