CentOS 5 :: Settings To Delete TMP Folder Automatically At Shutdown?
Jan 27, 2010
It seems to me that the /tmp folder is currently crowded with old stuff. How can I tell CentOS to always automatically delete all /tmp folder content just before shutdown?
View 4 Replies
ADVERTISEMENT
Mar 29, 2010
I found this Example how to delete Temp files on shutdown automagically.
View 6 Replies
View Related
Mar 27, 2010
I have server running ubuntu. There is folder /var/netflow and I have there files, which creates every 5minutes new ones(monitoring traffic on network). And I need to delete files older than 6 months manually. Can you help?
View 2 Replies
View Related
Sep 6, 2011
Recently I setup a system for a non-technical user. He is only using Firefox, Pidgin and OpenOffice for about 2 hours a day. I have created a folder "/home/jim/myFiles" where he can save his document files. But Jim has accidentally deleted his myFiles folder on 2 occasions. He had intended to delete a file in that folder. Is there a way to lock the folder so that the user and create/read/write documents in that folder but not delete the folder itself?
View 14 Replies
View Related
Oct 13, 2009
I am trying to add a command to my backup script to delete the oldest file in the destination folder before adding a new .tar.gz file.I found this information at .html which I thought would work fine and added the following line to my backup script:ls -t -r -l /backups/Scalix_Backup* | head --lines 1 | xargs rmHowever when I tried this I get an error:rm: invalid option -- wTry `rm --help' for more information
View 7 Replies
View Related
May 9, 2010
SO after using Testdisk to recover some images, the folders recup_dir.1 & 2 have saved in my FIle System area, when ever I try to press delete noting happens. I have also tried rm -f -rrm -f -fIt still dont delete, I have also deleted my user account and made a new one, but the files are still there.
View 4 Replies
View Related
Apr 24, 2010
I'm using ubuntu server 9.10 for a home build NAS. Everything is working great just have one more thing to figure out. I have Samba set up to access my files and I set up a recycle feature so anything deleted will get moved to a Recycled folder. (I learned this the hard way after hitting delete key by accident while browsing the shares in windows. Lost 100 GB of data)
Now it is for the most part working but the permissions on folders isn't getting set right. If I delete a file in a share I can go to Recycle bin folder and delete the file for good. But if I delete a folder I can not access that folder to delete or restore from the Recycle bin folder. I have to chmod the folder before I can do anything with it. Anything I can change to get folders deleted via windows to have the right permissions when it is moved to the Recycle bin folder?
[Code]///
View 1 Replies
View Related
Jun 8, 2011
upon browsing the home folder in my ubuntu system, i came across a hidden cache folder..
it occupied around 700 mb of space..and im falling short of space..
can i delete the contents in the folder? are they safe to delete?
View 5 Replies
View Related
Oct 29, 2010
I am using Centos 5. I got one error unexpectedly after some configuration for rsync and folder settings. The error i am getting is "Serve Authorization directory (daemon/ServAuthDir) is set to /var/gdm but does not exist. Please correct the configuration and restart GDM." after rebooting.
I tried to resolve the issue by setting permission for folder /var/gdm to 755. but the problem is still not resolved.
View 1 Replies
View Related
Jun 13, 2011
I have Ubuntu Jaunty 9.04 updated to 9.10 and have downloaded Remaster from Remastersys. I followed all of the instructions, which were simple enough. However, there must be some instructions missing as the process failed. Working with Remaster through Synaptic Manager, the iso was downloaded into my "home" folder into its own Remaster folder. It was not the iso, like you get when downloading a distro from the Internet, which downloads just an iso onto the Desktop. Inside the folder were a bunch of empty files (I know, because I opened them) and an iso . At this point the Remaster instruction stop. They do not say what to do with the other files, or what they have to do with the iso of my Ubuntu layout. So, like any other iso (once I knew which one was the iso of my setup), I double clicked on it and it ran me through the process of accessing the DVD to burn it. Which I did. I tested it and it failed with some kind of message to the effect that certain files were missing or it could not read it. So, I thought, I would have to do the 'hunt and peck' method and experiment a few times like I did with the ordinary distro downloads until I get it right. But first, I would have to dump the Remaster folder in the "home" folder since it took up so much space on my hard drive. Wrong! I come to find out it is in something called "root" and that I do not have permission to do anything with it but "copy" it. Great. Just great! Now what do I do. I tried to change permissions, but was not allowed to do that either. The only thing I could think of - and dread - was the idea of having to wipe my hard drive and go through the whole reinstall procedures, which takes me days, just because Remaster has locked itself into my system - and there is no 'back door' to get out of it.
View 9 Replies
View Related
Dec 7, 2010
I've been googling my brains out looking for a solution to this. So far, nothing.
As the title suggests, every time I attempt to shut the computer down it instantly reboots the moment the internal fans stop whirring.
So far I've tried:
-shutting down via the terminal (this actually makes the reboot happen instantly rather than waiting for the fans to stop)
-looking in the BIOS for any obvious settings which may be causing this
-performing a dpkg repair
-Allowing "Proposed" updates in the Updater
-installing (slightly) older Kernel (2.6.35-22 as opposed to 2.6.35-23)
-installing newer (2.6.36) kernel
I know others are having this issue, but other threads I've read seem to have fizzled out with no conclusion. Has anyone managed to find a way to make this work if they've had the bug?
Any advice at all? Is it worth trying an even older kernel? Or an even older version of Linux?
View 1 Replies
View Related
Feb 18, 2011
I got a question, is there a script or program that automaticly boots my server and shutdown at give hours of a day I want to have my server running from 7am till 8pm ever weekday (Monday-Tuesday-Wednesday-Thursday-Friday) is this possible? I'm running a Ubuntu 10.04 server with Zentyal on
View 2 Replies
View Related
Feb 18, 2010
My RHEL Machine is a Build server and always gets shutdown / rebooted at around 5:30 every evening. No idea whats going on as developers were unable to connect to the machine since three days. When I am visiting the physical server probably next morning (since last 3 days)its doesn't show anything and all i reboot the machine and it comes up without any issue. how to troubleshoot?
View 7 Replies
View Related
Jun 13, 2011
I'm looking for a program or script that will automatically shut down my computer at specified times. The thing is, if I happen to be using the computer at those times, I want it to ask me if I want to shut down before it does it.
Something like I want the computer to shut down at 9 am every day. When it's 9am, a prompt pops up and says, "Do you want to shut down or continue running? If you do not answer, the computer will automatically shut down in 10 seconds." Not sure if something like this is out there or not.
View 3 Replies
View Related
Apr 9, 2011
I have a script running as a cronjobIt outputs logs upon each run to /var/log/mylog.logIs there anyway I can delete this or compress it when it gets too large?A cheap and dirty way is to setup another cronjob to delete the log every X interval.... although I'm not sure if that's the proper way
View 3 Replies
View Related
Oct 23, 2010
I'm using squid as a proxy in our organization. My problem is whenever the squid cache folder size exceeds 3 GB our proxy server starts to hang. Is there a way to write a script that it will automatically delete the squid cash when it exceeds the 3GB limit.
View 7 Replies
View Related
Mar 4, 2011
i have a RAMdisk set up on my desktop with a hidden folder of stuff in it; but i want to know is it possible for me to set ubuntu to copy the files to another directory on shutdown, and copy back again on startup?
View 2 Replies
View Related
Oct 14, 2010
I would like to develop a shell script that would automatically run a backup program and then shutdown the computers, but I do not know the first thing about script development or even writing scripting.
View 2 Replies
View Related
Aug 26, 2010
How can I automate the following: When I insert a flash drive into any of the available USB ports, some kind of script or software, must automatically mount it, delete everything off the flash drive, copy an audio file back to it and then automatically unmount the USB.Maybe I should setup some kind of Kiosk to use the above functionality - would that be easy?
View 2 Replies
View Related
May 1, 2010
I have a PHP script running on my website that can generate temporary images, but if I clean them up right away, then the browser doesn't have time to render them.Is there some way to make Apache2 delete them after 5 minutes or so?
View 3 Replies
View Related
Aug 4, 2010
Is there a way to automatically remove the old linux image when a new one is updated?
When my system boots up it shows option
Ubuntu kernel version x.x.x-21
Ubuntu kernel version x.x.x-22
Ubuntu kernel version x.x.x-23
Ubuntu kernel version x.x.x-24
memtest
memtest + console
Windows 7 loader
Ubuntu seems to boot up the exact same regardless if I choose version 21 or 24. Dont recall the exact kernel since I am not in front of my computer now.
View 2 Replies
View Related
Aug 14, 2010
I have a PHP script running on my website that can generate temporary images, but if I clean them up right away, then the browser doesn't have time to render them. Is there some way to make Apache2 delete them after 5 minutes or so?
View 1 Replies
View Related
Aug 17, 2009
I have installed Oracle 11g on 5.3. Now, I am trying to START and STOP oracle automatically on system startup and shutdown. I am following this link To have this effect, I have created /etc/init.d/dbora
Code:
#!/bin/sh
# chkconfig: 345 99 10
ORA_HOME=/oracle/app/oracle/product/11.1.0/db_1
[code]....
View 4 Replies
View Related
Sep 8, 2010
I installed Open Suse 11.3 LXDE from the live CD I downloaded. My monitor settings reset to the highest resolution on every shutdown/reboot. Other settings like my wallpaper and removing the lock screen on screensaver also reset.
Is this there anything I can do to get settings/changes I make to stay?
View 2 Replies
View Related
Aug 8, 2010
Does ubuntu server automatically backup files? How can i get to them?
View 1 Replies
View Related
Feb 15, 2011
I am administrating a lab in a university and every semester we need to delete all the home folders of the accounts for the next semester. I would like to make a bash script that does this automatically and having trouble with it. Note that I am writing my very first bash script. What I need to do is make a script to delete the following:
Delete everything in /home/$exp$num/$dir
when "exp" could be either "rt", "ic" or "sp".
"num" could run from 1(single digit) to 45 and dir is "profile" and "work".
This is what I tried to write:
Code:
#!/bin/sh
cd /home
for exp in "rt ic sp"
do
[code]....
What seems to be the problem is the reading of "$exp$num" as a joint expression.
View 4 Replies
View Related
Mar 18, 2010
I am facing a problem in Windows due to a virus called Newfolder.exe which creats files with the same name as it's parent directory and an extension .exe and this happens for every directory in the entire hierarchy in the infected pen drive. The antivirus detects them, but is sucking slow. So I thought this is a good opportunity to use the concepts of the all mighty shell script to remove those as they follow the same pattern. Say my complete path is
Code:
/home/pkd/fol1/
The virus would have created an file with complete paths
Quote:
/home/pkd/fol1.exe
If fol1 has two more directories fol11 and fol12 Then there would be two more .exe(virus created) in the following path
Quote:
/home/pkd/fol11/fol11.exe
/home/pkd/fol12/fol12.exe
View 1 Replies
View Related
Jun 24, 2011
I have triplebuffer set up in the xorg.conf, i am using the squeeze Nvidia drivers (the ancient one), installed debian way.
In nvidia-settings, i have enabled all the entries of sync to vblank, but after i log in, if i go a glxgears, i get 1000+fps, then i start nvidia-settings, the screen flickers when it starts for some reason, resolution is still at native (1366x768), after starting and quitting nvidia-settings, starting glxgears made it 60fps.
How to i make sure sync to vblank is forced? i prefer it this way.
View 1 Replies
View Related
Jan 23, 2010
It seems there is a problem with Chromium with not clearing out some cache such that if you go from one site with a css file to another site with a similar named css file, the old css file remains - go to options and clear out all browser stuff and everything is okay.is there a way to automatically clear out settings when the browser is closed like the Firefox option to do this ?
View 1 Replies
View Related
Jun 13, 2010
I've looked at the Arch wiki entry for configuring NVIDIA cards/drivers, and I found that you can put the command nvidia-settings --load-config-only into your DE's session startup configs to make it launch automatically upon login. However, I can't seem to figure out how to do this under Xfce. I've already tried modifying /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml with the following:
Code:
...
<property name="Client4_PerScreen" type="bool" value="false"/>
[code]...
View 3 Replies
View Related