01-07-2013
Quote:
Originally Posted by
erupter
I begun suspecting as much, but it is still unclear to me how it has been working for more than 10 days without so much as one crash or problem...
You are using undefined behavior.
Undefined does not mean 'crash instantly', it means 'what this does depends on the machine'.
So, it's to be expected that it will be unpredictable.
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I am working on a custom made FTP application. The application is behaving erratically for the "ls" command. Wild card character passed to the "ls" command (like "ls *temp") is giving inconsistent results. On debuggin I have found that the "ls" command is implemented as shown below in the... (7 Replies)
Discussion started by: diganta
7 Replies
2. UNIX for Advanced & Expert Users
I have a large file with the first 2 characters of each line determining the type of record. type 03 being a subheader and then it will have multiple 04 records.
eg: 03,xxx,xxxx,xxxx
04,xxxxxxxxxxxxxxxxxxxxxxxxxxxx
04,xxxxxxxxxxxxxxxxxxxxxxxxxxxx
03,xxx,xxx,xxx
... (2 Replies)
Discussion started by: badg3r
2 Replies
3. Red Hat
I have a set up of 5 machines which are connected in same network.
Now i want to run a small application so that those machines are not ideal. (0 Replies)
Discussion started by: pradeepreddy
0 Replies
4. Shell Programming and Scripting
Im trying to execute the below command on our server to list files and replace the newline in the file list with spaces, but the character 'n' is getting replaced with a space, is there any environment variable that needs to be set in UNIX?
sh -c 'ls -trx... (1 Reply)
Discussion started by: rameshrr3
1 Replies
5. UNIX for Advanced & Expert Users
Hi Gurus,
I tried FTP one file to UNIX which got values like
wel^come
If I see the content in unix, it shows like
wel^Zcome
^ coverted into ^Z (Control + Z )
Can someone please share what is happening here?
Thanks,
Shahnaz (5 Replies)
Discussion started by: shahnazurs
5 Replies
6. Red Hat
I have two servers on same domain. one can nslookup other cannot
Psu100 can lookup to psu000, psu010 & psu011
Psu110 can NOT lookup to psu000, psu010 & psu011
I verified resolv.conf entries on both psu000 and psu010 and it contains both name servers (10.200.10.21 & 10.200.11.22).I am... (1 Reply)
Discussion started by: scorohan
1 Replies
7. UNIX and Linux Applications
Hello. I need upgrade memcached. This software is installed throuth yum. In official repositories isn`t newest version of memcached, but this one is vulnerable. So looks like I need built it from source, but I dont really want to install c libraries un compilers on system.
1.) So can I compile... (0 Replies)
Discussion started by: jabalv
0 Replies
8. Shell Programming and Scripting
Hi,
Immediate help on below will be appreciated.
I have to read a file (max of 10MB) which will have no new line characters, i.e. data in single line. and have to inster '\n' at every 100 characters. and if record starts with 'BUCA' then need to pick value of length 10 at position 71 and... (7 Replies)
Discussion started by: maks475
7 Replies
9. UNIX for Advanced & Expert Users
Can anyone explain why wc is behaving weirdly? Their are only 2 occurrences but wc thinks their are 7 occurrences. I have even manually checked this.
$ grep -i base *
lit: base xx
lit.lst:003- 00103 BASE XX
$ grep -i base * | wc -w ... (2 Replies)
Discussion started by: cokedude
2 Replies
LEARN ABOUT DEBIAN
net::github::v2
Net::GitHub::V2(3pm) User Contributed Perl Documentation Net::GitHub::V2(3pm)
NAME
Net::GitHub::V2 - Perl Interface for github.com (V2)
SYNOPSIS
Prefer:
use Net::GitHub;
my $github = Net::GitHub->new(
version => 2, # optional, default as 2
owner => 'fayland', repo => 'perl-net-github'
);
Or:
use Net::GitHub::V2;
# for http://github.com/fayland/perl-net-github/tree/master
my $github = Net::GitHub::V2->new( owner => 'fayland', repo => 'perl-net-github' );
DESCRIPTION
NOTE: Github will terminate API v1 and API v2 on May 1st, 2012
<http://develop.github.com/>
For those (authentication required), you must set login and token (in <https://github.com/account>). If no login and token are provided,
your .gitconfig will be loaded: if the github.user and github.token keys are defined, they will be used.
my $github = Net::GitHub::V2->new(
owner => 'fayland', repo => 'perl-net-github',
login => 'fayland', token => '54b5197d7f92f52abc5c7149b313cf51', # faked
);
If you want to work with private repo, you can set always_Authorization.
To disable call rate limiting (e.g. if your account is whitelisted), set api_throttle to 0.
By default, error responses are propagated to the user as they are received from the API. By switching throw_errors on you can make the be
turned into exceptions instead, so that you don't have to check for error response after every call.
my $github = Net::GitHub::V2->new(
owner => 'fayland', repo => 'perl-net-github',
login => 'fayland', token => '54b5197d7f92f52abc5c7149b313cf51', # faked
always_Authorization => 1,
api_throttle => 0,
throw_errors => 0,
);
METHODS
repos
$github->repos->create( 'sandbox3', 'Sandbox desc', 'http://fayland.org/', 1 );
$github->repos->show();
Net::GitHub::V2::Repositories
user
my $followers = $github->user->followers();
$github->user->update( name => 'Fayland Lam' );
Net::GitHub::V2::Users
commit
my $commits = $github->commit->branch();
my $commits = $github->commit->file( 'master', 'lib/Net/GitHub.pm' );
my $co_detail = $github->commit->show( $sha1 );
Net::GitHub::V2::Commits
issue
my $issues = $github->issue->list('open');
my $issue = $github->issue->open( 'Bug title', 'Bug detail' );
$github->issue->close( $number );
Net::GitHub::V2::Issues
object
my $tree = $github->obj_tree( $tree_sha1 ); # alias object->tree
my $blob = $github->obj_blob( $tree_sha1, 'lib/Net/GitHub.pm' ); # alias object->blob
my $raw = $github->obj_raw( $sha1 ); # alias object->raw
Net::GitHub::V2::Object
network
$github->network_meta; # alias ->network->network_meta
$github->network_data_chunk( $net_hash ); # alias network->network_data_chunk
Net::GitHub::V2::Network
organization
my $organization = $github->organization->organizations('github');
my $teams = $github->organization->teams('PerlChina');
Net::GitHub::V2::Organizations
pull_request
my $pull = $github->pull_request->pull_request();
Net::GitHub::V2::PullRequest
SEE ALSO
Any::Moose
AUTHOR
Fayland Lam, "<fayland at gmail.com>"
More on Changes
COPYRIGHT & LICENSE
Copyright 2009-2011 Fayland Lam, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-03-30 Net::GitHub::V2(3pm)