10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, all
I just came to new system with RH, and it has alot of macros I was told to use, but I can't find how to open it for display or for edit, can you help me please, is it all about make/makefile?
let say I have macro <trx> like this, that does a lot of things:
>$ trx
... creating new... (1 Reply)
Discussion started by: trento17
1 Replies
2. Programming
I have a PORT_NUM macro (10 digits long number)
in a server file, if i do
htons(PORT_NUM)
i get
warning: this decimal constant is unsigned only in ISO C90
warning: large integer implicitly truncated to unsigned type
whats wrong with this? (2 Replies)
Discussion started by: omega666
2 Replies
3. Shell Programming and Scripting
Hi,
I'm trying to come up with a simple expect script that allows me to login to a system and run a single command ... something like this:
#!/usr/bin/expect -f
# let's set some variables
#set password
set ipaddr
set ponumber
set hostname
set timeout -1
# let's now connect to the... (0 Replies)
Discussion started by: danielsf
0 Replies
4. UNIX for Advanced & Expert Users
Hi,
I've some existing scripts wherein am using ftp + .netrc. I've defined my macros in .netrc file.
I want to switch to sftp now but it seems it doesn't support macros and .netrc and it gives "command invalid" error.
Is there any other alternative?
Note: I don't want help for... (1 Reply)
Discussion started by: ps51517
1 Replies
5. Linux
Masters,
I am trying to learn the serial mouse driver for linux kernel. On the kernel source tree I find out these macros and I am unable to find out the meaning of these macros. Please anyone help me to understand these.
These macros are defined in linux/serio.h... (2 Replies)
Discussion started by: iamjayanth
2 Replies
6. UNIX for Dummies Questions & Answers
I want to build a Makefile that simply takes a template file and modifies it (sed or perl, probably) before installing the result in the right place - my problem is creating the variable for substitution...
So I have
SYSTEM = SYS1 SYS2
SYS1_CHANNELS = CHANNEL1 CHANNEL2 CHANNEL4... (1 Reply)
Discussion started by: JerryHone
1 Replies
7. Programming
This might be poorly worded.
In the header file, I have
#ifdef LOCK_FCNTL
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#define LOCK(file) setlock(fileno(file), F_WRLCK);
#define UNLOCK(file) setlock(fileno(file), F_UNLCK);
#endif /* LOCK_FCNTL */
#ifdef LOCK_FLOCK
#ifdef... (1 Reply)
Discussion started by: frequency8
1 Replies
8. Programming
The following is taken from some production code:
#ifdef LOCK_LOCKF
#ifdef HAVE_SYS_FILE_H
#include <sys/lockf.h>
#endif
#ifdef HAVE_SYS_FILE_H
#include <sys/file.h>
#endif
#define LOCK(file) fseek(file, 0L, 0), lockf(file, 1, 0L)
#define UNLOCK(file) fseek(file, 0L, 0),... (2 Replies)
Discussion started by: frequency8
2 Replies
9. UNIX for Dummies Questions & Answers
The question is , as the topic says, how does one save macros for VIM in the .vimrc.
I had a look on web and it gave all this ****** about how to build turing machines in vim code or something but i just want to store a macro to like :
if(){
}
I know how to do it IN vim but .vimrc??????!?!?!... (3 Replies)
Discussion started by: yngwie
3 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I'm going write a small handbook. The typesetting software I'm going to use is troff. There are -ms -me -mm macros for troff. Which one is the most suitable? Thanks!
-Tony (2 Replies)
Discussion started by: tonyt
2 Replies
CHECKNR(1) BSD General Commands Manual CHECKNR(1)
NAME
checknr -- check nroff/troff files
SYNOPSIS
checknr [-fs] [-a.x1.y1.x2.y2. ... .xn.yn] [-c.x1.x2.x3 ... .xn] file
DESCRIPTION
checknr checks a list of nroff(1) or troff(1) input files for certain kinds of errors involving mismatched opening and closing delimiters and
unknown commands. If no files are specified, checknr checks the standard input.
Recognized options are:
-a Add additional pairs of macros to the list of known macros. This must be followed by groups of six characters, each group defin-
ing a pair of macros. The six characters are a period, the first macro name, another period, and the second macro name. For
example, to define a pair .BS and .ES, use '-a.BS.ES'.
-c Define commands which would otherwise be complained about as undefined.
-f Request checknr to ignore 'f' font changes.
-s Ignore 's' size changes.
Delimiters checked are:
1. Font changes using fx ... fP.
2. Size changes using sx ... s0.
3. Macros that come in open ... close forms, for example, the .TS and .TE macros which must always come in pairs.
checknr is intended for use on documents that are prepared with checknr in mind, much the same as lint(1). It expects a certain document
writing style for 'f' and 's' commands, in that each 'fx' must be terminated with 'fP' and each 'sx' must be terminated with 's0'.
While it will work to directly go into the next font or explicitly specify the original font or point size, and many existing documents actu-
ally do this, such a practice will produce complaints from checknr. Since it is probably better to use the 'fP' and 's0' forms anyway, you
should think of this as a contribution to your document preparation style.
checknr knows about the ms(7) and me(7) macro packages, as well as the macros from mdoc(7).
DIAGNOSTICS
Complaints about unmatched delimiters. Complaints about unrecognized commands. Various complaints about the syntax of commands.
SEE ALSO
nroff(1), troff(1), mdoc(7), me(7), ms(7)
HISTORY
The checknr command appeared in 4.0BSD. Basic mdoc(7) support appeared in NetBSD 1.6.
BUGS
There is no way to define a 1 character macro name using -a.
Does not correctly recognize certain reasonable constructs, such as conditionals.
mdoc(7) macros that are not at the beginning of the line are not recognized. Among others, this results in too many 'Unmatched Zz' errors.
BSD
January 21, 2002 BSD