06-20-2008
Are these two machines similar? Do they run the same OS? The same version of the same OS? The same version of awk?
Details, please.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
All,
I have a script that runs on 2 servers and there seems to be something wrong. It's producing different results on the 2 servers.
Here is the script on server1 which is behaving correctly but on 2 behaving differently.
2nd server:
I couldn't make out whats the error is?... (5 Replies)
Discussion started by: mhssatya
5 Replies
2. Shell Programming and Scripting
Im trying to execute the below command on our server to list files and replace the newline in the file list with spaces, but the character 'n' is getting replaced with a space, is there any environment variable that needs to be set in UNIX?
sh -c 'ls -trx... (1 Reply)
Discussion started by: rameshrr3
1 Replies
3. UNIX for Dummies Questions & Answers
My file has
k
s
j
v
l
k
a
s
f
l
k
s
a
d
f
j
l
a
s (3 Replies)
Discussion started by: phoenix_nebula
3 Replies
4. Hardware
Hello, I am in training in a small company and my boss asked me to compare an offer he had from SUN/Oracle on a server with the price in second hand. But i don't know who i should ask for that as everybody do that according to Google. Can you help me please? Thanks for your answer.
KT :o (1 Reply)
Discussion started by: Katy_Jeffrey
1 Replies
5. Shell Programming and Scripting
Hi,
I need to count number of '$' symbol in a file and assign it to a variable.
I am using below command.
grep -c '\$' inputfile
O/p:
10359
Its giving correct o/p but when I am assigning the same to a variable its giving completely different o/p.
ab1=`grep -c '\$' inputfile`
$... (3 Replies)
Discussion started by: Opamps123
3 Replies
6. Shell Programming and Scripting
Hi
I have this check in file for replacing text in unix .This code use to work in linux but stopped working when we moved to unix.
cat xyz.dat | awk '/\x07/{sub(/\"/,"")};{print}'|awk '/\x07/{sub(/\"\,\"/,"\x07")};{print}'|awk '/\x07/{sub(/\"\,\"/,"\x07")};{print}'|awk... (5 Replies)
Discussion started by: er_zeeshan05
5 Replies
7. Shell Programming and Scripting
Here is my test script:
#!/bin/sh
result=`jobs`
echo "
Jobs:
"$result
result=`ls`
echo "
LS
"$result
Here is the output:
Jobs:
LS
0 1 2 3 4 5 6 7 gcd initialize.sh #inter_round_clean.sh# inter_round_clean.sh inter_round_clean.sh~ look parallel_first_run.sh... (3 Replies)
Discussion started by: nealh
3 Replies
8. UNIX for Advanced & Expert Users
Hi,
We have few hundered scripts using cut command in thousands of lines. On HP-UX shell script developer used echo "ABCEFG" | cut -c -1-3 to cut first three character of the string. We recently moved to Linux and this command throws error. I think this might be due to different version of... (3 Replies)
Discussion started by: ajazurrahman
3 Replies
9. Shell Programming and Scripting
HI all
I have written a ksh to execute PL/sql procedure and generate the log file. The script is working fine to the extent of calling the taking input, executing PL/SQL procedure.
On one server the log file is getting generated properly. i,e it shows the DBMS output . The log file size was... (9 Replies)
Discussion started by: ramakrishnakini
9 Replies
10. Shell Programming and Scripting
Hi,
Immediate help on below will be appreciated.
I have to read a file (max of 10MB) which will have no new line characters, i.e. data in single line. and have to inster '\n' at every 100 characters. and if record starts with 'BUCA' then need to pick value of length 10 at position 71 and... (7 Replies)
Discussion started by: maks475
7 Replies
LEARN ABOUT OSX
localemanager
localemanager(8) BSD System Manager's Manual localemanager(8)
NAME
localemanager -- Configure OpenDirectory Server Locales
SYNOPSIS
localemanager operation [-l localename] [-subnet 1.2.3.4/5] [-server servername] [-i IP address]
DESCRIPTION
localemanager creates, destroys, and edits OpenDirectory Server Locale information. Locales are collections of OpenDirectory servers to
assist clients in locating the nearest OpenDirectory Server.
To use OpenDirectory Server Locales, simply create a locale on an OD server with the createLocale operation. Then add servers and subnets to
the locale. All localemanager operations are performed on the local OpenDirectory node.
The first time a locale is created, a DefaultLocale will automatically be created as well. The DefaultLocale will be used for any clients
that don't match a subnet in any other locale.
Before a locale can be configured, the server must already be an OpenDirectory server.
Locales can be defined on each of the OD servers or on a single OD server in the group of OD master/replicas. For the latter, the locale
information will get replicated to all of the other servers but locales will need to be "enabled" on the other servers by running the command
localemanager enableLocales.
Commands:
help Displays the commands and options.
createLocale Creates a new locale on the local OD server. This command requires the -l option.
deleteLocale Deletes a locale from the local OD server. This command requires the -l option.
showLocale Displays the current locale(s). The -l option can be used to display a specific locale. If -l is not specified, all locales
are displayed.
enableLocales
Enables the use of locales on an OD server. This command is automatically run the first time any localemanager command is run
on an OD server. Therefore this command only needs to be run if no other localemanager commands have been (or will be) run on
this server.
addSubnet Adds a new subnet to the specified locale. This command requires the -l -subnet options.
removeSubnet Removes a subnet from the specified locale. This command requires -l -subnet options.
addServer Adds a server to the specified locale. This command requires the -l -server options. If the -i option is specified, that IP
address will be used by locale clients. This may be useful for multi-homed servers to restrict locale clients to a specific
network interface. If the -i option is not specified the IP address(es) will be looked up.
removeServer Removes a server from the specified locale. This command requires -l -server options. If the -i option is specified, only
that IP address will be removed from the locale. If the -i option is no specified, all of the server's IP addresses will be
removed from the locale.
Options:
-l locale Locale name.
-subnet 192.168.0.0/16
Subnet specified in CIDR notation.
-server server.example.com
Server fully-qualified domain name.
-i 192.168.1.1
Use this IP address for the server. Typically used to limit locale clients to a specific interface on a multi-homed server.
FILES
/var/log/localemanager.log localemanager log file.
SEE ALSO
slapconfig(8)
HISTORY
First introduced in Mac OS X 10.7
Darwin June 2, 2019 Darwin