05-25-2017
Quote:
Originally Posted by
Peasant
This was an no harm intended update, since that was on my mind
I like to to script most of my work as an admin: not because of the development process itself but because this way i can assure i can enjoy my bbq while stuff does itself as it should
Actually, you are right and while i appreciate your (successful, i give you that) attempt at being funny you actually voiced a deeper truth than you might even have considered: we are in (actually at the core of) the
automatisation business: computers are so widespread and we have so much well-paid work to do because they do things automatically we would otherwise have to do ourselves.
I fail to see why everything should be automated using computers but us - who make that all possible - should slave and do our work manually. I am a fairly good typist, but i like to picture myself as being even better at thinking than at typing - so i rather think of ways to minimise the typing than to type more just to be able to avoid thinking. If i can enjoy some BBQ in the time i freed for myself this way - all the better!
bakunin
These 3 Users Gave Thanks to bakunin For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How do we list all the file names in a directory that does not belong to current date. (1 Reply)
Discussion started by: esh.mohan
1 Replies
2. UNIX for Dummies Questions & Answers
How do we list all the file names in a directory that does not belong to current date. (3 Replies)
Discussion started by: esh.mohan
3 Replies
3. Post Here to Contact Site Administrators and Moderators
Hi,
I submitted my blog on UNIX in the links section. On submitting, i chose the category as Unix/Linux standards, which i now feel is incorrect. I would like to change the category of my link, but i don't find any option to change the category.
Please help me in doing the needful.
Thanks... (7 Replies)
Discussion started by: guruprasadpr
7 Replies
4. Shell Programming and Scripting
Hi All,
Would it be possible using awk to split a given file into two files based on a certain condition such that one output file will contain all lines that fit the condition while the other output file will contain lines that did not fit the condition?
Here is a sample input file
... (6 Replies)
Discussion started by: cympaulife
6 Replies
5. Shell Programming and Scripting
I'm trying to list files, first by size and I'm using something like this
ls -l|awk '{print $5,$6,$7,$8,$9|"sort -nr"}'|more
Now I'd like to just do the same listing but only for files with the year 2009 in the $8 field or even anything less than 2011. (5 Replies)
Discussion started by: NycUnxer
5 Replies
6. Shell Programming and Scripting
Hi,
I have a file and I want the category for each row to be its highest value.
gene highest medium lower lowest
ABC 20 30 50 70
DEF 90 20 60 0
o/p
gene highest medium lower lowest category
ABC... (6 Replies)
Discussion started by: Diya123
6 Replies
7. UNIX for Dummies Questions & Answers
i want run query to identify witch groups that user A belong,
CN=name,CN=Users,DC=mydomain ?? (1 Reply)
Discussion started by: prpkrk
1 Replies
8. Shell Programming and Scripting
Please consider the following file, I have many groups which can be of 3 types, T1 (Serial_Number 1) T2 (Serial_Number 2) and T1*T2 (all other Serial_Number).
I want to only consider groups that have both T1 and T2 present and their values are different from each other. In the example file,... (8 Replies)
Discussion started by: jianp83
8 Replies
9. Shell Programming and Scripting
I want to categorize and count the as below:
Input file:
A1 G1 C1 F1
A2 G1 C1 F1
A3 G1 C1 F2
A4 G1 C2 F2
A7 G1 C2 F2
A8 G1 C2 F3
A11 G1 C2 F3
A23 G1 C2 F3
B4 G1 C2 F3
AC4 G2 C3 F4
B6 G2 C4 F4
BB5 G2 C4 F4
A25 G2 C5 F4
B13 G2 C5 F5
D12 G2 C5 F5
D2 G2 C5 F5 (3 Replies)
Discussion started by: aydj
3 Replies
10. UNIX for Beginners Questions & Answers
i have a requirement to delete records that do not belong to that day. For example in a file that came on July 31st ,2018 there are records that belong to Aug 1st,2018 as well and I want to find and delete those records. I want to delete anything with 01-Aug-2018. I have several files like that. I... (6 Replies)
Discussion started by: Priya
6 Replies
LEARN ABOUT DEBIAN
net::gpsd3
Net::GPSD3(3pm) User Contributed Perl Documentation Net::GPSD3(3pm)
NAME
Net::GPSD3 - Interface to the gpsd server daemon protocol versions 3 (JSON).
SYNOPSIS
Watch Interface
use Net::GPSD3;
my $gpsd=Net::GPSD3->new;
$gpsd->watch;
One Liner
perl -MNet::GPSD3 -e 'Net::GPSD3->new->watch'
Poll Interface
use Net::GPSD3;
use Data::Dumper qw{Dumper};
my $gpsd=Net::GPSD3->new;
my $poll=$gpsd->poll;
print Dumper($poll);
One Liner
perl -MNet::GPSD3 -e 'printf "Protocol: %s
", Net::GPSD3->new->poll->parent->cache->VERSION->protocol;'
Protocol: 3.4
POE Interface
See Net::GPSD3::POE
DESCRIPTION
Net::GPSD3 provides an object client interface to the gpsd server daemon utilizing the version 3 protocol. gpsd is an open source GPS
daemon from http://gpsd.berlios.de/. Support for Version 3 of the protocol (JSON) was added to the daemon in version 2.90. If your daemon
is before 2.90 (protocol 2.X), please use the Net::GPSD package.
CONSTRUCTOR
new
Returns a new Net::GPSD3 object.
my $gpsd=Net::GPSD3->new;
my $gpsd=Net::GPSD3->new(host=>"127.0.0.1", port=>2947); #defaults
METHODS
host
Sets or returns the current gpsd host.
my $host=$obj->host;
port
Sets or returns the current gpsd TCP port.
my $port=$obj->port;
poll
Sends a Poll request to the gpsd server and returns a Net::GPSD3::Return::POLL object. The method also populates the cache object with the
Net::GPSD3::Return::VERISON and Net::GPSD3::Return::DEVICES objects.
my $poll=$gpsd->poll; #isa Net::GPSD3::Return::POLL object
Note: In order to use the poll method consistently you should run the GPSD daemon as a service. You may also need to run the daemon with
the "-n" option.
watch
Calls all handlers that are registered in the handler method.
$gpsd->watch; #will not return unless something goes wrong.
addHandler
Adds handlers to the handler list.
$gpsd->addHandler(&myHandler);
$gpsd->addHandler(&myHandler1, &myHandler2);
A handler is a sub reference where the first argument is a Net::GPSD3::Return::* object.
handlers
List of handlers that are called in order to process objects from the gpsd wathcer stream.
my @handler=$gpsd->handlers; #()
my $handler=$gpsd->handlers; #[]
cache
Returns the Net::GPSD3::Cache caching object.
METHODS Internal
default_handler
socket
Returns the cached IO::Socket::INET6 object
my $socket=$gpsd->socket; #try to reconnect on failure
json
Returns the cached JSON::XS object
decode
Returns a perl data structure given a JSON formated string.
my %data=$gpsd->decode($string); #()
my $data=$gpsd->decode($string); #{}
encode
Returns a JSON string from a perl data structure
constructor
Constructs a class object by lazy loading the classes.
my $obj=$gpsd->constructor(%$data);
my $obj=$gpsd->constructor(class=>"DEVICE",
string=>'{...}',
...);
Returns and object in the Net::GPSD3::Return::* namespace.
BUGS
Log on RT and Send to gpsd-dev email list
There are no two GPS devices that are alike. Each GPS device has a different GPSD signature as well. If your GPS device does not work out
of the box with this package, please send me a log of your devices JSON sentences.
echo '?POLL;' | nc 127.0.0.1 2947
echo '?WATCH={"enable":true,"json":true};' | socat -t10 stdin stdout | nc 127.0.0.1 2947
SUPPORT
DavisNetworks.com supports all Perl applications including this package.
Try gpsd-dev email list
AUTHOR
Michael R. Davis
CPAN ID: MRDVT
STOP, LLC
domain=>michaelrdavis,tld=>com,account=>perl
http://www.stopllc.com/
COPYRIGHT
This program is free software licensed under the...
The BSD License
The full text of the license can be found in the LICENSE file included with this module.
SEE ALSO
Net::GPSD, Net::GPSD3::POE, GPS::Point, JSON::XS, IO::Socket::INET6, DateTime
perl v5.14.2 2011-12-27 Net::GPSD3(3pm)