General :: Script For Removing Files Depending On Age?
Jun 6, 2011
I want to develop a bash or Perl script that will evaluate files in the local directory and delete every file that is older than a specified time period, such as three months.I write documents and save the latest modifications by putting the current date in the filename, so I can easily see which versions are the newest. I would like to clean up my directory every once in a while, though, by eliminating the copies that are more than a few months old.
View 14 Replies
ADVERTISEMENT
May 31, 2011
I know a guy who has a website setup where he can download files from Megaupload with his premium account without signing in. He takes the MU link's ID, eg: URL... adds it to the end of the URL (URL...) and it downloads using the premium account logged in on the computer he has his site hosted on. We don't get along well and I would rather not ask him how he does it.
How would I set this up on my own computer? I can see this being extremely useful for me if I need to download some of my artwork or projects from MU but I don't want to sign in because I'm on a public computer or something. I already have everything installed on my computer to host a site. I have a simple "Hello World" page running on my webserver right now. I don't need help getting that part set up, just the rest of it.
View 1 Replies
View Related
Jun 4, 2011
The original thread was closed because "Sounds as if you are trying to steal a service which you have not paid for. We do not support that kind of activity here on Ubuntu Forums." However, it's not stealing since I am only going to use this with accounts that I have legitimately paid for.This might not be the right place to post this... if that's the case, I apologize - please move it to the correct location.I know a guy who has a website setup where he can download files from Megaupload with his premium account without signing in. He takes the MU link's ID, eg: http://www.megaupload.com/?d=xxxxxxxxand adds it to the end of the URL (http://192.168.1.199/mu/?d=xxxxxxxx) and it downloads using his premium account logged in on the computer he has his site hosted on. We don't get along well and I would rather not ask him how he does it.
How would I set this up on my own computer to use my premium account? I can see this being extremely useful for me if I need to download some of my artwork or projects from MU but I don't want to sign in because I'm on a public computer or something or because the computer has MU blocked. I want this to be a private site that only I have access to since it's my premium account and my money. I am not asking how to circumvent megauploads download limit at all (I've already paid for it... no need to circumvent it).
I just need a nudge in the right direction. Thanks in advance for any help you can provide.I already have everything installed on my computer to host a site. I have a simple "Hello World" page running on my webserver right now. I don't need help getting that part set up, just the rest of it. I assume this has something to do with setting up a proxy server - I just don't know how to do that and make it work like I need it to.
View 3 Replies
View Related
Jan 29, 2010
The rm command man pages discusses removing files or directories recursively. So what is meant by deleting a file or directory recursively? And what are some reasons for doing so?
View 3 Replies
View Related
Apr 27, 2010
Does anyone knows how to remove files from grub loader.BTW i found some tutorials but they don`t seem to work.I`ve tried Alt+F2 then I`ve edited this command: gksu gedit /boot/grub/menu.lst but it doesn`t seem to work what do I do?
View 5 Replies
View Related
Oct 17, 2010
I have stuffed up my system and I want to remove Glib 2.20 and Glib 2.26. How can I do this? Where are the files located? Sadly, there does not seem to be a make uninstall file for Glib.
View 3 Replies
View Related
Feb 18, 2010
The following script will work when I type the path to the file I want to checksum, but not when I drag the file to the terminal because the linux terminal (unlike the Mac) automatically puts quotes around the file path, which causes an error. I did not find anything in gconf-editor or anywhere else to alter this behaviour, and my post in Launchpad is unanswered so far. (the script in itself is not very useful, I just stumbled upon this error when experimenting with bash).
So, is there a workaround for stripping the quotes from the input, or can I configure the terminal to not quote the input when I drag a file into it (which I would prefer?)I am currently logged in from Mac OS, but the question refers to ubuntu karmic with which I dual boot.ADMINISTRATORS: Thanks for the quick reply to my newbie question about posting new threads. Actually I don't see now what the difficulty was; I guess I was tired from trying to debug the above script (not funny).
View 1 Replies
View Related
Jul 6, 2010
The Cookbook gives us
for FN in $*
do
echo changing %FN
chmod 0750
done
but that changes all. how can I change all files but subdirectorys? I was thinking of something likels -l | grep -v ^d but can't get it to work. I'm still learning about variables and how to use them. thanks in advance for your Patients.
View 2 Replies
View Related
Oct 26, 2010
I have a CSV file with 8 columns. I want to check the 5th column, which will contain a single capitalised letter. If that letter is say "B" I would then like to replace the 2nd column in the csv with an incremental number starting at 0 (basically a count) with a prefix of B (B0000001) Sample row would be:
Code:
C, 0109390,sfs,sfsf,B,blah,blah
Amended row would be:
Code:
C, B000001,sfs,sfsf,B,blah,blah
View 14 Replies
View Related
Jan 1, 2011
With Azureus/Vuze, can we set an upload/download rate limit depending on the time of day?
If not, do you know a torrent client allowing this? Client must be available on Linux.
I learned that you can install plugins for Azureus/Vuze. There is one about scheduling. I've tried to install it but I got a NullPointerException.
View 3 Replies
View Related
Dec 12, 2009
I have just done a upgrade. And I get the message below. I am not sure that I don't have enough on my boot partition to install the new kernel.When I try and upgrade I get this message: There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
View 1 Replies
View Related
Oct 23, 2010
I used to have a command that removed the *odd* characters from files and replaced spaces with underscores.
View 10 Replies
View Related
Oct 6, 2009
I downloaded Remastersys, and have made an ISO of my system. How do I remove stuff from it? It's too large to fit onto a CD, and I don't have a DVD-RW drive.
View 6 Replies
View Related
Jul 14, 2010
I have just manage to set up a number of computers using NComputing thin clients. I have set up 5 user accounts.People will be using these account randomly. So what I want is to set up everything as it should be and that to be the default setting. If users download files or make changes to the files these should be for the session. On startup/shutdown all the files and changes should be deleted this way the next user can find the machine clean. And also there is limited maintenance to be done.
View 1 Replies
View Related
Jan 12, 2010
Depending on whether I launched it with gnome do or the main menu I got a different 'version' of spotify, I could tell this because it had different searches remembered. I tried removing wine and spotify and gnome do via synaptic and completely remove and then the option to remove configuration files left over. I did a search and there were loads of wine files left so I just deleted. When I reinstalled wine, spotify and gnome do the same problem occurred.
Also Firefox started crashing ubuntu, just freezing it, so I tried to uninstall completely, but when I restarted it kept the same add ons and still crashed. So I uninstalled again and tried to delete all firefox folders but I can't work out how to do it as root.
View 8 Replies
View Related
Feb 17, 2010
I had added a repo from this site: [URL]...now, i have removed the repo as i dont want to use the software anymore, but how do i make sure that i have removed everything on my pc installed from that repo?
View 2 Replies
View Related
Mar 12, 2010
Basically this is my problem:
1.) I want to remove Ubuntu and Grub and have only Windows XP on my PC again. (Remember the good old days?)
2.) I want to put the Ubuntu partitions back into Windows partition. I need the space.
3.) I can't use an XP disc because I don't have one. (No. Neither does anyone else I know.)
4.) FIXMBR isn't working... am I doing something wrong and what other options do I have?
5.) Does anyone know how do this without removing all my files on the XP? I can't afford to backup everything on my XP. I CAN'T!
View 5 Replies
View Related
May 2, 2010
I had added a repo from this site: [URL]now, i have removed the repo as i dont want to use the software anymore, but how do i make sure that i have removed everything on my pc installed from that repo?
View 1 Replies
View Related
Mar 17, 2011
I m trying to install Alsa for playing wav files I typed this: aptitude install alsa-base It started removing a lot of software from debian. Is that expected with that command? Do I need to install another "base" to bring things back?
View 4 Replies
View Related
Jun 22, 2010
I'm migrating data (music and videos mainly) from a NAS server that was being used as my iTuens Media Folder onto a fresh install of Ubuntu 10.04 and I'd like to get rid of all the ._DS files as well as other files that os x 10.4 has been creating such as duplicates of mp3 files but prefixed with "._".
The reason I'm keen to remove all of these files is because I stumbled across a corrupted ._DS_Store file that caused me all sorts of head aches and I don't want them causing any problems in linux.
I've used the search function in Nautilus to search for ._ but it returns no results, even when I'm searching in a directory that I know for certain has those files in it. I have 'View hidden files' selected.
View 2 Replies
View Related
Jun 20, 2011
Is it possible to remove the "ubuntuone-synchronized" emblem from files and folders that are being synchronized with Ubuntu One? Seeing the check mark on all my files and folders is just really annoying and distracts from the thumbnail preview that nautilus provides.I've tried going into folder properties -> emblems and de-selecting the emblem but it won't let me.
View 3 Replies
View Related
Jan 7, 2010
Quote: evolution-data-server-common architecture independent files for Evolution Data Server. Why, when removing this package, does Synaptic want me to also remove:
Quote:
gnome-applet
gnome-panel
indicator-applet
ubuntu-netbook-remix
This seems pretty stupid. I just want to get rid of Evolution! Netbooks are cloud based machines, why was Evolution even included?! The same with OpenOffice.
View 9 Replies
View Related
Dec 3, 2010
Seem my rotation part is not removing files older than 90 days. Anybody know what is wrong?
Code:
#!/bin/sh
#navigate to the desired backup location
cd /public/backup/linux
#dump the MySQL entirely, output file is dated
mysqldump -u root -pmt1jxz68f2 --all-databases > "`date +%Y%m%d`.sql"
#backup the web folder
[Code]...
View 1 Replies
View Related
May 31, 2011
I know a bunch of commands and I am comfortable using the terminal, I even set a powerpc server but I can't figure out how to remove epiphany on this new computer I'm setting up. I didn't install anything with tasksel. I installed gnome and xorg afterwards... I load it up and 'startx' just fine. then I check around for the programs that were installed. I lik'em gimp, lot's of utilities. gedit. anyway I find epiphany, which I have already established that I dislike, I immediately go to the root terminal (another nice program that comes with gnome) and type apt-get remove epiphany-browser-data the output says it will be deleting gnome... however I have researched and found these are simpy meta packages that don't really matter.... however under the section that states all the packages that will be removed by autoremove there is a huge list... I doubt these packages are safe to remove. how to remove epiphany without removing a huge amount of probably needed software
View 14 Replies
View Related
Feb 27, 2011
what i did was, remove evolution mail from synaptic, what i wanted to do was just remove the indicator applet from the task bar. i read a bunch of bad stuff about removing evolution from synaptic vs just removing the applet.
im worried. did i break anything or put my security at risk. after, i used a command (older) (sudo apt-get install ubuntu-desktop)to install ubuntu desktop. because i thought that it would fix evolution. then i went to synaptic and installed a package called evolution. i rechecked evolution in applications menu. however, i notice that i have both a checkable evolution and two evolution icons. nothing 'seems' broken. im not sure if it ever was. and evolution calender pops up as normal, as does the the installed plain evolution. they both seems to be an exact copy of the other.
all i really wanted to do was remove the indicator applet. did i make a serious mistake. since ive had ubuntu, ive reformatted a lot because i was worried i made a mistake of some kind. however now im into the more "make a mistake and fix it stage' as im pretty happy with my current desktop and have worked hard to customize it. the command, sudo apt-get remove indicator-messages removed the mail icon. i still am worried that i broke something, or put my security at risk. also, now i have two mail icons. evolution mail and calendar, and another just called evolution.
View 1 Replies
View Related
Aug 25, 2010
These should be my last pleas for help with regard to Fedora 13. I've been unable to turn off the notifications that appear in the top right corner, despite a decent amount of searching on google. I can't remove any notifications package without removing a bunch of important software along with it. Also, F13 refuses to "Safely Remove" either of my external disks. I have to yank out the usb cord, touching wood each time.
View 5 Replies
View Related
Dec 30, 2009
Is it possible to install 1 more language in openSUSE, and then, one user to use one, another user to use another? I mean, when I login, I want english, and when my mother logins, to be Serbian/Croat?
View 3 Replies
View Related
Jul 22, 2010
configure which dns the system will consult depending on which user iniciated the request.My goal would be, if user "peter" is logged in and has opened the browser, that requests for name solves from that user goes to certain/s dns server/s. And if user "anne" is logged and request name resolution, that request should be done to another dns server.To say it briefly, the idea would be configure selective dns server use depending on system users.
View 13 Replies
View Related
Feb 19, 2010
is it possible to specify differnt settings for ssh depending on where somone is logging in from basically i want PasswordAuthentication yes when someone is logging in from 192.168.*.* but set to no when logging in from anywhere else
View 1 Replies
View Related
Jul 26, 2011
is there a Debian way possibility to start services depending on the choice made on the (grub) boot prompt? As an example:
Workstation - starts all and everything but no hostap nor xend (run this at home)
Workstation traveller - starts like Worksation except networking (run this in the pub
Xen host - run this preparing some training courses
Xen host HOSTAP - run this having the training course with a WiFi net for the class
I came from Gentoo recently and there is such a possibility. It is relatively simple to put a kernel option which the kernel does not recognize at the boot prompt. Such not recognized options will be sent through to init (and thus to the SysV init scripts) by the kernel and I could script this. What I am looking for is a the "official" way on Debian to do such things.
View 2 Replies
View Related