[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] PostSession script, rm command and user directories



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
--------------------------------------------------

Nils Breunese.

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 ...




Meelis
---
meelis nlib ee
[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]