12-03-2004
The
solaris manual page is a lot better than most at describing this command (some of the *BSD's I've seen give a terse two sentence description)...
And yes, something along the lines of
DOMAINNAME=foo.net
inside /etc/sysconfig/network should do the trick.
You may also need to specify the local domain name in /etc/resolv.conf
Cheers
ZB
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm kindda confused about domainname and /etc/defaultdomain.
If I type domainname tesT.com, will this be added to /etc/defaultdomain or do I need to add manually on /etc/defaultdomain as well?...second question, if I type domainname tesT.com...is it case sensitive?
Thank you. (1 Reply)
Discussion started by: dookeobih
1 Replies
2. UNIX for Dummies Questions & Answers
is there a variable that controls whether the settings of the domainname and dnsdomainame, nisdomaname and hostname are global or local (as in static).. i keep setting the values for these commands and after a while they disappear. how can I keep one static value that will remain even after I have... (7 Replies)
Discussion started by: moxxx68
7 Replies
3. SuSE
Sir,
I using the following commands in a file (part of a bigger script):
#!/bin/bash
cd /opt/oracle/bin
ls -lt | tail -1 | awk '{print $6}' >> /tmp/ramb.out
If I run this from the command prompt the result is:
2007-05-16
if I run it as a cron job then... (5 Replies)
Discussion started by: rajranibl
5 Replies
4. AIX
AIX:Command to get netaddress/subnet address command in IPv4/IP6
Can anybody help us with a command to retrieve netaddress/subnet address command in IPv4/IP6 on aix machine.
net/subnet address is in the format 172.16.212.0(signifies all 255 machines in an IPv4 network) (2 Replies)
Discussion started by: rookie8278
2 Replies
5. Shell Programming and Scripting
Hi everyone,
when executing this command in unix:
echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error.
here is content of my script:
tdbsrvr$ vi hc.sh
"hc.sh" 22 lines, 509... (4 Replies)
Discussion started by: 4dirk1
4 Replies
6. IP Networking
Greetings all,
I have been battling with this problem for some time now, and I am not sure if I am just not seeing the obvious anymore or have made a stupid mistake, but I just can seem to get the reverse address in my network to run the right way.
Short description of my network:
I have a... (3 Replies)
Discussion started by: Adesso
3 Replies
7. UNIX for Advanced & Expert Users
Hi,
Well my title isn't very clear I think. So to understand my goal:
I have a script "test1"
#!/bin/bash
xvkbd -text blabla
with xbindkeys, I bind F5 key in order it runs my test1 script
So when I press F5, test1 runs.
I'm under Emacs/Vi and I press F5 in order to have "blabla" be... (0 Replies)
Discussion started by: xib.be
0 Replies
8. UNIX for Dummies Questions & Answers
HI Guys,
I hope you are well. I am trying to write a script that gets executed every time i open a shell (cshell). I have two questions about that
1) I need to enter these commands
$ echo $DISPLAY
$ setenv $DISPLAY output_of_echo_$display_command
How can i write a... (2 Replies)
Discussion started by: kaaliakahn
2 Replies
9. AIX
exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:
0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.1).
0509-150 Dependent module /opt/freeware/lib/libiconv.a(shr4.o) could not be loaded.
0509-152 Member... (4 Replies)
Discussion started by: Ohmkar
4 Replies
10. UNIX for Beginners Questions & Answers
Hello Forum,
I'm making very good progress on my report thanks to the very helpful people on this forum. I've been able to successfully create my report for my Red Hat servers. But I do have a few ubuntu servers in the mix and I'd like to capture some data from them when an ssh connection is... (8 Replies)
Discussion started by: greavette
8 Replies
LEARN ABOUT REDHAT
textdomain
TEXTDOMAIN(3) Library Functions Manual TEXTDOMAIN(3)
NAME
textdomain - set domain for future gettext() calls
SYNOPSIS
#include <libintl.h>
char * textdomain (const char * domainname);
DESCRIPTION
The textdomain function sets or retrieves the current message domain.
A message domain is a set of translatable msgid messages. Usually, every software package has its own message domain. The domain name is
used to determine the message catalog where a translation is looked up; it must be a non-empty string.
The current message domain is used by the gettext, ngettext functions, and by the dgettext, dcgettext, dngettext and dcngettext functions
when called with a NULL domainname argument.
If domainname is not NULL, the current message domain is set to domainname. The string the function stores internally is a copy of the
domainname argument.
If domainname is NULL, the function returns the current message domain.
RETURN VALUE
If successful, the textdomain function returns the current message domain, after possibly changing it. The resulting string is valid until
the next textdomain call and must not be modified or freed. If a memory allocation failure occurs, it sets errno to ENOMEM and returns
NULL.
ERRORS
The following error can occur, among others:
ENOMEM Not enough memory available.
BUGS
The return type ought to be const char *, but is char * to avoid warnings in C code predating ANSI C.
SEE ALSO
gettext(3), ngettext(3), bindtextdomain(3), bind_textdomain_codeset(3)
GNU gettext 0.11.4 May 2001 TEXTDOMAIN(3)