10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
In a fastload teradata utility I am trying to delete the files which are older than 30days using the find and rm command as following.
find . -name 'xxx_*' -mtime +30 -exec rm -f {} \;
I expect it to delete all the files older than 30 days but sometimes it gives an error : find: bad status--... (3 Replies)
Discussion started by: stelkar
3 Replies
2. Shell Programming and Scripting
Hello,
I am practising awk and decided to compare two columns and print the result of the comparison as third column
i/p data
c1,c2,c3
1,a,b
1,b,b
i am trying to compare the last two columns and if they match I am trying to print match else mismatch(Ideally i want that as a last column... (5 Replies)
Discussion started by: mkathi
5 Replies
3. Shell Programming and Scripting
#cat /tmp/input
old_array old_dev new_dev new_array
0577 008AB 01744 0125
0577 008AC 01745 0125
0577 008AD 005C8 0125
0577 008AE 005C9 0125
0577 008AF 005CA 0125
0577 008B0 005CB 0125
0577 008B1 005CC 0125
cat test.sh
#!/bin/ksh... (4 Replies)
Discussion started by: mbak
4 Replies
4. AIX
Hi
I am getting below output when I run lsrsrc IBM.ManagementServer
sbkpshrasd02# lsrsrc "IBM.ManagementServer"
Resource Persistent Attributes for IBM.ManagementServer
I started the ctcas service but still no use. Stopped and started RMC. Any ideas what needs to be done.
----------... (1 Reply)
Discussion started by: wibhore
1 Replies
5. Solaris
Hello Everyone,
One of our servers is showing a strange issue, let me paste the output
root # uptime
4:37pm 3 users, load average: 0.00, 0.04, 0.04
Its been running since months but you can see after time there isn't any output like up 191 days(s).
Even the who command with b... (1 Reply)
Discussion started by: vishalaswani
1 Replies
6. Shell Programming and Scripting
i have a line like this in my script
IP=`get_IP <hostname> | awk '{ print $1 }'
echo $IP
the problem is get_IP <hostname> returns data formated as follows:
ip 1.1.1.1 name server_name
the code above returns
1.1.1.1 server_name and i just need the 1.1.1.1
I have tried to add "|... (5 Replies)
Discussion started by: mcdef
5 Replies
7. Shell Programming and Scripting
Hi All,
i have a file which have many fields delimited by ,(comma)
now i have to show only few fields and not all.
the sample text file looks like this:
TYPE=SERVICEEVENT, TIMESTAMP=05/06/2009 11:01:40 PM, HOST=sppwa634, APPLICATION=ASComp, FUNCTION=LimitsService, SOU... (8 Replies)
Discussion started by: usha rao
8 Replies
8. Shell Programming and Scripting
Hi all,
I have a problem with sort command.
i have a file which looks like this:
"file1
1073 java/4
1073 java/180
1073 java/170
1073 java/176
1073 java/167
1073 java/40
1073 java/33
1073 java/136
28988 java/76
28988 java/73
28988 java/48
28988 java/26"
and i want to sort... (8 Replies)
Discussion started by: usha rao
8 Replies
9. Shell Programming and Scripting
Hi,
I have a script in which an entry like this .....
FILENAME_B="PIC_${DATE}0732*.JPG"
The script connects to an ATM and pull a pic file from it.The format for the file is like PIC_2008061400000001.JPG in the ATM.
Means 1st 8 digit is the date(YYYYMMDD) field
2nd 8 digit means hrs... (2 Replies)
Discussion started by: Renjesh
2 Replies
10. UNIX for Dummies Questions & Answers
I've been successfully running a daily cron script to backup certain things on my server but just recently I started getting input/output errors for everything. For each directory the script tries to backup I now get this:
cp: accessing `/mnt/backup/**dir**/': Input/output error (8 Replies)
Discussion started by: JPigford
8 Replies
megaco_flex_scanner(3erl) Erlang Module Definition megaco_flex_scanner(3erl)
NAME
megaco_flex_scanner - Interface module to the flex scanner linked in driver.
DESCRIPTION
This module contains the public interface to the flex scanner linked in driver. The flex scanner performs the scanning phase of text mes-
sage decoding.
The flex scanner is written using a tool called flex . In order to be able to compile the flex scanner driver, this tool has to be avail-
able.
By default the flex scanner reports line-number of an error. But it can be built without line-number reporting. Instead token number is
used. This will speed up the scanning some 5-10%. Use --disable-megaco-flex-scanner-lineno when configuring the application.
The scanner will, by default, be built as a reentrant scanner if the flex utility supports this (it depends on the version of flex). It is
possible to explicitly disable this even when flex support this. Use --disable-megaco-reentrant-flex-scanner when configuring the applica-
tion.
DATA TYPES
megaco_ports() = term()
megaco_version() = integer() >= 1
EXPORTS
start() -> {ok, PortOrPorts} | {error, Reason}
Types PortOrPorts = megaco_ports()
Reason = term()
This function is used to start the flex scanner. It locates the library and loads the linked in driver.
On a single core system or if it's a non-reentrant scanner, a single port is created. On a multi-core system with a reentrant scan-
ner, several ports will be created (one for each scheduler).
Note that the process that calls this function must be permanent. If it dies, the port(s) will exit and the driver unload.
stop(PortOrPorts) -> stopped
Types PortOrPorts = megaco_ports()
This function is used to stop the flex scanner. It also unloads the driver.
is_reentrant_enabled() -> Boolean
Types Boolean = boolean()
Is the flex scanner reentrant or not.
is_scanner_port(Port, PortOrPorts) -> Boolean
Types Port = port()
PortOrPorts = megaco_ports()
Boolean = boolean()
Checks if a port is a flex scanner port or not (useful when if a port exits).
scan(Binary, PortOrPorts) -> {ok, Tokens, Version, LatestLine} | {error, Reason, LatestLine}
Types Binary = binary()
PortOrPorts = megaco_ports()
Tokens = list()
Version = megaco_version()
LatestLine = integer()
Reason = term()
Scans a megaco message and generates a token list to be passed on the parser.
Ericsson AB megaco 3.15.1 megaco_flex_scanner(3erl)