[BL] how do you move files to/from your local net ?

baslinux at lists.ibiblio.org baslinux at lists.ibiblio.org
Sat Dec 1 23:32:49 EST 2007


Message from Steven
===================
Czerno wrote:
>
> > I got around this by writing a script to automatically
> > generate an index.htm with a clickable list of files
> > in that directory.  Tell me if you want a copy.
> 
> Yes please, might you post it at the main BL site so 
> everybody can get a copy ? 

echo '<HTML>' > index.html
echo '<BODY>' >> index.html
echo '<TABLE>' >> index.html
for i in *; do
pre=`ls -dl $i | cut -c1`
case $pre in 
 d) pre=""  
    name=$i' ==>' ;;
 *) pre=`ls -dsh $i |sed 's/^ *//' |cut -d" " -f1` 
    name=$i ;;
esac
echo '<TR>' >> index.html
echo '<TD>'$pre >> index.html 
echo '<TD><A HREF="'$i'">'$name'</A><BR>' >> index.html
done
echo '</TABLE>' >> index.html
echo '</BODY>' >> index.html
echo '</HTML>' >> index.html
















> 
> 
> >> I also thought of using nc/netcat. 
>  
> > That's what the BL3 send/receive scripts use.  If you
> > have netcat on the other Lin/Win machines then you will
> > be able to use send/receive.
> 
> Aha! Must have a look at those scripts. I put netcat on Win machines
> routinely. OTOH, I am not in the habit of installing-running FTP
> servers. 
> 
> 
> Cheers,
> 
> -- 
> Czerno
> 
> EOM _____________________________________________________________
> 
> 
> 
> 
>       _____________________________________________________________________________ 
> Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 
> 
> -----------------------
> BasicLinux mailing list
> -----------------------
> http://www.basiclinux.com.ru
> http://www.ibiblio.org/pub/linux/distributions/baslinux/
> ------------------------------------
> To exit, send subject=unsubscribe to
> baslinux-request at lists.ibiblio.org





More information about the BasLinux mailing list