In shell scripts, anything code the follows the # sign will be ignored until the end of the line (with the exception of the first line...see Perderabo's excellent write-up in the FAQ).
So what you want to do is "source-in" the file that contains the variables. Lets say that file is filea. In your script, put a line like this.
Hi,
I am new to the unix networking.
I have written one client and server for UDP sockets..
I got the following errors while conpilation
I have include all include files.
Could some one help ...is there any other file to be included.....?
will the include files change on different unix... (3 Replies)
Hi,
In my code,I come across include statements with $ sign what it represents...
$include "getsum.h" /* This how I seen in my code */
Sarwan (5 Replies)
I want to include all the subnet files under /etc/dhcpd/ to /etc/dhcpd.conf
so here is my content of dhcpd.conf
...
include "/etc/dhcpd/*";
however, the check-syntax reports syntax error, as they do not recognize the wildcard *, and display that " file /etc/dhcpd/* could not be found.
... (1 Reply)
Hi,
I have an easy question...
My ksh script has a section with non ksh script in it - let's pretent it is VBA code. I need to include this vba script in my ksh script into so that my VBA script can be reused elsewhere by other ksh script by "$include" into other ksh scripts. What is the syntax... (3 Replies)
Hi there,
I'm working on a c++ project and I need to use some libraries which are part of a framework. I installed it on my home directory, and alle the .hh are located in subdirs of my home.
I'd like to include the files I need just as if they where std c header, that is:
#include... (2 Replies)
Hello,
I have a script and a second file that contains all parameters needed for the script.
How can I include this file in the script ?
I tried source but I have a "no such file or directory" error.
:) (1 Reply)
Hi Experts,
Greetings! ,
I have a list of lvs that is having 3 column separated by / .
Want to add "r" after the 3rd / :
/dev/vgdbnhpu/u01
/dev/vgdbnhpu/u02
/dev/vgdbnhpu/u03
/dev/vgdbnhpu/u04
/dev/vgdbnhpu/u05
/dev/vgdbnhpu/u06
/dev/vgdbnhpu/u07
/dev/vgdbnhpu/u08... (4 Replies)
i have three files
a.h t.c and p.c
a.h has 3 functions only and does not include anything
p.c has one function i made called go
t.c has a main function and calls the go function, it includes a.h only
i run the program using
gcc -Wall -g -o t p.c t.c
but i get a warning, implicet... (2 Replies)
RHEL 5.4
I'm trying to use %include statements in my kickstarts, and am running into some problems.
In %pre, I can %include /mnt/source/isolinux/setup-questions and that works just fine. One of the things it does is echo out several variables to /tmp/vars In %post --nochroot, I copy... (2 Replies)
I have an implementation file tomog.cpp that implements a class called Tomog where I need to include its header file which resides in another place.
How can I best specify the include file? I would not like to do
#include "../../tomso/tomography/tomog.hpp"
I wish to do instead
... (3 Replies)