Meaing of the '$' in a command.
I have the following command which I think must be changed.
Is the $ a variable and should I change it to my names? mydestination = $myhostname localhost.$mydomain localhost $mydomain Should $myhostname be changed something like my host name such as mydestination = $spacewalker localhost.$spacewalker localhost $spacewalker If the $ is a variable should I leave it off? Thanks |
It may be indicating a variable, but I think the entire word would be indicating a variable.
$myhostname = spacewalker $mydomain = local Unless you are on a domain... |
Quote:
It would be nice if you gave people some context - where did you dig these lines up? Is it code, is it a config file? What is its purpose? Cheers, Tink |
I would also add that looking at the example so far there are no commands at all. What I see is a variable being set to a value, but as Tink says, for what
we have no idea without context. |
Sorry about that, I remember getting it from the main.cf file in Postfix
|
Yes, it is from the main.cf config file in Postfix. The file "... specifies a very small subset of all the parameters that control the operation of the Postfix mail system ..."
If you do a Google search for the entire string "mydestination = $myhostname localhost.$mydomain localhost $mydomain" then you'll see numerous Postfix-related sites which deal with it in one way or the other. A good start would be at the following Postfix page: www.postfix.org/BASIC_CONFIGURATION_README.html |
Hello, i'm not entirely sure what you mean, but i'm just gonna throw this out there. if you're talking about the dollar sign after your users name, that just indicates you're signed as a user. as root it will no longer display a dollar sign but instead a hash, "#".
|
Quote:
|
hey calm down, if im talking about the wrong thing then the op can just ignore my post, no halm done. as for the shell, ive only used bash, so i'm not aware of how others display.
|
Quote:
Code:
bash-X.X$ Code:
username@hostname:current-dir$ |
mydestination = $myhostname localhost.$mydomain localhost $mydomain
So, I'm really sorry but a simple straight for answer would really help and I know you all have been trying: Do for the example above is the $myhostname variable change to my name such as $spacewalker??? BTW, I'm on the U.S. East Coast and couldn't answer before because of electrice outages. |
I really think you'd find more help at a site dealing with Postfix issues, such as the one I suggested a day or two back. It is a Postfix file, and you're asking about Postfix configuration.
|
All times are GMT -5. The time now is 12:32 AM. |