Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by jimpy90

  1. I am a noob. I can do basic linux stuff but i am trying to write a script to make this easier. I have never written a script before and i am actually suprised that i have got this fat without rm'ing my entire system. I have several directories that cameras upload images to all day. Basically i want this script to run as a cron job and run at midnight every night and delete all but the last 3 days worth of files. I found the easeiest way to find the files was using the `find` command, so i part wrote and part found this command. If i type this in to the console it works . It will delete all but the last 3 days worth of files. find /path/to/directory/ -mtime +3 -daystart -exec rm {} \; i cant celebrate too soon though. i need this command to run on 5 different directories in: /path/to/directory2/ /path/to/directory3/ /path/to/directory4/ /path/to/directory5/ So i repeat the command 5 times and put it in to a .sh file and try and run it. :s it says find: missing argument to `-exec' 4 times and the last line says: rm: cannot remove `/path/to/directory4/': Is a directory the script as it stands is: cleanup.sh find /path/to/directory/ -mtime +3 -daystart -exec rm {} \; find /path/to/directory1/ -mtime +3 -daystart -exec rm {} \; find /path/to/directory2/ -mtime +3 -daystart -exec rm {} \; find /path/to/directory3/ -mtime +3 -daystart -exec rm {} \; find /path/to/directory4/ -mtime +3 -daystart -exec rm {} \; Please any help/advice is welcome Thanks in advance Jim
  2. Here : Linux Filesystem Guide
  3. If you would like to know more about the Linux filesystem go here. It describes folders like /etc and /bin and tells you what you can expect to find in them. Very useful document.
  4. Hi, I am fairly new to linux and i have just recently formatted my old windows pc to run Fedora Core 2 linux so i can run a server. I am a proficiant networker so i know what i am doing the physical/windows side of things but i can't get the fedora network card to work properly. Linux Machine is a 3com 3C900 10 Mbp/s network card on a P3 650Mhz 256MB Ram running a recently downloaded copy of Fedora Core 2. It has successfully detected the card on OS install and installed the correct corresponding drivers. It is the device eth0. Linux machine as windows. Was running windows 2000 (which partition has been deleted) and the NIC worked perfectly with statically configured settings in the same setup several days before the reformat. XP Machine is connected to a home wireless network with access to the internet via router it also has a second NIC which is a US Robotics 10/100 That i know works. The network i am trying to acomplish is too simple being just a crossosver cable between the two computers with at proxy running off XP machine so linux can access internet. When i put the crossover cable in the lights light on the back of the NIC's but neither computer can ping each other. i tried connecting the computers through my home routers switch (and the correct cables) but same senario. even when i tried to configure the linux box by the DHCP server on the router, that failed also. Returned error somthing like "Wasnt able to detect settings" but that only happened when set to DHCP. After each setting change i restarted the entire computer (for good measure) and still no results. When the computers were connected with a static configuration on the crossover i set up a packet sniffer on the xp machine and sent a ping. The results were that ARP wasn't able to resolve the IP. when i ran ping on the linux machine listening on the XP machine, the sniffer returned nothing. Can this be fixed or do i need to buy a new Network card? If so can you recomend a card for use with linux (PCI only) Thanks James www.theferal.co.uk
  5. jimpy90

    Gnome2 at startup

    A followup for anyone else in the same position as me: http://www.mh-linux.co.uk/forums/showthread.php?threadid=546 This helped me get a graphical user login going (XDM) but what i realy want is the GDM.... HOWEVER i have read on the internet that you should not boot in to GDM using the ttys file as it becomes unstable. Does anyone know a work around or even better, the proper way to install GDM? Gnome is my default desktop enviroment, i.e. when i login and type 'startx' gnome starts. I am using Gnome2 on a FreeBSD 4.9 p.s. or would you suggest that i convert to KDE?
  6. jimpy90

    Gnome2 at startup

    Hi, I have recently installed FreeBSD (i know it's unix but....) version 4.9 i386. Considering that this is the first time i have ever used Linux/Unix Based OS i am doing quite well with setting up the XServer and the Gnome Desktop. My question is this... Ho do i/What file do i change to make Gnome run at startup so that i login to the computer with the Gnome GUI???????????? Please reply this has been pissing me off for the past day, and please speak real simple. i am very computer literate but, Unix is a whole new world to me.
  • Create New...