Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Pass config file to bash script Post 303042744 by cmccabe on Sunday 5th of January 2020 10:22:11 AM
Old 01-05-2020
Got it.... if I want to be able to view these var, for say troubleshooting, canI? They can be virtual I just may need to verify them. Thank you Smilie

I think you beat me to it and just posted.
This User Gave Thanks to cmccabe For This Post:
 

10 More Discussions You Might Find Interesting

1. Solaris

bash and its config file

Guys im using bash and for me i think its the best shell, anyway which conf file related to bash ? is it $SHELL or .profile i want to add path to it so i dont need to type the full path of the binary file, i also want to configure the behaviour of the shell, please help. (1 Reply)
Discussion started by: XP_2600
1 Replies

2. Web Development

bash script editing my apache config files

okay i'm going to try to say this uber-simple: I use dropbox (file-sync service). in order for dropbox sync files, they must be its children eg. somewhere under /home/jzacsh/Dropbox]. I want to now use it to keep my development files in sync across my machines: easy: just move my dev. files... (2 Replies)
Discussion started by: jzacsh
2 Replies

3. Shell Programming and Scripting

Shell script that will compare two config files and produce 2 outputs 1)actual config file 2)report

Hi I am new to shell scripting. There is a requirement to write a shell script to meet follwing needs.Prompt reply shall be highly appreciated. script that will compare two config files and produce 2 outputs - actual config file and a report indicating changes made. OS :Susi linux ver 10.3. ... (4 Replies)
Discussion started by: muraliinfy04
4 Replies

4. Shell Programming and Scripting

parsing a config file using bash

Hi , I have a config _file that has 3 columns (Id Name Value ) with many rows . In my bash script i want to be able to parse the file and do a mapping of any Id value so if i have Id of say brand1 then i can use the name (server5X) and Value (CCCC) and so on ... Id Name ... (2 Replies)
Discussion started by: nano2
2 Replies

5. Shell Programming and Scripting

bash script config file

hi all config.sh : dhcp="0" setip="1" telnet="1" ping="1" main.sh function dhcp { } function setip { } (1 Reply)
Discussion started by: sadosan83
1 Replies

6. Shell Programming and Scripting

Pass arguments to bash script

myscript.sh #!/bin/bash ARGA=$1 if ; then echo "${ARGA}:Confirmed" else echo "${ARGA}:Unconfirmed" fi when I run the above script from the command line, i run it as: ./myscript.sh jsmith now some times, i need to runn it this way: (8 Replies)
Discussion started by: SkySmart
8 Replies

7. UNIX for Dummies Questions & Answers

How to write Config shell script to pass variables in master shell script?

Dear Unix gurus, We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Discussion started by: dba1981
1 Replies

8. Shell Programming and Scripting

How to write config shell script to pass variables in master shell script?

Dear Unix gurus, We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Discussion started by: dba1981
1 Replies

9. Shell Programming and Scripting

Shell script to pass the config file lines as variable on the respective called function on a script

I want to make a config file which contain all the paths. i want to read the config file line by line and pass as an argument on my below function. Replace all the path with reading config path line by line and pass in respective functions. how can i achieve that? Kindly guide. ... (6 Replies)
Discussion started by: sadique.manzar
6 Replies

10. Shell Programming and Scripting

Curl , download file with user:pass in bash script

Hello, My question is about curl command. (ubuntu14.04) In terminal, I am able to download my mainfile with: curl -u user1:pass1 http://11.22.33.44/******* When I convert it into bash script like this: #!/bin/bash cd /root/scripts computer_ip=11.22.33.44 curl -u $1:$2... (8 Replies)
Discussion started by: baris35
8 Replies
ComponentView(3U)					    InterViews Reference Manual 					 ComponentView(3U)

NAME
ComponentView - base class for views of objects that model domain-specific elements SYNOPSIS
#include <Unidraw/Components/compview.h> DESCRIPTION
ComponentView is an abstract base class for views of component subjects. Component views provide a specialized presentation of the infor- mation in the component subject to which they are attached. Usually there is at least one view subclass defined for each subclass of com- ponent subject. PUBLIC OPERATIONS
virtual void Interpret(Command*) virtual void Uninterpret(Command*) These operations call the corresponding subject operations by default. They are included in the component view protocol for conve- nience, since other objects often deal with component views rather than their subjects. virtual void Update() Notify the view of a change in some state that it depends on, normally state in the subject. This operation does nothing by default. virtual Component* GetParent() Return the view's parent, if any. Like component subjects, component views may be structured hierarchically, and their structure may or may not reflect that of their subject. Component* GetSubject() Return the component view's subject. virtual void First(Iterator&) virtual void Last(Iterator&) virtual void Next(Iterator&) virtual void Prev(Iterator&) virtual boolean Done(Iterator) Operations for iterating over the component view's children, if any. First and Last initialize an iterator to point to the begin- ning and end of the list of children, respectively. Next increments the iterator to point to the following child, while Prev decre- ments the iterator to point to the preceding child. Done returns whether or not the iterator points beyond the first or last child in the list. virtual ClassId GetClassId() virtual boolean IsA(ClassId) GetClassId returns the unique class identifier for the ComponentView subclass, while IsA returns whether the instance is of a class or subclass corresponding to the given identifier. IsA typically checks the given identifier against the instance's own (as defined by its GetClassId operation) and, failing that, calls its parent classes' IsA operation. All subclasses must redefine GetClassId and IsA to ensure that their identifiers are unique and that view category information is defined properly. See classes(3U) for more information on class identifiers and view categories. PROTECTED OPERATIONS
ComponentView(Component* subject = nil) The constructor initializes the component view's subject pointer to the given value. The view will also attach itself to the sub- ject if the argument is non-nil. virtual void SetSubject(Component*) Set the component's subject pointer to the given value. By default, this operation does not call Attach or Detach on the sub- ject(s). virtual void SetParent(Component* child, Component* parent) Notify a child component that it has a new or different parent. This operation does nothing by default. Composite components should call this function in their structure-modifying operations, and components that keep information about their parents should redefine it to update this information. SEE ALSO
Command(3U), Component(3U), Iterator(3U), classes(3U) Unidraw 20 August 1990 ComponentView(3U)
All times are GMT -4. The time now is 11:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy