dry run?

2017-01-14 Thread ToddAndMargo

  
  
Hi All,

Is there a Perl 6 equivalent of Perl 5's   
   Perl -c 
  
  I want to check my program for errors without
  actually running it.
  
  Many thanks,
  -T
  
  What me forget my semicolons!  Never !!!  Okay, maybe
  every other line.
  
  Hay, I think typos and misspelling should be an Olympic sport!
  
  :-)

-- 
~~
Computers are like air conditioners.
They malfunction when you open windows
~~
  



Re: Any trick to installing a module in Windows?

2017-01-14 Thread ToddAndMargo

On 01/14/2017 02:31 PM, ToddAndMargo wrote:

On 01/13/2017 07:45 PM, ToddAndMargo wrote:

Hi All,

I am trying to install Net::FTP in Windows 7.  Panda's install
is error city.

Any trick to doing this?

Many thanks,
-T



By any chance, do I need to install a compiler first?  GCC?




Follow up:  This is what worked:


Perl 6 Net::FTP module:

For both Windows and Linux, download the clone from
   https://github.com/araraloren/Net-FTP

or get "git" to do it for you.

From inside the clone's directory
 $ panda --force --notests install .


Thank you all for the help!  Happy Camping has returned!

-T




--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~


Re: panda install error

2017-01-14 Thread ToddAndMargo

On 01/13/2017 05:28 PM, ToddAndMargo wrote:

Hi All,

   How do I fix this?

Many thanks,
-T

# /usr/share/perl6/site/bin/panda install Net::FTP
==> Fetching Net::FTP
==> Building Net::FTP
==> Testing Net::FTP
t/01-load.t . ok
t/02-login.t  ok
t/03-directory.t  ok
t/04-list.t . ok

# Failed test 'Get file stor.txt success'
# at t/05-put-get.t line 11

# Failed test 'Put file some.txt success'
# at t/05-put-get.t line 12
# Looks like you failed 2 tests of 2
t/05-put-get.t ..
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests
t/06-mkdir-rmdir.t .. ok

Test Summary Report
---
t/05-put-get.t(Wstat: 512 Tests: 2 Failed: 2)
  Failed tests:  1-2
  Non-zero exit status: 2
Files=6, Tests=21, 17 wallclock secs ( 0.04 usr  0.01 sys +  7.19 
cusr  0.52 csys =  7.76 CPU)

Result: FAIL
test stage failed for Net::FTP: 0
  in method install at 
/usr/share/perl6/site/sources/582CB7486602954A4601BDCE5A0EAC54B05DA58A 
(Panda) line 186
  in method resolve at 
/usr/share/perl6/site/sources/582CB7486602954A4601BDCE5A0EAC54B05DA58A 
(Panda) line 263
  in sub MAIN at 
/usr/share/perl6/site/resources/E0D978079BB5081DE986D058BB8AB08252F05CC8 
line 20
  in block  at 
/usr/share/perl6/site/resources/E0D978079BB5081DE986D058BB8AB08252F05CC8 
line 165



Failure Summary

Net::FTP(
*test stage failed for Net::FTP: 0)





This is what worked:

Download the clone from https://github.com/araraloren/Net-FTP

From inside the directory
 $ panda --force --notests install .

I had to use both "force" and "notests"

AND THIS WORKED IN BOTH WINDOWS AND LINUX !!!

YIPPEE!

Thank you all for the help!

-T




--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~


Re: Any trick to installing a module in Windows?

2017-01-14 Thread ToddAndMargo

On 01/13/2017 07:45 PM, ToddAndMargo wrote:

Hi All,

I am trying to install Net::FTP in Windows 7.  Panda's install
is error city.

Any trick to doing this?

Many thanks,
-T



By any chance, do I need to install a compiler first?  GCC?


--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~


Re: Any trick to installing a module in Windows?

2017-01-14 Thread Brandon Allbery
On Sat, Jan 14, 2017 at 10:10 PM, ToddAndMargo 
wrote:

> I am confused.  Why in the world would panda be executing ftp code
> when it is compiling/installing a module?   Who told it the name of
> the FTP server?  Who told it the username and password?
>

It's running module tests. One would expect the tests for an FTP module to
involve making FTP connections, presumably to some test server. (That said,
I would have expected such tests to be disabled by default, or perhaps
results ignored with a warning printed.)

-- 
brandon s allbery kf8nh   sine nomine associates
allber...@gmail.com  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net


Re: Any trick to installing a module in Windows?

2017-01-14 Thread ToddAndMargo

  
  
On 01/13/2017 08:15 PM, Brandon Allbery
  wrote:


  

  On Fri, Jan 13, 2017 at 10:51 PM,
ToddAndMargo 
wrote:
What
  ports are panda using other than git?
  
  
  This is not a fault in panda. 
  


I am confused.  Why in the world would panda be executing ftp code 
when it is compiling/installing a module?   Who told it the name of
the FTP server?  Who told it the username and password?

And, my firewall, which I wrote, logs EVERYTHING that gets
rejected, both incoming and outgoing.  I used this logging to
create a rule to allow "git" to establish outgoing connections.

AND THE FIREWALL LOG IS DEAD QUIET when running
  panda install Net::FTP

Well, after installing the "git" rule and some turkey
sending mangles packets to port 443.

So I do not understand


  
The Net::FTP module implements the FTP
  protocol, which runs on TCP ports 20 and 21 --- but in active
  mode it will attempt to connect back to your machine, and in
  passive mode it will make an outgoing connection to a port
  specified by the server on the command channel. FTP is not a
  good idea behind restrictive firewalls; you will not be able
  to get it to work without a smart firewall that tracks the FTP
  command channel to open a hole for the requested port. If you
  don't absolutely need this module, consider just not
  installing it; if you do need it for some specific purpose,
  you probably want to talk to the admin(s) of the site you are
  working with and try to get permission to use a more modern
  protocol like scp or the sftp module of ssh.
  
  
  -- 
  

  brandon s allbery kf8nh                              
sine nomine associates
  allber...@gmail.com
                                 ballb...@sinenomine.net
  unix, openafs, kerberos, infrastructure, xmonad      
 http://sinenomine.net

  

  


Hi Brandon and Friends,

Net::FTP supports "passive mode". 
my $ftp = Net::FTP.new(:host<$FtpServer>,
:user<$Username>, :pass<$Password>, :passive);

Active mode is not an issue as the target FTP server is
on a local network.  I plan on using passive mode anyway.

Part of the confusion is that my systems are Linux based and
I have wrote a really nasty firewall: all things are illegal
unless stated otherwise, both incoming and outgoing.
I model on my system and transfer to the customer's
systems.

The target system is a Windows client with an internal
Linux FTP server on the network: vsftpd-3.0.3-3.fc25.x86_64

vsftp does support sftp and I really don't care what I use
AS LONG AS IT WORKS.  This is an internal system.

The purpose behind what I am doing is to create a
backup archive rotator on an internal FTP server.

The reason behind backing up Windows clients to a
Linux FTP server is that ransomware can't get at the
backups, as they do with anything with drive letters.

The backup client is Cobian Backup.  It will write to
an FTP server.  But, Cobian can not do house
keeping properly on the FTP archive sets as it can not rotate
archives when files in the archives have letters in their
names that Windows Explorer (not IE) can not
deal with, such as "+++" (for example, Firefox's "Storage"
directory).

Cobian can backup, but can not rotate (remove) old
archives.

So, I am rewriting a batch script I wrote to rotate
Cobain backup files to local drives.  The Cobian
database for rotating does not work very well
and certainly falls apart with my hidden partitions
backup scheme on local drives.  (I will go
into that for anyone who is curious.)

So I need Perl6 to let me do a directory listing
on the FTP server, rename directories, and
recursively delete directories.

I can do this in Perl5, but I have had it with
Perl5's stone age subroutines.

Perl6 is pretty much useless without the modules, except writing
"hello world!"


    AAAHHH!!


Sorry for the frustration.  Thank you all for the help so far.
-T

-- 
~~
Computers are like air conditioners.
They malfunction when you open windows
~~
  



Fedora and Modules

2017-01-14 Thread ToddAndMargo

Hi All,

Fedora's Rakudo Star now comes without the modules or panda.
https://bugzilla.redhat.com/show_bug.cgi?id=1410159

They were removed as of v7.

Makes Perl 6 pretty useless.

Tears,
-T

--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~


Re: panda install error

2017-01-14 Thread Andy Bach
On Fri, Jan 13, 2017 at 7:28 PM, ToddAndMargo  wrote:

> # Failed test 'Get file stor.txt success'
> # at t/05-put-get.t line 11
>
> # Failed test 'Put file some.txt success'
> # at t/05-put-get.t line 12
> # Looks like you failed 2 tests of 2
>

get/put test might be ftp connection failures, though.  Configuration
and/or firewall problems.  If the rest all passed, you might just force the
install and see if it works.

Net::FTP guide:
http://www.perlmonks.org/?node_id=190020


-- 

a

Andy Bach,
afb...@gmail.com
608 658-1890 cell
608 261-5738 wk