my yacc output file y.tab.c is not compiling using cc y.tab.c -ly command
.possibily option flag -ly is not correct.i m using red hat linux 9.please give solutions. (4 Replies)
Hi all,
I am parsing command line options using getopts.
The problem is that mandatory argument options following ":" is taking next option as argument if it is not followed by any argument.
Below is the script:
while getopts :hd:t:s:l:p:f: opt
do
case "$opt" in
-h|-\?)... (2 Replies)
hi everybody, can somebody tell me what -R option on g++ on solaris means :
g++ -DAIX -fpic -static -o printps printps.o -L/epost2/blitz/xercesc1_1 /lib -L/oracle/OraHome/lib32/ L/epost2/blitz/lib -lxerces-c1_1 -lhmltods -lhmlt ops -lgeneric -lnotify -lutil -lclntsh `cat... (0 Replies)
In my ksh script, if the conditions of a if statement are true, then do nothing; otherwise, execute some commands.
How do I write the "do nothing" statement in the following example?
Example:
if (( "$x"="1" && "$y"="a" && "$z"="happy" ))
then
do nothing
else
command
command
fi... (3 Replies)
Hi All,
I am using Unix ksh script.
I need to insert values to a table using the o/p from a slelect statement.
Can anybody Help!
My script looks like tihs.
---`sqlplus -s username/password@SID << EOF
set heading off
set feedback off
set pages 0
insert into ${TB_NAME}_D... (2 Replies)
To find all the files in your home directory that have been edited in some way since the last tar file, use this command:
find . -newer backup.tar.gz
Is anyone familiar with an older solution?
looking to identify files older then 15mins across several directories.
thanks,
manny (2 Replies)
Hi Guys,
I'm sorry but I can't find answer for this, what is the meaning of -s option in "if" statement on unix scipting. Please see sample below:
opath=/home/output
for i in N1 N2 N3 N4
do
echo $i
if
then
grep $i $opath/N5_CRAI > $opath/N5_$i.crai
chmod 777 $opath/N5_$i.crai
... (7 Replies)
Hi folks,
I have a scenario to convert the update statements into insert statements using shell script (awk, sed...) or in database using regex.
I have a bunch of update statements with all columns in a file which I need to convert into insert statements.
UPDATE TABLE_A SET COL1=1 WHERE... (0 Replies)
Hi,
I installed some packages required by an app built with python.
But when I try python setup.py install, I get the following error:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/5.2.0/../../../../sparc-sun-solaris2.10/bin/as: unrecognized option `-m32'
Could anyone tell me what's wrong... (4 Replies)
Discussion started by: Kimkun
4 Replies
LEARN ABOUT BSD
msgs
MSGS(1) General Commands Manual MSGS(1)NAME
msgs - system messages and junk mail program
SYNOPSIS
msgs [ -fhlpq ] [ number ] [ -number ]
msgs -s
msgs -c [ -days ]
DESCRIPTION
Msgs is used to read system messages. These messages are sent by mailing to the login `msgs' and should be short pieces of information
which are suitable to be read once by most users of the system.
Msgs is normally invoked each time you login, by placing it in the file .login (.profile if you use /bin/sh). It will then prompt you with
the source and subject of each new message. If there is no subject line, the first few non-blank lines of the message will be displayed.
If there is more to the message, you will be told how long it is and asked whether you wish to see the rest of the message. The possible
responses are:
y type the rest of the message.
RETURN synonym for y.
n skip this message and go on to the next message.
- redisplay the last message.
q drops you out of msgs; the next time you run the program it will pick up where you left off.
s append the current message to the file ``Messages'' in the current directory; `s-' will save the previously displayed message. A `s'
or `s-' may be followed by a space and a file name to receive the message replacing the default ``Messages''.
m or `m-' causes a copy of the specified message to be placed in a temporary mailbox and mail(1) to be invoked on that mailbox. Both
`m' and `s' accept a numeric argument in place of the `-'.
Msgs keeps track of the next message you will see by a number in the file .msgsrc in your home directory. In the directory /usr/msgs it
keeps a set of files whose names are the (sequential) numbers of the messages they represent. The file /usr/msgs/bounds shows the low and
high number of the messages in the directory so that msgs can quickly determine if there are no messages for you. If the contents of
bounds is incorrect it can be fixed by removing it; msgs will make a new bounds file the next time it is run.
The -s option is used for setting up the posting of messages. The line
msgs: "| /usr/ucb/msgs -s"
should be include in /etc/aliases to enable posting of messages.
The -c option is used for performing cleanup on /usr/msgs. An entry with the -c option should be placed in /etc/crontab to run every
night. This will remove all messages over 21 days old. A different expiration may be specified on the command line to override the
default.
Options when reading messages include:
-f which causes it not to say ``No new messages.''. This is useful in your .login file since this is often the case here.
-q Queries whether there are messages, printing ``There are new messages.'' if there are. The command ``msgs -q'' is often used in
login scripts.
-h causes msgs to print the first part of messages only.
-l option causes only locally originated messages to be reported.
num A message number can be given on the command line, causing msgs to start at the specified message rather than at the next message
indicated by your .msgsrc file. Thus
msgs -h 1
prints the first part of all messages.
-number
will cause msgs to start number messages back from the one indicated by your .msgsrc file, useful for reviews of recent messages.
-p causes long messages to be piped through more(1).
Within msgs you can also go to any specific message by typing its number when msgs requests input as to what to do.
FILES
/usr/msgs/* database
~/.msgsrc number of next message to be presented
AUTHORS
William Joy
David Wasley
SEE ALSO aliases(5), crontab(5), mail(1), more(1)BUGS 4th Berkeley Distribution October 22, 1996 MSGS(1)