10 More Discussions You Might Find Interesting
1. Virtualization and Cloud Computing
Hi,
I'm trying to do this: Set up OpenSolaris with Qemu (Ubuntu is hostOS). I was able to get it up and running and I have installed it on my .img. But now I need internet connection. On my Ubuntu host I did this:
#brctl addbr br0
#tunctl
#brctl addif br0 wlan0
#brctl addif br0 tap0... (1 Reply)
Discussion started by: fisfia
1 Replies
2. UNIX for Dummies Questions & Answers
Hi everyone
In an existing crontab script for the root user, I've added 5 new lines of code, however for some unknown reason, these lines of code were not executed.
Here is what I did
30 0 * * * ./usr/people/atlab/jamesgoh/disk_reader/disk_reporter /picnic
30 0 * * *... (6 Replies)
Discussion started by: JamesGoh
6 Replies
3. Programming
Hi all
Im trying to compile a C++ program, however Im having issues trying to link a particular library to the compiling and linking statement.
Here is what Im doing
g++ mips4 -std=c++98 -g disk_reporter.cpp -o disk_reporter
If I do this alone, the linker complains that library... (2 Replies)
Discussion started by: JamesGoh
2 Replies
4. Programming
Im trying to write a program atm which uses mutexes to control thread access to a certain code section ( the critical section).
However, whenever I compile the code using gcc I get the following message from gcc
Unresolved text symbol "pthread_mutex_lock"
Unresolved text symbol... (1 Reply)
Discussion started by: JamesGoh
1 Replies
5. Programming
Hi all
I am using lex for my application scanning and I need to skip some lines for which I don't know the exact pattern.
So, could anybody tell me the regular expression to display lines NOT beginning with the specified pattern.
I know how to display lines beginning with the... (1 Reply)
Discussion started by: axes
1 Replies
6. UNIX for Dummies Questions & Answers
hi guys...
i m using rm *.zip or rm -rf *.zip while removing from a server path recursively,
i m getting "Remove directory operation failed."
if i use rm* .zip
i m getting as invalid command and none of the files are removed..
please help where m i wrong
when i execute the... (13 Replies)
Discussion started by: madhu_aqua14
13 Replies
7. Linux
Hi,
I need to read one chinese char using lex. I tried using "." ( period ) for pattern matching but in vain.
Could anyone suggest me how do i proceeed.
Sample pgm: to read a chinese char in single quotes.
%{
#include <locale.h>
%}
%%
\'.\' printf("SUCCESS\n");
. ... (0 Replies)
Discussion started by: suman_jakkula
0 Replies
8. Solaris
Server 1 SSH Version Sun_SSH_1.0
Server 2 OpenSSH_3.8.1p1
Server 3 OpenSSH_3.8p1
I created the rsa keys on server1. Public and private. I copied the id_rsa.pub file to server2 and server3 and appended this to the authorized_keys file in the .ssh directory on both. (All servers using the root... (2 Replies)
Discussion started by: frustrated1
2 Replies
9. UNIX for Dummies Questions & Answers
need help....just wanna copy all files with no extensions but with tree-informations to one dir
first I make a new directory with all foldertrees...like
find / -name "*" -type d >a1
sed -e 's/^/new/g' <a1 >b1
mkdir -p `cat a1`
then I wanna copy all specific files with no... (12 Replies)
Discussion started by: svennie
12 Replies
10. UNIX for Dummies Questions & Answers
Hi all
we r using hpUX11.00 9000 sever as oracle 8i db server...
But the problem is we have 4 instances of dbs but upto my knowledge there are only to ports available for TNS listen...
how can i configure or get wht ever it may be the other two ports for tns listener.........
... (2 Replies)
Discussion started by: Prafulla
2 Replies
LEX(1) General Commands Manual LEX(1)
NAME
lex - generator of lexical analysis programs
SYNOPSIS
lex [ -tvn ] [ file ... ]
DESCRIPTION
Lex generates programs to be used in simple lexical analysis of text. The input files (standard input default) contain regular expressions
to be searched for and actions written in C to be executed when expressions are found.
A C source program, lex.yy.c is generated. This program, when run, copies unrecognized portions of the input to the output, and executes
the associated C action for each regular expression that is recognized.
The options have the following meanings.
-t Place the result on the standard output instead of in file lex.yy.c.
-v Print a one-line summary of statistics of the generated analyzer.
-n Opposite of -v; -n is default.
EXAMPLES
This program converts upper case to lower, removes blanks at the end of lines, and replaces multiple blanks by single blanks.
%%
[A-Z] putchar(yytext[0]+'a'-'A');
[ ]+$
[ ]+ putchar(' ');
FILES
lex.yy.c
output
/sys/lib/lex/ncform
template
SEE ALSO
yacc(1), sed(1)
M. E. Lesk and E. Schmidt, `LEX--Lexical Analyzer Generator', Unix Research System Programmer's Manual, Tenth Edition, Volume 2.
SOURCE
/sys/src/cmd/lex
BUGS
Cannot handle UTF.
The asteroid to kill this dinosaur is still in orbit.
LEX(1)