Re: Starting Again

2003-03-21 Thread Philip Newton
On 20 Mar 2003 at 21:51, David Cantrell wrote:

 On Wednesday, March 19, 2003 09:34 + S Watkins [EMAIL PROTECTED] 
 wrote:
  Paul Makepeace wrote:
  ... is where you keep warez, pr0n and rootkits.
  Naaah, you keep them in . Tricky to see and difficult to remove
  without tricks.
 
 Which reminds me, I really need to create /usr/local/bin/perl^M and 
 /usr/bin/perl^M as symlinks, for users who upload CGIs with broken 
 line-endings.

Well, if this were still the 5.005 era, I'd reply, Serves them right 
for not using -w.

However, now that warnings.pm is apparently The Way To Do It, that 
retort isn't as valid.

Cheers,
Philip
-- 
Philip Newton [EMAIL PROTECTED]




Re: Starting Again

2003-03-20 Thread Dominic Mitchell
Philip Newton wrote:
On 19 Mar 2003 at 9:34, S Watkins wrote:


Naaah, you keep them in . Tricky to see and difficult to remove without 
tricks.


Also popular are directory names with embedded ^H's.

$ ls
foo
$ cd foo
ksh: foo:  not found
$ cd 'fa^V^Hoo'
$
The trouble with all these approaches is that they're foiled by decent 
tab completion.  I just keep hitting tab and the directories appear, 
correctly escaped on my command line.

-Dom



Re: Starting Again

2003-03-20 Thread David Cantrell
On Wednesday, March 19, 2003 09:34 + S Watkins [EMAIL PROTECTED] 
wrote:
Paul Makepeace wrote:
... is where you keep warez, pr0n and rootkits.
Naaah, you keep them in . Tricky to see and difficult to remove
without tricks.
Which reminds me, I really need to create /usr/local/bin/perl^M and 
/usr/bin/perl^M as symlinks, for users who upload CGIs with broken 
line-endings.

--
David Cantrell


Re: Starting Again

2003-03-19 Thread S Watkins
Paul Makepeace wrote:
On Tue, Mar 18, 2003 at 10:50:00PM +, David Cantrell wrote:

On Tuesday, March 18, 2003 11:59 + Mark Fowler 
[EMAIL PROTECTED] wrote:


bash$ ls -a   # list _all_ files, inc. hidden in current dir
bash$ ls -a foo   # same for the directory foo
ls -A is useful too - it does the same as -a but doesn't list . or ... 
That last one is .. followed by a full stop.  Curse this Unix stuff.
... is where you keep warez, pr0n and rootkits.

P
Naaah, you keep them in . Tricky to see and difficult to remove without 
tricks.

Steve

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com


Re: Starting Again

2003-03-19 Thread S Watkins
S Watkins wrote:
Naaah, you keep them in . Tricky to see and difficult to remove 
without tricks.

Steve

Oops! Must remember to read ALL messages before firing off a reply. Apologies 
for the duplication of information *grin*

Steve
=


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com


Re: Starting Again

2003-03-19 Thread Philip Newton
On 19 Mar 2003 at 9:34, S Watkins wrote:

 Naaah, you keep them in . Tricky to see and difficult to remove without 
 tricks.

Also popular are directory names with embedded ^H's.

$ ls
foo
$ cd foo
ksh: foo:  not found
$ cd 'fa^V^Hoo'
$

(Unfortunately, that doesn't work everywhere... for example, on one 
Linux box where I tried it, 'ls' write it as 'fa?oo'. It worked on a HP-
UX 10.20 box we have around here, though.)

Cheers,
Philip
-- 
Philip Newton [EMAIL PROTECTED]




Starting Again

2003-03-18 Thread Brian Smart
Hi All,
I started to learn Perl and then had a period in Hospital which has put me
right back where I started. I would like to delete all references to Perl on
my website so that I can start from scratch. My website is hosted on an
Apache server and I use windows2000 on my PC.

I tried to delete all the Perl related files on the server but ended up with
some directories that could not be deleted because the directory held files
that I could not view.

Some help or advise would be greatly appreciated.

Regards

Brian Smart




Re: Starting Again

2003-03-18 Thread Jason Clifford
On Tue, 18 Mar 2003, Brian Smart wrote:

 I started to learn Perl and then had a period in Hospital which has put me
 right back where I started. I would like to delete all references to Perl on
 my website so that I can start from scratch. My website is hosted on an
 Apache server and I use windows2000 on my PC.
 
 I tried to delete all the Perl related files on the server but ended up with
 some directories that could not be deleted because the directory held files
 that I could not view.
 
 Some help or advise would be greatly appreciated.

If you cannot view or delete the files from FTP this usually indicates 
that the web process created the files with odd permissions.

The easiest way to resolve this is to nicely ask your web hosting company 
to remove the files for you.

Jason Clifford
-- 
UKFSN.ORG   Finance Free Software while you surf the 'net
http://www.ukfsn.org/   Get the T-Shirt Now




Re: Starting Again

2003-03-18 Thread Mark Fowler
On Tue, 18 Mar 2003, Brian Smart wrote:

 could not be deleted because the directory held files that I could not view.

You can delete all directories and files within a directory by logging
into your apache box with ssh/telnet, or the command line ftp utility[1].

  bash$ pwd   # print out where you are to make
  /where/your/files/are   # sure you're in the right dir

  bash$ rm -rf direcory_name  # delete directories children

Be *VERY* careful with this command.  It won't ask you for confirmation
(that's what the -f option means) and it will delete all your files very
quickly.  There's no undo and no undelete.  I've killed laptops with this
command in the past (sorry Leon) though not giving it enough respect.

rm will delete hidden files when it works recursively as in the above
example.  rm * (which is what you've probably been using) will however
_not_.  You can list hidden files (those starting with a .) by typing

 bash$ ls -a   # list _all_ files, inc. hidden in current dir
 bash$ ls -a foo   # same for the directory foo

Mark.

[1] Start-Run cmd, hit OK, then type ftp www.servername.com
-- 
#!/usr/bin/perl -T
use strict;
use warnings;
print q{Mark Fowler, [EMAIL PROTECTED], http://twoshortplanks.com/};



RE: Starting Again

2003-03-18 Thread Brian Smart
Hello Mark and others who replied to my query,
I have managed to delete the offending files so I am now back to the start.

Ivor queried if I was using Activestate on my PC. I installed that without
any difficulty and have been able to run Perl on my PC. My problems start
when I try to upload and run Perl on my web server. I will try again but I
suspect I may be back for more help.

There is one piece of advice I would like to get me going: where should any
new modules which are not part of the core Perl be placed on my web site and
where should my scripts go. I have had conflicting advise from other areas.

Regards

Brian Smart


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Mark Fowler
Sent: 18 March 2003 12:00
To: [EMAIL PROTECTED]
Subject: Re: Starting Again


On Tue, 18 Mar 2003, Brian Smart wrote:

 could not be deleted because the directory held files that I could not
view.

You can delete all directories and files within a directory by logging
into your apache box with ssh/telnet, or the command line ftp utility[1].

  bash$ pwd   # print out where you are to make
  /where/your/files/are   # sure you're in the right dir

  bash$ rm -rf direcory_name  # delete directories children

Be *VERY* careful with this command.  It won't ask you for confirmation
(that's what the -f option means) and it will delete all your files very
quickly.  There's no undo and no undelete.  I've killed laptops with this
command in the past (sorry Leon) though not giving it enough respect.

rm will delete hidden files when it works recursively as in the above
example.  rm * (which is what you've probably been using) will however
_not_.  You can list hidden files (those starting with a .) by typing

 bash$ ls -a   # list _all_ files, inc. hidden in current dir
 bash$ ls -a foo   # same for the directory foo

Mark.

[1] Start-Run cmd, hit OK, then type ftp www.servername.com
--
#!/usr/bin/perl -T
use strict;
use warnings;
print q{Mark Fowler, [EMAIL PROTECTED], http://twoshortplanks.com/};





Re: Starting Again

2003-03-18 Thread David Cantrell
On Tuesday, March 18, 2003 11:59 + Mark Fowler 
[EMAIL PROTECTED] wrote:

 bash$ ls -a   # list _all_ files, inc. hidden in current dir
 bash$ ls -a foo   # same for the directory foo
ls -A is useful too - it does the same as -a but doesn't list . or ... 
That last one is .. followed by a full stop.  Curse this Unix stuff.

--
David Cantrell


Re: Starting Again

2003-03-18 Thread Chris Devers
On Tue, 18 Mar 2003, Randal L. Schwartz wrote:

  Paul == Paul Makepeace [EMAIL PROTECTED] writes:

 Paul ... is where you keep warez, pr0n and rootkits.

 No, I use .  for that.  Or maybe .\n :)


You keep rootkits, Randal?

I thought you weren't supposed to be doing that


:)



-- 
Chris Devers[EMAIL PROTECTED]



Re: Starting Again

2003-03-18 Thread Randal L. Schwartz
 Paul == Paul Makepeace [EMAIL PROTECTED] writes:

Paul ... is where you keep warez, pr0n and rootkits.

No, I use .  for that.  Or maybe .\n :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
[EMAIL PROTECTED] URL:http://www.stonehenge.com/merlyn/
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!