can you explain more about " can saperate the whole message with unique Flags value in an output file."
I have a text file that has several messages, here I put 3 examples:
If you look at the 9th line of each message, there is Flags with a code like x00000000. But the first 2 messages have the same code so, I want to saperate only those messages that have a unique code in a text file.
Last edited by Scrutinizer; 11-20-2012 at 03:37 PM..
Reason: Wanted to put 3 example messages but accidently put only 2. Therefore added third message.; mod: code tags
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 FREEBSD
random_harvest
RANDOM_HARVEST(9) BSD Kernel Developer's Manual RANDOM_HARVEST(9)NAME
random_harvest -- gather entropy from the kernel for the entropy device
SYNOPSIS
#include <sys/types.h>
#include <sys/random.h>
void
random_harvest(void *entropy, u_int size, u_int bits, u_int frac, enum esource source);
DESCRIPTION
The random_harvest() function is used by device drivers and other kernel processes to pass data that is considered (at least partially) sto-
chastic to the entropy device.
The caller should pass a pointer (to no more than 16 bytes) of the ``random'' data in entropy. The argument size contains the number of
bytes pointed to. The caller should very conservatively estimate the number of random bits in the sample, and pass this in bits or frac. If
the estimated number of bits per sample is an integer, then bits is used, and frac is 0. Otherwise, for low-entropy samples, ``fractional''
entropy can be supplied in frac. (This is considered to be frac / 1024 bits of entropy.) The source is chosen from RANDOM_WRITE,
RANDOM_KEYBOARD, RANDOM_MOUSE, RANDOM_NET and RANDOM_INTERRUPT, and is used to indicate the source of the entropy.
Interrupt harvesting has been simplified for the kernel programmer. If a device driver registers an interrupt handler with BUS_SETUP_INTR(9)
or bus_setup_intr(9), then it is only necessary to include the INTR_ENTROPY bit in the flags argument to have that interrupt source be used
for entropy harvesting.
SEE ALSO random(4), BUS_SETUP_INTR(9)AUTHORS
The FreeBSD random(4) entropy device and supporting documentation was written by Mark R V Murray.
BSD February 6, 2002 BSD