I am very new to the world of Unix, in the middle of a crash course as I write this due to a system failure for my company. This system went down approximately 24 hours ago due to some apparent thunderstorms that passed through. The problem is that my company, like many others, has laid off... (5 Replies)
fatal server error:
couldn't open x pointer device! is one attached?
xinit: connection refused (errno 239): unable to connect to X server
xinit: no such process (errno3): server error. (1 Reply)
$ errpt | more
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
3074FEB7 0802050205 T H fscsi1 ADAPTER ERROR
B8113DD1 0802050205 T H fcs1 LINK ERROR
B8113DD1 0802050205 T H fcs1 LINK ERROR
3074FEB7 0802050205 T H fscsi0 ADAPTER ERROR
B8113DD1 ... (0 Replies)
$ errpt | more
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
3074FEB7 0802050205 T H fscsi1 ADAPTER ERROR
B8113DD1 0802050205 T H fcs1 LINK ERROR
B8113DD1 0802050205 T H fcs1 LINK ERROR
3074FEB7 0802050205 T H fscsi0 ADAPTER ERROR
B8113DD1 ... (2 Replies)
I'm trying to set up x2x between my desktop and laptop, and as a precondition to that, I'm just trying to get each to be able to display programs on the other (e.g. "desktop$ xterm -display laptop:0").
OS is Ubuntu 5.10 and X version is X.org 6.8.2
I've set up X to run without -nolisten, and... (1 Reply)
hi
i have written a program to display files in a directory
but it doesnt compile on the sun/solaris system....
im using gcc(inbuilt compiler)
im generally used to working on a windows environment so maybe im overlookiing something
ive added comments to help readability of the program
i also... (2 Replies)
Hi all, dummy here.... I have major errors on entering the shell. On login I get:
-bash: dircolors: command not found
-bash: tr: command not found
-bash: fgrep: command not found
-bash: grep: command not found
-bash: grep: command not found
-bash: id: command not found
-bash: [: =: unary... (12 Replies)
Hi,
I can see "udpInOverflows" errors when I execute 'netstat -s' on my Solaris box.
The number of errors are small - about 40.
e.g.
$ netstat -s|grep udp
UDP udpInDatagrams =1249190732 udpInErrors = 0
udpOutDatagrams =31663030 udpOutErrors = 0... (1 Reply)
Hi I am new to shell scripting. I am using a shell script to create a SQL script file and then call it as well. The created SQL script file has calls to 2 other sql script file, as well as compile and execute a procedure. all this works fine. I am getting some simple errors. My code is as below
... (8 Replies)
Discussion started by: man_expo
8 Replies
LEARN ABOUT LINUX
erl_lint
erl_lint(3erl) Erlang Module Definition erl_lint(3erl)NAME
erl_lint - The Erlang Code Linter
DESCRIPTION
This module is used to check Erlang code for illegal syntax and other bugs. It also warns against coding practices which are not recom-
mended.
The errors detected include:
* redefined and undefined functions
* unbound and unsafe variables
* illegal record usage.
Warnings include:
* unused functions and imports
* unused variables
* variables imported into matches
* variables exported from if / case / receive
* variables shadowed in lambdas and list comprehensions.
Some of the warnings are optional, and can be turned on by giving the appropriate option, described below.
The functions in this module are invoked automatically by the Erlang compiler and there is no reason to invoke these functions separately
unless you have written your own Erlang compiler.
EXPORTS
module(AbsForms) -> {ok,Warnings} | {error,Errors,Warnings}
module(AbsForms, FileName) -> {ok,Warnings} | {error,Errors,Warnings}
module(AbsForms, FileName, CompileOptions) -> {ok,Warnings} | {error,Errors,Warnings}
Types AbsForms = [term()]
FileName = FileName2 = atom() | string()
Warnings = Errors = [{Filename2,[ErrorInfo]}]
ErrorInfo = see separate description below.
CompileOptions = [term()]
This function checks all the forms in a module for errors. It returns:
{ok,Warnings} :
There were no errors in the module.
{error,Errors,Warnings} :
There were errors in the module.
Since this module is of interest only to the maintainers of the compiler, and to avoid having the same description in two places to
avoid the usual maintenance nightmare, the elements of Options that control the warnings are only described in compile(3erl) .
The AbsForms of a module which comes from a file that is read through epp , the Erlang pre-processor, can come from many files. This
means that any references to errors must include the file name (see epp(3erl) , or parser erl_parse(3erl) ). The warnings and errors
returned have the following format:
[{FileName2,[ErrorInfo]}]
The errors and warnings are listed in the order in which they are encountered in the forms. This means that the errors from one file
may be split into different entries in the list of errors.
is_guard_test(Expr) -> bool()
Types Expr = term()
This function tests if Expr is a legal guard test. Expr is an Erlang term representing the abstract form for the expression.
erl_parse:parse_exprs(Tokens) can be used to generate a list of Expr .
format_error(ErrorDescriptor) -> Chars
Types ErrorDescriptor = errordesc()
Chars = [char() | Chars]
Takes an ErrorDescriptor and returns a string which describes the error or warning. This function is usually called implicitly when
processing an ErrorInfo structure (see below).
ERROR INFORMATION
The ErrorInfo mentioned above is the standard ErrorInfo structure which is returned from all IO modules. It has the following format:
{ErrorLine, Module, ErrorDescriptor}
A string which describes the error is obtained with the following call:
Module:format_error(ErrorDescriptor)
SEE ALSO erl_parse(3erl) , epp(3erl)Ericsson AB stdlib 1.17.3 erl_lint(3erl)