Get The Filename Where The Variable Is Set

Hello,
Host machine: Windows seven 64 bit
Guest machine on Virtual box: Oracle linux 6.5(64 bit)

If there are multiple files sourced, each containing many variables,and each in a location not known to the person using a user,
is there a way to know the file name where the variable is set?

Many thanks


Similar Content



When I Press Enter, It Is Taken Twice

I have written a script to start a virtual machine through pass through mode and port number.

I start the guest linux through Run command from windows
telnet <baseIP> <portNUm>

Then after connecting to that guest machine,

each enter taking twice.

Any help will be greatful

Create Windows VirtualBox Guest On Centos

I have VirtualBox up and running on my headless Centos 6 machine, am using http://sourceforge.net/projects/phpvirtualbox/ as a GUI, and created a virtual machine and installed Windows 7 on it.

I can access it using the VirtualBox console (via phpvirtualbox interface), however, only can see part of the screen and the mouse doesn't work properly. I can also access it using Windows Remote Desktop Connection using IP 192.168.1.200:9000 (why port 9000?), but again the mouse doesn't work.

I have the following ext packs installed on the server.
Code:
login as: Michael
Michael@192.168.1.201's password:
Last login: Sat May 23 10:06:04 2015 from 192.168.1.10
[Michael@devserver ~]$ VBoxManage list extpacks
Extension Packs: 1
Pack no. 0:   Oracle VM VirtualBox Extension Pack
Version:      4.3.10
Revision:     93012
Edition:
Description:  USB 2.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM with                                                                                                                                                              E1000 support.
VRDE Module:  VBoxVRDP
Usable:       true
Why unusable:
[Michael@devserver ~]$

Do I need additional extensions to better interact with the guest? How are they installed? Thank you

Format A Hard Drive To Work On Machine (dell 32-bit). Have Installed New 1 TB Drive

Want to format a 1 TB Western Digital drive in an old dell 32 bit machine. Machine has Lubuntu installed and a Virtual machine on which which is loaded Windows 7 (32 bit).

Machine does not "see" the new 1 TB (SATA) drive after I physically install it in the machine.

I have other windows and Linux machines. I have some drive cradles in which I can connect to (windows) USB ports.

Is it possible to use the old Dell machine to format the new drive?

(It appears that this question has been answered before. So I will check those materials as well.)

Thanks for any assistance.

Geoffrey Wolfe

Help Modifying Text With User Input

Hello,

I apologize in advance for my limited UNIX scripting knowledge. I am new to it and really want to learn.

I am trying to write a bash script that updates a config file based on user input.

What is the best method for accomplishing this? I need it to prompt the user for two variables, find the location in the config file, and insert new text with the two variables.

I was thinking I could use sed to find the text in the config file where the new text must be inserted before and replace it with the new text, two variables, and same ending text as before. Example:

echo "1st variable?"
read variable1

echo "2nd variable?"
read variable2

sed -e "s|<the spot in the config file that needs new config>|sometext...$variable2_somemoretext...$variable1\n<the spot in the config file that needs new config>|g" config > config2


This works except variable2 is not inserted into the replace string, only variable1 is. This is the result in config2:

sometext..._somemoretext...$variable1
<the spot in the config file that needs new config>


If anyone can tell me why variable2 isn't working in the sed replace string, or if there's a much better way for accomplishing what I'm after, I'd appreciate any help I can get.

How To Communicate Two Linux Virtual Machine

I have installed two virtual Linux(RHEL7)servers on VMWARE 11 and I need help on how to connect those servers to each other and my base machine is having windows 7 64 bit OS

So can anybody please help me out with this one

.tar.gz 111GB Extracting Fails

Hi guys

We are trying to move Oracle applications database tier archive, that is 111GB (over Linux) to a USB external drive using cp. Though the file successfully gets transferred to the external drive, trying to extract the file from a 2nd machine always fails, saying the archive is corrupt.
We have checked the integrity of the archive using 7-zip, reporting no errors. However totally frustrated as our last few attempts were totally futile.

The interesting part is, if we do scp to transfer the file to 2nd machine, extraction doesn't fail.

Please let us know, how we can successfully move this archive to the 2nd machine which is at a remote location and no possibilities of setting up a FTP for such a huge size file.

Both the source and destination Linux distros are RHEL 5 Enterprise, 64Bit, ext3 file systems.


regards,

Where Can I Get Useful Information To Educate Myself About Debian?

hi guys,

im new here and new to linux, im currently running windows 8.1 but ive heard that linux is better than windows, and i want to drop windows forever, ive been using windows my entire life, it worked well enough but now windows 8.1 sucks and i want to use linux, its free and awesome.


im running debian wheezy 7.8 on a virtual machine i want to get to know it in the virtual machine and eventually move over to debian entirerly.

i was wondering if you guys knew some places where i could educate myself about debian and how it works?

i cant seems to play videos on debian, how can i into videos?

Calculation Using Variable Inside Variable

I have some variables which have stored numerical values like
Quote:
A1=10 A2=20 A3=25
B1=10 B2=15 B3=12 and so on
As well as another set of variables which stored these variables like
Quote:
var1=A1 var2=A2 var3=A3
var4=B1 var5=B2 var6=B3 and so on
I have to calculated things using second set of variable.
In the script, there is line
Code:
read number

user will enter number manually, suppose 500
I have to calculate using
Code:
expr 500 \* ${$var1} / 100

and output of this multiplied by
Code:
expr $above_output \* ${$var2} /100

and output of this multiplied by
Code:
expr $above_output \* ${$var3} /100

But not able to deal with two levels of variable. The calculation will be hard when it comes for three level and four level.

Please help.

Zenity Radiolist Parameters In Variables

Note: Ubuntu 14 latest release

I am a highly experienced unix user with many years of experience. However, I retired 13 years ago so I can't remember some simple things so forgive me for posting here.

I am trying to use the "zenity --list --radiolist" command. Now this requires that the list of items be last and be of the form FALSE <item name> as in FALSE "Choice 1" FALSE "Choice 2" That's easy without variables. It would be zenity --list --radiolist [other options here] FALSE "Choice 1" FALSE "Choice 2 Works fine.

But what I have is a list of choices in an array. Each of these is a string of multiple words and I have tried (nearly?) everything using echo command piped into zenity (supposed to work) to including an array element in the line with all sorts of quotes, single quotes, escaping quotes, etc. I have even included the "FALSE" in the variable so as not to have to generate it. Nothing works. When using the set -x, it shows that the shell has put a single quote around each word which makes each word a separate parameter.

I have searched all sorts of examples of zenity but the requirement for the word "FALSE" between each item while using variables is never shown.

If anyone has a working example of something like this (or any simple alternative:
JTemp[3]="This is a string"
echo "FALSE "${Jtemp[3]} | zenity --list --radiolist --text "Select Topic" --column "Topic" --column "Pick one" which should display a radiobox with one entry, I would appreciate it. I could then expand it to include all the array elements.

I know I am doing something simple wrong. I just can't figure it out.

Note that I am writing this on a windows machine and using a non-internet-connected linux machine for my work so if I typed the command line wrong, it may be a problem here and not on the real machine.

Thanks for any help.

How To Set The Time Of The Virtual Machine Same As The Host Machine

is it possible to set the time of the virtual machine according to the host system on which it is installed????
i tried to do it by enabling the "hardware clock in UTC time" in the Motherboard tab.. but it is giving me the time in UTC format.. but i want it in IST format.. can anyone help me in this.



Thanks in Advance