By "dynamic" I mean that information received from a router (acting as the local DHCP server) may include DNS server ip addresses (for your local ISP) which a network manangement package might insert into your /etc/resolv.conf without you knowing. Therefore when you
you may see addresses that you didn't expect.
But by "dynamic" I don't mean that it changes continuously, no.
Obviously, in this type of configuration, the router#s ip address is configured as the "gateway" and also the DHCP server. Without that the client has no chance of being fed DNS information.
Hi,
Iam calling a C program from a Unix shell script. The (C) program reads encrypted username/password from a text file , decrypts and returns the decrypted string.
Is there any way i can return the decrypted string to Unix shell program.
My shell script uses the output of the program to... (11 Replies)
Hi all,
In my application i am trying to select some text & then give it to print. for this i am opening a stream using popen & then later closing using pclose.
Now this is working fine in my environment (solaris) but the pclose function is failing at my clients m/c. Even though print is... (3 Replies)
Hi,
I'm having a requirement where I need to call a C program from a shell script and return the value from the C program to shell script.
I refered a thread in this forum. But using that command in the code, it is throwing an error
clear_text_password=$(get_password)
Error: bash:... (24 Replies)
Hi all,
I am very new to BASH shell programming. I need to return an integer from a function to the caller function. I did this:
but it keeps giving me wrong return:
Can someone help me out here, please?
Thanks (2 Replies)
Hi
Need some help, bit of a noobie here.
This command work perfectly with unix. returns a value of 1 which is what i want.
ps -eo user,comm |grep -v grep |grep -c /path to file
When i run the same command on a linux server it returns a value of 0.,
something maybe wrong with the command.... (4 Replies)
i have an oracle function which returns two values, one is the error message if the function encounters anything and another one which returns a number
i need to capture both
and pass it on to unix shell script
how to do it (2 Replies)
Dear Friends,
I need your help once more.
I want to write a simple select as follows
select amount from books
where sr=1234
However, if value of "Amount" is negative then it should print it as follows.
"3000-" and not as "-3000"
Can you help me in this?
Waiting for reply
Anu. (2 Replies)
Hi All,
My program flow is as below
Windows batch -- > Cygwin batch --> zsh script
There are multiple Cygwin batch scripts that are called from Windows batch file . But when i am executing the first cygwin batch script the control goes to the zsh file and executes and stoping from... (1 Reply)
Hello All,
I have a UNIX script which will prepare anonymous oracle pl/sql block in a temporary file in run time and passes this file to sqlplus as given below.
cat > $v_Input_File 2>>$v_Log << EOF
BEGIN
EXECUTE IMMEDIATE 'ALTER SESSION FORCE PARALLEL DML PARALLEL 16';
EXECUTE... (1 Reply)
Hello All,
I have exactly same issue @vikas_trl had in following link:
https://www.unix.com/shell-programming-and-scripting/259854-control-not-returning-sqlplus-calling-unix-shell-script.html
I wonder if he or somebody else could find the issue's cause or the solution.
Any help would... (4 Replies)
Discussion started by: RicardoQ
4 Replies
LEARN ABOUT OSF1
nets
nets(4) Kernel Interfaces Manual nets(4)NAME
nets - JOIN DHCP server database
DESCRIPTION
The nets file is employed by joind, the JOIN DHCP server, to tell it which networks to administer and the ranges of IP addresses available
for dynamic assignment on each of those networks.
FORMAT
Blank lines and lines beginning with the number sign (#) are ignored. Entries are separated from one another by newline characters.
Entries consist of three fields: the network number (expressed as an IP address), the IP address or name of a host running joind, which
dynamically configures clients on the network, and a range of available addresses for dynamic allocation to hosts on the net. The range is
expressed as a pair of IP addresses separated with a dash (-). There must be no whitespace separating the dash from the IP addresses.
Several servers may administer a single network, and a single server may administer several networks. Each network-server pair may have
several ranges of IP addresses available for dynamic allocation. The network and server IP addresses do not have to be repeated for each
entry. A line containing a single field is assumed to be an IP range with the same server and network as the previous entry: a line of two
fields is assumed to be a server address and IP range with the same network as the preceding entry.
The ranges of addresses served by each cooperating server must be disjoint. This condition is checked by the server on startup.
RELATED INFORMATION joind(8), join.ipaddresses(4) delim off
nets(4)