🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: uk.comp.os.linux
Article #710

Re: Yet another crash!

#710
From: Colin Smith
Date: Tue, 22 Feb 2000 00:00
60 lines
3289 bytes
On 21 Feb 2000 21:48:47 GMT, SammyTheSnake <phuae@primrose.csv.warwick.ac.uk> wrote:
>Nix fell asleep on the keyboard and...
>>"Tim Haynes" <piglet@glutinous.custard.org> writes:
>>
>>>                                             nor is not just getting on with
>>> it and typing the bloomin' thing...
>>
>>In the Windows world, you are conditioned not to do that, because all
>>too many actions are one-way you-are-dead-now-and-there-is-no-return.
>
>recycle bin
>undelete
>linux equivalent? nope.


Hmmmm.

That's odd, I have a trash (very American I know) receptacle on my desktop and 
when I type 'del filename(s)', filename(s) get tarred and compressed into the
trash folder.

undelete is insecure on a multi user system (who performs the undelete?)and
what're the chances of a file still being intact in order to perform an
undelete on a multi user system anyway?

There are file systems for Linux which can perform version control 
automatically.

Here's the shell code for 'del'.
------------------
#!/bin/sh

TAR='tar -c -f -'
COMPRESS='gzip -9 -c -'
RM='rm -rf'

TRASH="${HOME}/.trash"
DATE=`date +'%Y-%m-%d-%H-%M-%S'`
OUTPUTFILE="${DATE}-deletions.tar.gz"

( ${TAR} "$@" | ${COMPRESS} > ${TRASH}/${OUTPUTFILE} ) && ${RM} "$@"
------------------

>
>SammyTheSnake(the only thing I don't like about linux)

Well, were talking 8 lines of shell script to add that functionality and
it could be just 1 line without all the variables.

Cmon you all. This is the true power of Linux. This is what makes the
difference between Windows/Macs and Unix/Linux. With Linux the attitude
is 'Can do.', with the others it's 'Well Apple/Microsoft have promised
in version 500013.8...'

Cmon, get with the programme people. Delete stuff.

-- 
|Colin Smith:  Colin.Smith@yelm.freeserve.co.uk  |   Windows 2000    |
|Linux: Delivers on the promises Microsoft make. |        AKA        |
|             http://www.linux.org/              |    The W2K Bug    |
Technical Details
Message-ID: <slrn8b66u7.6us.colin@Orlanth.homenetwork>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <RJYW3.61$ju1.1566@nnrp4.clara.net> <FL3x5A.E5B@dangl.demon.co.uk> <383728e4@news.jakinternet.co.uk> <81rsh3$khi$1@fantasma.gsyc.inf.uc3m.es> <826a4r$mr5$1@sparky.wolfe.net> <385B6A68.838DAC06@r56o.f9.co.uk> <86fu3t$f29$1@news8.svr.pol.co.uk> <86g5dk$c5f$1@nnrp1.deja.com> <86io9q$nsv$1@newsg1.svr.pol.co.uk> <388E03F2.EA9A9682@netscape.net> <86lb70$meo$3@news5.svr.pol.co.uk> <388f2e8f.65436@news.greatxscape.net> <86nvkc$f11$1@news8.svr.pol.co.uk> <389091bc.2929952@news.greatxscape.net> <slrn899 <slrn8b3clu.7lu.phuae@primrose.csv.warwick.ac.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111053,9e82041a3ad6a90
X-Google-Attributes: gid111053,public
X-Google-Thread: 10d8ad,b33046ac4fb17395
X-Google-Attributes: gid10d8ad,public
From: colin@Yelm.freeserve.co.uk (Colin Smith)
Subject: Re: Yet another crash!
Date: 2000/02/22
Message-ID: <slrn8b66u7.6us.colin@Orlanth.homenetwork>
X-Deja-AN: 588615265
References: <RJYW3.61$ju1.1566@nnrp4.clara.net> <FL3x5A.E5B@dangl.demon.co.uk> <383728e4@news.jakinternet.co.uk> <81rsh3$khi$1@fantasma.gsyc.inf.uc3m.es> <826a4r$mr5$1@sparky.wolfe.net> <385B6A68.838DAC06@r56o.f9.co.uk> <86fu3t$f29$1@news8.svr.pol.co.uk> <86g5dk$c5f$1@nnrp1.deja.com> <86io9q$nsv$1@newsg1.svr.pol.co.uk> <388E03F2.EA9A9682@netscape.net> <86lb70$meo$3@news5.svr.pol.co.uk> <388f2e8f.65436@news.greatxscape.net> <86nvkc$f11$1@news8.svr.pol.co.uk> <389091bc.2929952@news.greatxscape.net> <slrn899 <slrn8b3clu.7lu.phuae@primrose.csv.warwick.ac.uk>
X-Complaints-To: abuse@theplanet.net
X-Trace: news6.svr.pol.co.uk 951263327 19257 62.136.128.78 (22 Feb 2000 23:48:47 GMT)
Organization: Customer of Planet Online
User-Agent: slrn/0.9.6.2 (Linux)
Reply-To: Colin.Smith@Yelm.freeserve.co.uk
NNTP-Posting-Date: 22 Feb 2000 23:48:47 GMT
Newsgroups: uk.comp.os.linux,freeserve.help.unix