Red Hat :: Global Variables Not Taking Effect When Set Via Called Script

Aug 3, 2010

I have a script which lists all the SID listed in /etc/oratab and then after the user select which SID to set, it calls another script to set the SID and other environment variables.

The script runs just fine and does all that is expected, but the variables are not set permanently, can't figure out why. Everything works fine when I run the setsid.sh out of this script.

Here is the script:

View 9 Replies


ADVERTISEMENT

General :: Declare Global Variables In Bash?

Jan 23, 2010

I have a problem with a very big script I wrote in bash, and now I need to modulirize it in at least four smaller scripts. The problem is, that most of the variables I have will need to be shared by all scripts.

My question is: is there a way to declare global variables in bash? So that I can use and change them in any of the scripts and every change in the variable can be "seen" by the other scripts later.

View 4 Replies View Related

Programming :: Accessing Global Variables In Script?

Apr 10, 2011

I have a script that goes like this

step 1 - install sdk

step 2 - update ~/.bashrc export some new variables

step 3 - check said variables, if they return a value then we know a reboot has taken place and we can continue to step 4. otherwise halt and isssue a warning that a reboot is needed.

Ok, so this works if I just execute the script when I am logged on as root, and after a reboot & rerun of the script I can check the variables exist and the program will continue as expected. only when I am logged on as root will the variables I exported in bashrc return a value. If I run the script as sudo root the values are blank.

View 2 Replies View Related

Fedora :: Yum Cachedir Change Not Taking Effect?

May 29, 2010

i have changed the cachedir for yum because i don't have enough space left for updates (500MB free on /). i got the "Insufficient space in download directory" error msg.so i've changed the chachedir in /etc/yum.conf like this:cachedir=/media/OS/.temp/var/cache/yum/$basearch/$releaseveros is another partition on my hdd with 17GB free spacewhen i tried to update after this i got the error msg again"Insufficient space in download directory /media/OS/.temp/var/cache/yum/i386/12/updates/packages"it seems like yum is still using /var/cache for downloading and not /media/os/.tempi have double checked with df and yum it's still using /var/cache

View 14 Replies View Related

General :: Umask Change Not Taking Effect

Dec 28, 2009

I have 2 Oracle users that generate .tmp files under /var/tmp. By default, the files have the permissions 644. Now, a need has arisen whereby the files created by these users have to have the permission bits as 664. Obviously, I changed the UMASK value for these users from 022 to 02. But the files are still getting created with 644 as the permission.

I tried restarting the application as I read that a relogin is required for the UMASK change to take effect. Even that hasn't helped.

View 3 Replies View Related

Programming :: Avoiding Global Variables In Kernel Modules?

Jun 27, 2010

I have two modules A and B in the kernel which i am trying to hack by introducing a variable in A which is of type 'extern' (and using EXPORT_SYMBOL) and then calling it in B. Now the problem is how to introduce that variable in module A. Currently i have made a global variable and it works fine but global variable in kernel is a bad bad thing.

I tried having an 'extern' function in A which have that variable and calling that function in module B, but then again how would module A use my variable unless the variable is available outside the scope of that function and that again means a global variable.

View 3 Replies View Related

General :: Fedora File Permissions Not Taking Effect?

Jun 27, 2011

I have a directory /models/ with the permissions

drw-rw-rw- 2 owner developers 4096 Jun 24 15:13 models

these were set with

sudo chmod -R 0666 *

My user has developers as the primary group (the same group as the file), but I cannot access the directory via the terminal or ftp.

[myUser@machine]$ id myUser
uid=503(myUser) gid=505(developers) groups=505(developers)
$ cd models
-bash: cd: models: Permission denied

I had the same problem before the directory belonged to my group, and I even went so far as to restart the server, without any luck. How do I set permissions to this directory so that I and other members of the group developers can access it?

View 3 Replies View Related

Programming :: Global Or Server Variables - Array Connection Oriented

May 20, 2011

I have a general question regarding php. Suppose that I want to have an array that stores connection-specific data, that can be anything IP address or something similar. However, whenever I use global or server variables (i.e. GLOBALS or _SERVER) the array created in this way is kind of connection-oriented, so that for each connection there is a separate instance of this array. Maybe it has something to do with the MPM of Apache, but I am not sure. Is it possible to implement an array that stores information about all connections that are at a system? In this way, each connection can chip in and upload it with data? Also, I would rather not use cookie's.

View 3 Replies View Related

Ubuntu :: Appearance Effect Change Automatically From Extra Effect To No Effect?

May 7, 2010

I have upgraded to 10.4 and and after try to install mac look in ubuntu.My screen start flickering, I found it this due to in system => preference => appearance => effect become no effect automatically (as each and every time I select extra effect)After some time.for changing this setting i need to turn off the computer and restart then after i can do it i.e. change effect to extra effect. Its done after following installation

[URL]

View 4 Replies View Related

Programming :: Destructor Called On Objects In Deque Without It Being Called Explicitly

Jul 13, 2011

I feel there's a bit of a misunderstanding going on between C++ and me...My problem is that I have a deque of pointers to a class, and create objects then add them to the deque in a for loop. However, the destructor is called on the object as soon as the loop quits.

Code:

This prints:

Code:

Now, if I change the deque from deque<Test*> to deque<Test> then it works fine - I get:

Code:

However, I can't do this with my actual code, because I am creating a deque of pointers to an abstract class, so it won't let me instantiate the class. (This is all so that I can take advantage of polymorphism, and call functions on a set of similar objects without worrying what type of object I'm dealing with).

So, I suppose my question is: what is the correct way to create that deque of pointers to the abstract class? I don't seem to be barking up the right tree currently.

View 4 Replies View Related

Fedora :: Enable Wooby Effect - Compiz Desktop Effect - In 15

Jun 23, 2011

How to enable wooby effect (compiz desktop effect like ubuntu) in fedora 15.

View 1 Replies View Related

OpenSUSE Multimedia :: ATI 5650 But No Desktop Effect No 3D Effect?

Oct 16, 2010

i got driver and when i install driver and reboot computer I got just terminal and when I type startx I get error FLGRX and sam log file or something like that.

instruction i found here but some comands didn't worked openSUSE Lizards

View 9 Replies View Related

Ubuntu :: Bash Script With Variables And Editing Variables

Apr 6, 2011

mkvmerge -o <filename without extension>_TV.mkv -S <filename> && mkvextract tracks <filename> 3:<filename without extension>.*** && perl /home/brian/Desktop/ass2srt.pl <filename without extension>.*** && rm <filename without extension>.***

Doing these commands for multiple command line file inputs is the goal. So I can just type ./script.sh *.mkv in my terminal.This is what I have so far, but it doesn't work whatsoever.

View 2 Replies View Related

Ubuntu :: Global Hotkeys On Audacious Don't Respond Unless Open Preferences, Open Settings For Global Hotkeys, Then Close Down The Settings?

Feb 19, 2010

I have two major issues, and one minor one, after I started using Ubuntu, I tried searching the forum for them, but couldn't find anything relevant to my problems.First issue: Screenshots and the cursor.This is probably a very easily fixed issue, but none-the-less, I can not figure it out.How do I NOT include the cursor in my screenshots on Ubuntu 9.10?What I do is, I press the Prt Scrn button, and my cursor is always there in the image, and I don't want that.Second is pidgin.I love it, but every time I boot it up, my friendly name is reverted back to firefoxfag.I think it has something to do with me using gmail for msn, but I'm not sure...Also, as a last very small issue, the global hotkeys on audacious don't respond unless i open preferences, open settings for global hotkeys, then close down the settings..

View 4 Replies View Related

Ubuntu :: Looking For KDE Global Equalizer

May 28, 2010

I would like to have a global equalizer in KDE. I have done a bit of searching and didn't find anything that looked promising. It looks easy with ubuntu since it uses Pulse audio. I actually installed pulse audio and it seems to have somewhat integrated lol but I can't find an equalizer to see if it works.

View 5 Replies View Related

Fedora :: Install Global-menu-bar In 15?

May 30, 2011

How do I install global-menu-bar in Fedora15? It is innevitable for me since it saves a lot of screen space.

View 4 Replies View Related

OpenSUSE :: KDE 4.x: Global Hotkeys For All Users - How To Do It

Jul 23, 2011

Using KDE 4.6+, I'd like to have a predefined set of hotkeys for all users of the computer. E.g. the "XF86Calculator"-key starting "kcalc" as a default for all users without everyone being forced to deal with the absolutely messy and un-intuitive KDE hotkey configuration. Is there a way to do that? Preferably something like an "*.desktop"-file in /usr/local in order to be consistent with the rest of the system.

View 9 Replies View Related

Ubuntu :: Are There .deb Packages For Global Menu

Jan 29, 2010

Been looking online and have only been able to find PPA lines. I tried adding them to software sources with no joy. I keep getting an error message. Are there any .deb packages for global menu? If not can anyone give me straight forward steps on how to install it? I am running Jaunty.

View 1 Replies View Related

Ubuntu :: Global MenuBar Is Not Working

Mar 29, 2010

I installed the Gnome global menu bar URL... for my Ubuntu 9.10 laptop. All that was there was the files that I had to make and make install. But this happens when I type make or make installNo targets specified and no makefile found. Stop.Is there a prebuild version of the gnome global menu bar on the Ubuntu Software Center, or can someone provide the link?

View 3 Replies View Related

Ubuntu :: See The Global Statistics In KTorrent?

Apr 12, 2010

Is there a way to see the global statistics in KTorrent? I'm referring to the overall share ratio and the total amount of data downloaded & uploaded. - not for the current session, but an all-time info edit: KTorrent version 3.3.4

View 1 Replies View Related

Ubuntu :: Global Keybindings For Gnote / Where Are They Set?

Apr 30, 2010

I'm looking for the file in which global keybindings are set for Gnote. The man page claims they are stored in gconf --> '/apps/gnote/global_keybindings/open_start_here', /apps /gnote/global_keybindings/show_note_ menu'

I have a ~/.gconf/apps/gnote directory, but no files to set the individual keybindings. The keybindings work and can be set from within gnote, so i know they have to be somewhere on my system. Anyone have any ideas where I might look? I'm using Openbox on a Karmic command line install. I have no gconf-editor, and gnote looks to be the only program installed that uses gconf.

View 1 Replies View Related

Ubuntu :: How To Enable Global Menu

Jun 18, 2010

I have it installed and stuff but all it says it "Google Chrome" in bold, how do I make it have the menus?

View 1 Replies View Related

Ubuntu :: Global Proxy In LUbuntu?

Mar 18, 2011

I have just installed LUbuntu on a machine, mostly to try it out. I have been trying to setup a global proxy, but there doesn't appear to be an option for that. I have changed the /etc/wgetrc file to enable the proxy & set the proxy in there, but this has not helped.

View 4 Replies View Related

Ubuntu :: 11.04 Global Menu Only When Maximized?

Apr 27, 2011

I actually like some aspects of the global menu, but the reality is that a better solution for non-maximized windows is to just have the menu in the titlebar, and have title hide when you hover over it to reveal the menu, just like it does for maximized windows. You aren't losing any screen space with this solution.Having to click on a window, then go all the way back to the top left of the screen is hardly a convenience, especially when using a touchpad.

View 9 Replies View Related

Ubuntu :: Global Menu Does Not Work

May 11, 2011

os: ubuntu 11.04

issue: global menu does not function as it should.

issue description: global menu shows title, not menu. menu is shown on second line. firefox add on (global menu bar integration) installed.

View 7 Replies View Related

Ubuntu :: Transperent Global Menu Bar In 11.04?

May 12, 2011

how to make global menu bar of 11.04 transperent like gnome panel of 10.10? Also how to reduce icon size in application menu in 11.04?

View 1 Replies View Related

Debian :: Failed To Get Global Enables?

Dec 13, 2010

In the /var/log/messages log I have the following fail:Dec 13 13:24:50 mailserver kernel: ipmi_si(SI_CHECK_BMC): Failed to get Global Enables 0xc6.What does this mean?It is a HP server...Linux debian etch, kernel 2.6

View 3 Replies View Related

Server :: Rewrite This In The Global Configuration?

May 28, 2011

got a small setup in /home/username/public_html/.htaccess.


Code:
Action php-fcgi /~robert/fcgi-bin/php-fcgi-wrapper
the php-fcgi-wrapper is in /home/username/public_html/fcgi-bin/php-fcgi-wrapper or in the

[code]....

View 4 Replies View Related

Programming :: NameError: Global Name 'set' Is Not Defined

Apr 17, 2011

I have a Red Hat 4.9 server running python 2.3.4. However I need some of the new functions so I downloaded and installed Python 2.7.1. I wanted to use the "set" function which was not in the earlier version.

/bin/python is 2.3.4
/usr/local/bin/python is 2.7.1

I have a script running 2.3.4 which calls the 2.7.1 script however it fails because it cannot find the "set" command here is an example

Script1
#!/bin/python
import Mytest

[code]....

The error message is :

NameError: global name 'set' is not defined

View 14 Replies View Related

Programming :: How To Set Up Global Class In JAVA?

May 10, 2011

I've had to do some code in java, a language I'm very much unfamiliarly with so please excuse my incorrect use of terms. The basic outline of my problem is I create a class object as a local within a swing button function it works fine. If I create it as a global ( with I think I need to do ) within main, then prototype it with the other swing objects at the bottom of the file when it is called it causes a host of problems. I think the easiest way is to show it.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved