Ubuntu :: Using Perl Module To Retrieve Data From IPod

Apr 29, 2010

I am trying to make use of the perl module WWW::Nike::NikePlus to retrieve the data from my ipod but apparently I have no idea what I am doing. I installed the package just as the readme said including all the dependencies. I cant really figure out how to run it, i searched for how to use it and found this : Example use that retrieves and prints your last run information

use WWW::Nike::NikePlus;
my $username = 'my@email.address';
my $password = 'MySecretPassword';
my $locale = "en_us";
my $pin = nike_authenticate( $username, $password, $locale );
unless( $pin ) { print "Authentication failed
"; } .....

#Details of the last run
my ($unit, $last_run_dist, $last_run_duration_millisecs,
$last_run_duration_friendly, $last_run_pace_friendly) = nike_last_run();
print "Last run: $last_run_dist$unit in $last_run_duration_friendly
";
print "Last run pace: $last_run_pace_friendly per $unit
";

So I put it in a txt file and saved it with the extension .pl and of course I put in all my info in the username password fields then made it executable with the command sudo chmod +x nikeplus.pl and when I try to run it with either ./ or perl I get this output:

brandon@desktop:~/Apps/nikeplus$ ./nikeplus.pl
./nikeplus.pl: line 1: use: command not found
./nikeplus.pl: line 2: my: command not found
./nikeplus.pl: line 3: my: command not found
./nikeplus.pl: line 4: my: command not found
./nikeplus.pl: line 6: syntax error near unexpected token `('
./nikeplus.pl: line 6: ` my $pin = nike_authenticate( $username, $password, $locale );'
brandon@desktop:~/Apps/nikeplus$ perl nikeplus.pl
Use of uninitialized value $ENV{"TEMP"} in concatenation (.) or string at /usr/local/share/perl/5.10.0/WWW/Nike/NikePlus.pm line 10.
Use of uninitialized value $last_run_duration_millisecs in division (/) at /usr/local/share/perl/5.10.0/WWW/Nike/NikePlus.pm line 106.
Use of uninitialized value $last_run_dist in division (/) at /usr/local/share/perl/5.10.0/WWW/Nike/NikePlus.pm line 107.
Use of uninitialized value $last_run_duration_millisecs in division (/) at /usr/local/share/perl/5.10.0/WWW/Nike/NikePlus.pm line 107.
Illegal division by zero at /usr/local/share/perl/5.10.0/WWW/Nike/NikePlus.pm line 107.
brandon@desktop:~/Apps/nikeplus$

View 2 Replies


ADVERTISEMENT

Ubuntu :: How To Use Perl Module?

Jul 3, 2011

How do I use a perl module? Am I suppose to call it from the terminal?

View 2 Replies View Related

Ubuntu :: XP Crashed Out And Couldnt Retrieve My Data

Jul 29, 2010

I have a laptop that had Windows XP on it - XP crashed out and I couldnt retrieve my data of it, despite booting up in safe mode, it just didnt want to do anything. So i thought i will load ubuntu instead then try and recover my data - bad move. Now my question is, can I still retrieve the windows data of the hard drive despite having Ubuntu installed on the same drive? I know on windows there is an app called File Scavenger that recovers deleted files even after loading a clean slate of Windows on it. Is there something like that for Linux? I had photos on it that has some real sentimental value. The rest of the data I dont care about. Just the photos. I didnt think before I reloaded it.

View 7 Replies View Related

Ubuntu :: Retrieve Data Created On Another System?

Aug 23, 2010

My son's laptop with Ubuntu on went belly up, so before we dumped it I salvaged the hard disk.....now some weeks later he remembers there is some things he wants on the disk. Luckily I had done nothing with it ....have just connected the disk to my system I can see everything above(should that be below) home but not anything in his account. Any bright ideas for getting at his data is there a way of mass changing permissions or whatever?

View 3 Replies View Related

Ubuntu Servers :: 10.04 - ERROR: Module Perl Does Not Exist

Jun 14, 2010

I have Apache/2.2.14 (Ubuntu) DAV/2 SVN/1.6.6 mod_fcgid/2.3.4 Phusion_Passenger/2.2.14 PHP/5.2.10-2ubuntu6 with Suhosin-Patch configured In UBUNTU 10.04 I like to install apache2 mod_perl I make apt-get install libapache2-mod-perl2 and I get: Quote: libapache2-mod-perl2 is already the newest version.

Ok I try sudo a2enmod mod_perl ERROR: Module perl does not exist! how I make Perl work in apache2 UBuntu 10.04

View 3 Replies View Related

Ubuntu :: Finding A Program To Store And Retrieve Data?

May 22, 2010

I am looking for a program to help me store, organise and retrieve information. The aim would be to keep notes from literature, concepts and ideas which i come across during my studies. It's always a hassle to retrieve this information when i have to write a paper for instance. So in fact what i need is a sort of wikipedia-like program where information is searchable and where perhaps hyperlinks could lead me from one word/note to another.

View 2 Replies View Related

Ubuntu :: Hard Drive Failed - Retrieve Data?

May 28, 2010

I should have seen this coming when I lost the ability to boot windows, or mount that drive from ubuntu. But now I think my hard drive has failed. Is there any way to retrieve the data from the hard drive, or my settings and the like for ubuntu? I'm at a loss for what to do as i'm booting from a CD right now =X.

View 4 Replies View Related

Ubuntu Security :: Retrieve The Data From Hard Drive?

Mar 24, 2011

I have a friend that has a computer running UBUNTU he has not used in a while and has forgotten the user name and password for it. Is there away to retrieve the data from this hard drive?

View 2 Replies View Related

Fedora Installation :: How To Install Perl Module At AWS?

Mar 15, 2010

I need to install the Perl DBI and DBI::mysql modules at Amazon Web Services. Perl 5.8.8 is installed there as part of the default Fedora linux that comes with an EC2 instance. I am not familiar with Fedora, but have been using Linux for a good while.If anyone could tell/show/direct me to the quickest way to do this.

View 1 Replies View Related

General :: Not Able To Install Bugzilla Module In Perl

Jul 21, 2011

I am using RHEL5 64 bit. I am trying to install bugzilla. While installing i am getting error.

View 2 Replies View Related

Programming :: Perl Module Installation Fails

Jan 12, 2011

Using perl -MCPAN -e shell then install Mail::Message then yes to everything (except the test that needed an IMAP server) resulted in.

View 3 Replies View Related

Programming :: Perl NTLM Authenticating Module

Nov 10, 2010

I'm trying to write a script in Perl to download a file that requires NTLM authentication to access, stored on a machine on this network.The file exists, and can be accessed through a web-browser, btw.

View 1 Replies View Related

Red Hat :: Installing Perl (v5.8.8) Module For Connecting To MySQL

Aug 2, 2010

I want to connect to MySQL Database installed on RHEL 5 using perl v 5.8.8.The available DBD perl drivers installed on my machine are:DBM, ExampleP, File, Pg, Proxy, Sponge..I downloaded DBD-mysql-2.1012 and tried installing DBD again but got the following error:Can't exec "mysql_config": No such file or directory at Makefile.PL line 167.readline() on closed filehandle PIPE at Makefile.PL line 169.On searching I found that I need to install libz-devel prior to installing driver for MySQL for Perl.

View 1 Replies View Related

General :: How To Retrieve Lost Data On A Usb Stick

Jan 24, 2010

My wifes computer, IBM desktop, running XP, was hit by malware. I managed to save the data and tarred it and copied to a USB memory stick using my Linux box Ubu 9.1). I checked and saw it had been truly saved. Two days later I put stick in USB port and it was not recognized (usually any hot plugable device shows up immediately on desktop). I have tried plugging it into a windows machine and nothing was found. We are both very desperate at this apparent loss but because something similar happened with an Iomega zip disk.

View 14 Replies View Related

Software :: Attempting To Installing Perl Module Gimp::Fu?

Oct 29, 2010

I'm attempting to set up a GIMP scripts for batch operations on groups of image files. Initially I started reading about the Script-Fu syntax but it looked too convoluted (at least for me, with 15 years of Perl experience at work) in a way it does the simpliest of things so I attempted to use Perl instead of Script-Fu. From reading the docs I see that I need to install "Gimp::Fu" Perl module. I installed "cpan" first, started it and issued the command:

install "Gimp::Fu"

and got a dependency problem:

Code:

cpan[1]> install "Gimp::Fu"
CPAN: Storable loaded ok (v2.18)
Going to read /root/.cpan/Metadata
Database was generated on Thu, 28 Oct 2010 17:30:45 GMT

[code]....

View 3 Replies View Related

Programming :: Perl Module For Getting Information From Remote Machines

Oct 16, 2010

I need to get some information like cpu usage,free memory,swap memory and other information from a bunch of remote hosts.Can any one tell me of a good perl module which does that.I dont want to use Net::Rsh or Net:SSH.

View 14 Replies View Related

Software :: Obtain An Older Copy Of KMM To Retrieve The Data?

Sep 17, 2010

I was using 9.10 Ubuntu and was going to update to 10.??. Being an intelligent person, I made four (4) backups of KMyMoney on different diskettes and thumb drives. Now, the problem, after reinstalling my O/S (new version) I reinstalled KMyMoney and found out that the newer version of KMM will not read the data I have backed up.What I need is a way to obtain an older copy of KMM so I can retrieve my data. Then I can update.

View 2 Replies View Related

General :: Retrieve Windows Data From Hard Disk

Sep 29, 2010

I have 2 hard disks and all together I created 6 partion in it.On primary I installed Windows XP and REST 5 partions were having data.From Second hard disk ,I copied all the first partion data to another partions and installed Red Hat 7.It took only 3 GB all togethr for Linux Distribution.Now I need to fetch my Windows data back.I logged from the Windows XP disk and I could see the second disk through disk managemnt .But it was showing "Unhelathy".But I will not be able to retrive the data.So can Anyone give soln for this.

View 2 Replies View Related

Server :: Retrieve MySQL Data From Command Line?

Aug 17, 2011

My computer has broken and I cannot login. I don't know what caused it.

I am using Fedora 14 and so it is easy to retrieve my files with the Fedora 14 installation disk under the 'restore' option. I cannot however, work out how to retrieve my MySQL data.

Would anyone be able to shed some light on this matter?

View 1 Replies View Related

CentOS 5 :: Sound-juicer Does Not Retrieve Track Data?

May 19, 2011

I have a fully up-to-dateCentOS 5.6. As of some very recent package update (later than May 12), sound-juicer is unable to retrieve track data for any disc; it just reports "Unknown Title" and "Unknown Artist".

Unfortunately I do not know how to tell which particular package it was, or even how to get a list of recently-updated packages.

Tracks are still extracted fine, it's just the musicbrainz connection which is doa.

I'd be happy to try an alternative program with musicbrainz capability, but couldn't find any. The installed k3b doesn't have any ripping options in the tools menu, where I gather it's supposed to be.

View 6 Replies View Related

Server :: Install Different Version Of Perl+module Without Affecting The Existing One ?

May 10, 2011

I need to install different version of Perl with needed modules to Test Run a perl script (ASSP) without affecting the existing one as the old version of Perl is buggy with seg fault.

View 5 Replies View Related

Software :: Perl Module Installation In Custom Location Using Cpanplus

May 19, 2011

I have installed perl5.12.3 in a custom location, ( a NFS share). I have all the libraries created in the same location. This was an attempt not to disturb existing version of perl. I have succeeded doing this.Now, I need to install around 200 perl modules. I tried Bundle option in CPAN shell, it somehow did not work. Does anyone here know off any other better method of installing multiple perl modules. How do I use CPANPLUS to install all the modules. What changes do I make to Config.pm considering custom location of perl installation I have done.

View 1 Replies View Related

Fedora :: Logger Pro - Retrieve Data From Scientific Calculators / Instruments?

Oct 5, 2010

(Logger pro is an app to retrieve data from scientific calculators/ instruments) I've always wanted to ask this question so here it goes... Has anyone gotten Logger pro (Linux beta) to work w/ Fedora? I have tried alien the two .deb packages to .rpm's so it becomes installable.. The installation seems fine, But the app doesn't run (I think it was like segmentation fault or something... I don't remember) anyways.. this is not absolutely important. I'm just wondering if this may be a problem w/ my install.

View 4 Replies View Related

Red Hat / Fedora :: Retrieve Data From Hard Disk After Installation On The System?

Aug 17, 2009

I have never used Linux before and know nothing about it . But my cousin installed a Fedoro linux CD on my laptop which previously had Lotus symphony . Unfortunately my laptop had single partition and so Linux overrode the old OS ,ie lotus symphony .

I have some critical data on my hard disk but I have no clue how to take backup this data using Linux . I desparately need this data .

Could somebody let me know how I can access this data and take the backup ?

View 4 Replies View Related

Hardware :: Retrieve Data From Old Wide-plug Hard Drives?

Jul 8, 2011

Is there a way? My computer has a newer, narrow-plug hard-drive. Not Linux specific, I know, but I'm in a bind.

EDIT: Picked up an I/O Magic 2.5 inch IDE/SATA enclosure.

View 2 Replies View Related

Software :: Use Wget To Retrieve Some Data From Tape Backup Utility?

Sep 30, 2010

I'm trying to use wget to retrieve some data from our tape backup utility (HP Command View 1/8 G2 Autoloader). The URL requires two parameters for the info I want to retrieve. I have searched for a few hours and have tried numerous combinations to get the data but the parameters aren't being executed. I have escaped the URL as well.

Code:

wget --user=x --password=x --recursive --no-clobber --page-requisites --html-extension --convert-links --no-parent -O ssi.html "10.0.x.x/inventory_status.ssi?mag_0=1&mag_1=1"

returns:

Code:

<HTML><HEAD><TITLE></TITLE></HEAD><BODY>
<SCRIPT LANGUAGE="javascript">
top.location.href='logout.ssi';

[code]....

View 3 Replies View Related

Software :: Getting Bugzilla Setup On RedHat - Perl Install-module.pl DBD - Mysql ?

Apr 12, 2010

I am having some issues getting Bugzilla setup, I have the software on the server and am trying to get the pre-rec's setup.

I am using RedHat 4.1.2-42.

I have all of the required perl modules save one:DBD::mysql

When I try:

I get the following response(this is only an excerpt):

Can't test without successful make Running make install make had returned bad status, install seems impossible.

View 14 Replies View Related

Ubuntu :: Perl Modules Using CPAN - Get The Message From CPAN That This Module Is Already Up To Date?

Jun 7, 2010

I tried to use CPAN to install a module Algorithm::Loops using "install Algorithm::Loops". I get the message from CPAN that this module is already up to date.But, when I try to use it I get the message:

Can't locate Algorithm/Loops.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./test.pl line 4.
BEGIN failed--compilation aborted at ./test.pl line 4.

And indeed, the file Loops.pm is nowhere to be found.Isn't that a contradiction?

View 2 Replies View Related

Programming :: Randomly Selecting 160 Lines Within A Data Set Of 1000 In Perl

Apr 11, 2011

I have a dataset of around 1000 lines. Out of these 1000 lines I need to pick randomly 160 lines of data and write it to a file. The program is needed to eliminate data bias when I run the program through a reanalysis program. I am thinking I need to use the rand or srand term, but I am having difficulty writing this in perl. I have to write it in perl, because the rest of my scripts for this project are in perl, so consistency is important. The data only consists of one column of the data (YYYYMMDDHHHH).

View 2 Replies View Related

Programming :: Bash / Perl : Copying Data From A CD/DVD To Hard Drive?

May 4, 2010

Seeking a decent Perl or Bash script or hack used to copy data from a CD/DVD to local or even remote hard drive/storage.

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved