What does this mean (Resolved)
I am new to Linux and know nothing about command strings.
I know what this string means, ethernet0.virtualDev = "e1000" but what does its format say. Especially what does the "." mean. Best yet what should I study to find out this for myself. Thanks Frank |
Context
could you add some more context?
what were you doing? where did you find the string? etc... |
"e1000" means that is a literal string value, or type "string". It means literally what it says. A hex value looks like this 0xb0a0123, and is not shown in quotes, ever. A string value is like this, "Hello", and means the word Hello.
|
Looks like object oriented programming code.
"ethernet0" an object "virtualDev" a variable that is inside the object "e1000" the value the variable is set to Like taxtropel said, we need more info. |
What you have said is too little. We can not help you more!
|
Quote:
The string loads a different driver (e1000) then the default driver in a VM program I am learning. Frank |
still lacking a bit on the context side ;)
"in a VM program I am learning" is it a top-secret thing? if not, maybe giving the name could help. Did you find this string in the source code? in the configuration file? If it is code, then Sepero told you what it is, python example: Code:
class C: (note, python is probably installed on your machine, at the prompt, enter 'python' without quotes, you can cut and paste the code above. It should work.) If it is not code, then you should *really* say what it is... |
are you trying to hack into tweak something???
|
The dot means that variable "virtualDev" is inside of(belongs to) "ethernet0".
An object can have several variables inside of it. In a virtual machine program, you might have these statements like this: computer.processor = "AMD" computer.vcard = "nvidia" computer.sound = "AC' 97" |
Quote:
That is exactly what I was trying to understand. The line I gave was from my config file in VMware setup for a Linux distro I am learning. Would the format of the strings be in a particular language like Python or C. Thanks all Frank |
It is a bit long, but you probably should have a look how to ask questions the smart way that would save your time as well. Like telling in the first post it is in a config to vmware so that people do not need to guess...
And to answer, config files are usually not written in a specific language (sometimes xml, sometimes source-able from the shell, or anything else) but they do not have to obey specific rules. Often, it associates values, like your e1000 to keys, like ethernet0.virtualDev. And this can be relatively arbitrary. However, config files are also designed by programmers, who tend to think every body knows how their favorite language works and may as well reproduce features of code into the config file. If you want to change something, you should probably look for a tutorial on vmware config, look for a man page, or ask in the forum, very directly, what you want to do, a la: "I want to change the ethernet configuration from e1000 to blop300 in my vmware running a vista guest in an atari host, etc." with a sample (copy/paste) of the config file. Enjoy! |
Quote:
Thanks Frank |
All times are GMT -5. The time now is 04:29 AM. |