[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Default FTP on Raq 550
- Subject: RE: [cobalt-users] Default FTP on Raq 550
- From: "Jolley, Carl" <Carl.Jolley@xxxxxxx>
- Date: Mon Jul 22 10:12:00 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
-----Original Message-----
From: Harvey Raybould
Sent: Saturday, July 20, 2002 5:30 AM
To: 'cobalt-users@xxxxxxxxxxxxxxx'
Subject: [cobalt-users] Default FTP on Raq 550
Hi,
On the Raq 3s and 4s, I used to be able to change the default
FTP directory by making simple modifications to the Ftp.pm file.
I have just bought a 550, and the relevant file is not in the same
position. Has anyone modified the default Ftp directory on the 550
so that it logs into the main web directory and not the users?
Thanks in advance.
-------------------------------------
I've seen multiple cases where people can't find a a perl module
on their Raq or don't know if it's already installed. So I humbly
offer the appened perl script to solve your problems. On my Raq
I call it perllib.pl. I run it like: perl perllib.pl <module>.
So in your case you could have done: perl perllib.pl Cobalt::Ftp.
**********************
!/usr/bin/perl
die "Usage: $0 module..module\n" unless @ARGV;
while (@ARGV) {
$module=shift(@ARGV);
print "$module: ";
$module=~s!::!/!g;
$module.='.pm' unless $module=~/\.pm$/;
$found=0;
foreach $lib(@INC) {
if (-f "$lib/$module") {
$found=1;
print "$lib\n";
last;
}
}
print "not found\n" unless $found;
}