[K12OSN] PostSession script, rm command and user directories

Nils Breunese nils at breun.nl
Fri Dec 15 12:40:15 UTC 2006


Meelis Mihhailov wrote:

>> You could clean this up a little further, because it's not really
>> necessary to copy the tar file, extract it and then remove it.
>>
>> --------------------------------------------------
>> rm -rf /home/terminal1
>> cd /home
>> tar -xf /usr/BACKUP/terminal1.tar
>> --------------------------------------------------
>
> Hi and thanks for the reply. This helped a bit and made the code  
> nicer :) Thanks !
> It removes all the old stuff except the ones user has made. For  
> example saved a webpage/documents in his/her home directory. The  
> ones on the desktop are erased ... this is a good thing :) but / 
> home/custom_dir_name problem still remains ...

I don't really understand your problem I guess. What is /home/ 
custom_dir_name?

Nils Breunese


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: Dit deel van het bericht is digitaal ondertekend
URL: <http://listman.redhat.com/archives/k12osn/attachments/20061215/bcf89e91/attachment.sig>


More information about the K12OSN mailing list