10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am having one abc.txt file contains below data.
abc.txt contains below data
jjhj "TransactTime":"2011-09-26 12:09:15"
ggjk "TransactTime":"2011-10-31 12:09:15"
jlajsla "TransactTime":"2011-11-01 12:09:15"
in below code using " $runDate = $1 if $str =~... (2 Replies)
Discussion started by: aish11
2 Replies
2. Shell Programming and Scripting
Hi!
#!/usr/bin/env bash
rm tmpcomm
nc -v -u -l 444 | hexdump -b > tmpcomm
while :
do
read l1 < tmpcomm
read l2 < tmpcomm
read l3 < tmpcomm
read l4 < tmpcomm
# do something
doneI start netcat in the background and listen for an incoming conncetion. All incoming... (1 Reply)
Discussion started by: torax123
1 Replies
3. UNIX and Linux Applications
Hello,
This is my first post and its because I could not find solution for myself I decided to ask help here.
What I want to do;
I want to get some data from a table 1 on server 1 and insert those datas into a table 2 on server 2. ( lets say schema names are server1 and server 2 also ).... (10 Replies)
Discussion started by: azuahaha
10 Replies
4. Shell Programming and Scripting
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (4 Replies)
Discussion started by: mmiller99
4 Replies
5. Shell Programming and Scripting
Hello and thx for reading this
I'm using sed to remove only the leading spaces in a file
bash-280R# cat foofile
some text
some text
some text
some text
some text
bash-280R#
bash-280R# sed 's/^ *//' foofile > foofile.use
bash-280R# cat foofile.use
some text
some text
some text... (6 Replies)
Discussion started by: laser
6 Replies
6. UNIX for Advanced & Expert Users
Gentle readers,
I am trying to observe system behavior on our RHEL 5.2 machines. I notice that, it appears to me, based on random iterations of
dd if=/dev/zero of=/var/tmp/bigfile bs=1024 count=20000
...that if the pdflush is flushing buffers at the time of my write, my write will take... (4 Replies)
Discussion started by: mschwage
4 Replies
7. Shell Programming and Scripting
I found this logging subroutine on the net that I want to use but despite trying many things, I cannot figure out how to get the date in front of the logged text. Ideally what I'm looking for is a line that looks something like this:
Wed Aug 20 18:17:29 PDT 2008 - my logging info here.
my... (2 Replies)
Discussion started by: gctaylor
2 Replies
8. UNIX for Dummies Questions & Answers
Some process rewrites a file ( i'm hacked :) Can I somehow monitor which process does that? (2 Replies)
Discussion started by: hachik
2 Replies
9. Shell Programming and Scripting
I need to find a way to keep a running tally of how many times events or actions occur. Say if a user is prompted to make inputs of 1 or 2, I want it to keep track of how many times 1 was entered, and how many times 2 was entered.
Thanks for your help (5 Replies)
Discussion started by: bebop1111116
5 Replies
10. Shell Programming and Scripting
Hi everyone,
Ive got a quick question about the feasibility and any suggestions for a shell script. I can use sh or ksh, doesnt matter. Basically, Ive got an output file from a db2 command that looks like so:
SCHEMA NAME CARD LEAF ELEAF LVLS ISIZE NDEL KEYS F4 F5 ... (3 Replies)
Discussion started by: rdudejr
3 Replies
Sensor(3I) Sensor(3I)
NAME
Sensor - describe input interest
SYNOPSIS
#include <InterViews/sensor.h>
DESCRIPTION
A sensor specifies a set of input events to catch.
PUBLIC OPERATIONS
Sensor()
Create a new sensor that initially will not catch any events.
virtual void motion(boolean)
Specify the sensor should (parameter is true) or should not (parameter is false) catch pointer motion events.
virtual boolean motion()
Return whether the sensor is catching pointer motion events.
virtual void key(boolean)
Specify the sensor should (parameter is true) or should not (parameter is false) catch keyboard events.
virtual boolean key()
Return whether the sensor is catching keyboard events.
virtual void button(boolean, PointerButton = Event::any)
Specify the sensor should (parameter is true) or should not (parameter is false) catch button events. The pointer button may spec-
ify a particular button or Event::any (meaning all button events).
virtual boolean button(PointerButton = Event::any)
Return whether the sensor is catching button events. The pointer button may specify a particular button or Event::any (meaning any
of the buttons).
virtual boolean caught(Event&)
Return whether the sensor is catching the given event.
void Catch(EventType)
Express interest in a particular type of event. This function is provided solely for backward compatibility and will be removed in
a future version.
void CatchButton(EventType, int)
Express interest in a particular type of button event for a specific button. This function is provided solely for backward compati-
bility and will be removed in a future version.
void Ignore(EventType)
Remove interest in a particular type of event. This function is provided solely for backward compatibility and will be removed in a
future version.
void IgnoreButton(EventType, int)
Remove interest in a particular type of button event for a specific button. This function is provided solely for backward compati-
bility and will be removed in a future version.
SEE ALSO
Event(3I)
InterViews Reference Manual Sensor(3I)