I have a txt file of 8GB with same type of messages in it. for eg:
There are tons of same messages with different values in the file. Can you please help me with a python script that can saperate the whole message with unique Flags value in an output file.
Last edited by jim mcnamara; 11-19-2012 at 05:20 PM..
There seems to be some problem with the grid geometry manager, or maybe its just my syntax thats incorrect. Im using Python 2.3.4. My problem is that even when I use the sticky='news' option in any grid method, it just doesnt work period. For example, the following code gives be a window with a... (0 Replies)
Hi, I'm sure there's a very easy way to fix this but i'm a newbie so I'm posting this. The problem is that whenever I run python on the terminal I can no longer use the left and right arrows to move left or right, or the up/down arrows to call commands used before. Whenever I click an arrow I get... (0 Replies)
I have a shell script main.sh which inturn call the python script ofdm.py, I want to pass two variables from shell script to python script for its execution. How do i achieve this ?????
Eg:
main.sh
a=3 b=3;
c= a+b
exec python ofdm.py
ofdm.py
d=c+a
Thanks in Anticipation (4 Replies)
I have part of the script below and I tried calling the script using
./tsimplex.py --fstmod=chris.cmod --nxz=8x6 --varp=0.25
but am getting the error
option --fstmod must not have an argument
Any idea on how to fix this would be highly appreciated
#! /usr/bin/python
import... (0 Replies)
experts, i wrote a python script to do a certain job, i tried it and it is working fine, i want this script to be executed automatically after a ksh script, the problem is when i execute the ksh script my python script runes perfectly after the ksh script as I have include it at the end of the ksh... (1 Reply)
Hello,
I'm currently trying to port an ant based build to AIX 6.1. The build queries the underlying version control system (Mercurial) for some data, which works fine on other platforms (Linux, Solaris). However, on AIX the hg command fails to load python's md5 module when used in the build,... (1 Reply)
Hello geeks,
Am trying to write a custom plugin using python but it seems python is not handling the SSH part well, find below for the code:
#!/usr/bin/python
import os, sys
host = sys.argv
pdpactgsm=os.popen("ssh -l GbeAdi $host "pdc_kpi.pl" | grep -A 4 sgsn_g | awk 'NR == 5 ' |... (1 Reply)
I have bash shell script which is internally calling python script.I would like to know how long python is taking to execute.I am not allowed to do changes in python script.Please note i need to know execution time of python script which is getting executed inside shell .I need to store execution... (2 Replies)
Hello everyone,
I have just started python, and there is something that escapes me. I don't understand why my little script doesn't work.
When I do, it work:
my_string = "bonjour"
if len(my_string) < "6":
print(my_string + " < 6")
else:
print(my_string + " > 6")
... (2 Replies)
Hi all,
I am trying to run below python code for connecting remote windows machine from unix to run an python file exist on that remote windows machine..
Below is the code I am trying:
#!/usr/bin/env python
import wmi
c = wmi.WMI("xxxxx", user="xxxx", password="xxxxxxx")... (1 Reply)
Discussion started by: onenessboy
1 Replies
LEARN ABOUT DEBIAN
m17nsymbol
Symbol(3m17n) The m17n Library Symbol(3m17n)NAME
Symbol - Symbol objects and API for them.
Typedefs
typedef struct MSymbolStruct * MSymbol
Type of symbols.
Functions
MSymbol msymbol (const char *name)
Get a symbol.
MSymbol msymbol_as_managing_key (const char *name)
Create a managing key.
int msymbol_is_managing_key (MSymbol symbol)
Check if a symbol is a managing key.
MSymbol msymbol_exist (const char *name)
Search for a symbol that has a specified name.
char * msymbol_name (MSymbol symbol)
Get symbol name.
int msymbol_put (MSymbol symbol, MSymbol key, void *val)
Set the value of a symbol property.
void * msymbol_get (MSymbol symbol, MSymbol key)
Get the value of a symbol property.
int msymbol_put_func (MSymbol symbol, MSymbol key, M17NFunc func)
Set the value (function pointer) of a symbol property.
M17NFunc msymbol_get_func (MSymbol symbol, MSymbol key)
Get the value (function pointer) of a symbol property.
Variables
MSymbol Mnil
Symbol whose name is 'nil'.
MSymbol Mt
Symbol whose name is 't'.
MSymbol Mstring
Symbol whose name is 'string'.
MSymbol Msymbol
Symbol whose name is 'symbol'.
Detailed Description
Symbol objects and API for them.
The m17n library uses objects called symbols as unambiguous identifiers. Symbols are similar to atoms in the X library, but a symbol can
have zero or more symbol properties. A symbol property consists of a key and a value, where key is also a symbol and value is anything that
can be cast to (void *). 'The symbol property that belongs to the symbol S and
whose key is K' may be shortened to 'K property of S'.
Symbols are used mainly in the following three ways.
o As keys of symbol properties and other properties.
o To represent various objects, e.g. charsets, coding systems, fontsets.
o As arguments of the m17n library functions to control their behavior.
There is a special kind of symbol, a managing key. The value of a property whose key is a managing key must be a managed object. See
Managed Object for the detail.
Typedef Documentation
typedef struct MSymbolStruct* MSymbol
Type of symbols. The type MSymbol is for a symbol object. Its internal structure is concealed from application programs.
Variable Documentation
MSymbol Mnil
Symbol whose name is 'nil'. The symbol Mnil has the name 'nil' and, in general, represents false or no. When coerced to 'int', its value is
zero. Mnil can't have any symbol property.
MSymbol Mt
Symbol whose name is 't'. The symbol Mt has the name 't' and, in general, represents true or yes.
MSymbol Mstring
Symbol whose name is 'string'. The symbol Mstring has the name 'string' and is used as an argument of the functions
mchar_define_property(), etc.
MSymbol Msymbol
Symbol whose name is 'symbol'. The symbol Msymbol has the name 'symbol' and is used as an argument of the functions
mchar_define_property(), etc.
Author
Generated automatically by Doxygen for The m17n Library from the source code.
COPYRIGHT
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License
<http://www.gnu.org/licenses/fdl.html>.
Version 1.6.2 12 Jan 2011 Symbol(3m17n)