12-14-2005
ans of compilation
first save your program with .c extension then,
enter the command
cc <file name>
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Suppose I have a script which is monitoring a directory
whenever a file drops in that directory,it sends alert
say I want to write a return code for the above script
which on successful execution of script gives a return value
Based on return code , I want to do initiate some jobs in other... (1 Reply)
Discussion started by: abhib45
1 Replies
2. Programming
for the pseudocode "parbegin(p1,p2)"
how to write codes?
p1,p2 are threads function.
void p1()
{
...
}
void p2()
{
...
}
void main()
{
parbegin(p1,p2);
} (2 Replies)
Discussion started by: zhshqzyc
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I know how to read a return code after executing a single command.
"echo $?". But I do not know how to sum the return code for a group of commands.
If I string 3 commands together and I do an echo $? all I get is the retunr code for the last command. Example below:
... (3 Replies)
Discussion started by: z1tt45uuprs7
3 Replies
4. UNIX for Dummies Questions & Answers
Hi Thanks to one who helped me to create a new thread
I am so new to unix and trying to learn the stuff
Thanks for all the help I am getting here
I wanted to execute if loop like
if( x=y || (x=z && x=q))
{
some statements
}
Can I get help how to do write the if loop in unix shell... (5 Replies)
Discussion started by: pinky
5 Replies
5. Shell Programming and Scripting
Hi
I have a directory where sometimes a file will come (in a name format say file001.txt).
I want to run a job (.ksh file) as soon as a new file comes into the directory.
How can I write a shell script which will run in the background and monitor arrival of new file in the directory?
... (11 Replies)
Discussion started by: sbasak
11 Replies
6. Shell Programming and Scripting
unix script must do the fiollowing
open a file containing comma delimited records
> each record contains 10 fields
> removes the 2nd field and use that same field containing fields 2 to 10
the original record after fprocessing should containing fields 1 and 3
a new erecord must be... (10 Replies)
Discussion started by: dwightja
10 Replies
7. UNIX and Linux Applications
Hi Friends,
I need your help in understanding this: :rolleyes:
I want to print the error numbers returned by the system calls (not the actual integers but the strings that they match to). The error numbers like EACCESS, ENOMEM, ENOENT etc ...
For eg:
returnCode = open(somefile,... (2 Replies)
Discussion started by: vijaya2006
2 Replies
8. IP Networking
Hi,
We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
Discussion started by: swatidas11
1 Replies
9. Shell Programming and Scripting
Could someone please correctly tell the codes to use on Unix operating systems to produce the below diacritics:
A
Ā = Unicode Character 'LATIN CAPITAL LETTER A WITH MACRON' (U+0100)
a
ā = Unicode Character 'LATIN SMALL LETTER A WITH MACRON' (U+0101)
D
Ḍ = Unicode Character... (1 Reply)
Discussion started by: Krishna Birth
1 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
We have a HTML source which will be processed using a informatica workflow. In between these two we have a Unix script which transforms the file.
We are getting an error from past week in the informatica saying invalid format, because the file has unused html reference (0-8,14-31 etc)... (2 Replies)
Discussion started by: karthik adiga
2 Replies
make(3erl) Erlang Module Definition make(3erl)
NAME
make - A Make Utility for Erlang
DESCRIPTION
The module make provides a set of functions similar to the UNIX type Make functions.
EXPORTS
all() -> up_to_date | error
all(Options) -> up_to_date | error
Types Options = [Option]
Option = noexec | load | netload | <compiler option>
This function first looks in the current working directory for a file named Emakefile (see below) specifying the set of modules to
compile and the compile options to use. If no such file is found, the set of modules to compile defaults to all modules in the cur-
rent working directory.
Traversing the set of modules, it then recompiles every module for which at least one of the following conditions apply:
* there is no object file, or
* the source file has been modified since it was last compiled, or,
* an include file has been modified since the source file was last compiled.
As a side effect, the function prints the name of each module it tries to compile. If compilation fails for a module, the make pro-
cedure stops and error is returned.
Options is a list of make- and compiler options. The following make options exist:
* noexec
No execution mode. Just prints the name of each module that needs to be compiled.
* load
Load mode. Loads all recompiled modules.
* netload
Net load mode. Loads all recompiled modules an all known nodes.
All items in Options that are not make options are assumed to be compiler options and are passed as-is to compile:file/2 . Options
defaults to [] .
files(ModFiles) -> up_to_date | error
files(ModFiles, Options) -> up_to_date | error
Types ModFiles = [Module | File]
Module = atom()
File = string()
Options = [Option]
Option = noexec | load | netload | <compiler option>
files/1,2 does exactly the same thing as all/0,1 but for the specified ModFiles , which is a list of module or file names. The file
extension .erl may be omitted.
The Emakefile (if it exists) in the current directory is searched for compiler options for each module. If a given module does not
exist in Emakefile or if Emakefile does not exist, the module is still compiled.
EMAKEFILE
make:all/0,1 and make:files/1,2 looks in the current working directory for a file named Emakefile . If it exists, Emakefile should contain
elements like this:
Modules.
{Modules,Options}.
Modules is an atom or a list of atoms. It can be
* a module name, e.g. file1
* a module name in another directory, e.g. ../foo/file3
* a set of modules specified with a wildcards, e.g. 'file*'
* a wildcard indicating all modules in current directory, i.e. '*'
* a list of any of the above, e.g. ['file*','../foo/file3','File4']
Options is a list of compiler options.
Emakefile is read from top to bottom. If a module matches more than one entry, the first match is valid. For example, the following Emake-
file means that file1 shall be compiled with the options [debug_info,{i,"../foo"}] , while all other files in the current directory shall
be compiled with only the debug_info flag.
{'file1',[debug_info,{i,"../foo"}]}.
{'*',[debug_info]}.
Ericsson AB tools 2.6.6.3 make(3erl)