I have added some executable scripts to /etc/cron.daily but don't get the stdout/stderr output from them as mail (or anywhere else I have found). At least one of them is running (because I can see that it has added a file to the disk).
The peculiar thing is that I do get the output from /etc/cron.daily/0logwatch (part of the logwatch package) as an email each day.
The MAILTO line in /etc/crontab is "MAILTO=root" (unchanged from default). Same for /etc/anacrontab.
I do have an alias at the end of /etc/aliases which redirects root's mail to my own account, but this alias works fine for mail I send manually. (It also appears to work fine for the output from the file /etc/cron.daily/0logwatch.)
Does anyone have a solution for cron file permissions. I need them to be automatically generated 640, right not I believe they are 0644. Could I add a umask varible to the syslog.conf file to set the umask for cron generated files? Or is there a better way to do this. I am speaking only of logs generated by root.
I have a php script in cron directory that generates 5 textfiles, after the files are generated, I want to create a script that will move the 5 text fiels to anoher folder name "web".
in my linux box i have lot of cron jobs. i need to make all cron jobs in script files. is it possible to make this. like[URL]Now how i change this in a script file
I would like to create a cronjob that will delete all files within a directory 1 hours after it is created to the folderI found this cron find /path/to/file/* -ctime +1 -exec rm {} ; but it's deleted all files.I want to make an exception, all file should be deleted except one file (letsay file a.zip)
A user will be ftping some files to an upload directory. I need to move those files to another directory. I also need to mail a list of the just moved files to the user. This job will need to run every 10 minutes. I need to keep a log that holds all the files for the day that were moved, renaming it with the date/timestamp.I have this below but I just can't put it all together. a workable script out of this?
I made a Bash script that is fired by a Cron job every morning. It dumps an SVN backup on some Samba shared drive. I would like to know how I can make sure the job worked correctly without having to verify the shared drive every morning. Right now, I take the job's output, save it to a log file and send this file by email. But the ouput isn't so great.
This is Kishore and i am new to Ubuntu and SVN and please some one help me in creating a cron job for my svn backup every day at 10:30 pm I already created a cron job which looks like 30 10 * * * svnadmin dump /home/administrator/svnrepository >svn1 when i run command directly i am getting whole backup and it's size is 3.6 gb but when i run through cron job the backup size is only 9 mb. So finally my requests are 1. cron job for taking complete svn backup at 10:30 pm daily and 2. cron job to copy the SVN backup in to my windows system in d drive and this must be run every day at 11:30 pm.
I would like to backup important files (totaling about 400GB) on my ext 4 RAID 5 array to an ext4 external hard drive over USB (external drive is mounted to /mnt. In the future I'd like to automate the process using rsync and cron so for now I'm using rsync to transfer the files. My problem is that using the rsync command like this: # rsync -Pr "/dir1" "/dir2" "/dir3" "/dir4" /mnt
rsync shows me the checks and transfers for awhile and then throws up an i/o error (wish I had a screenshot to show but I don't). When I ls /mnt I get a similar i/o error. I then check /dev for the drive and find that it no longer shows up. Originally the partition was /dev/sdc1. I tried unplugging the USB at this point, plugging it back in and mounting the drive back to /mnt, however it has now assigned it to (you guessed it) /dev/sdd1. I get the drive mounted and try the original rsync command again, hoping the first error was a fluke or some kind of one-time drive fart. This time it makes it quite a bit further and then throws up the exact same problem. Am I doing something terribly wrong here? As I said, I'm very new to bash so I'm not making some absolutely moronic, newbie mistake.
I put in my cron entries to run my backup script which rsyncs my data to my 2nd drive, however on a hunch I checked my backup drive which mounts automatically via fstab and I realize it had not ran in a while. I checked cron and there were no entries for it. I got to wondering if I should ever be worried about a cron update coming down and over-writing my existing cron file with the backup entries in it to run.
I currently have three hard drives: (2) 150GB IDE drives (windows) and (1) 500GB SATA drive (fedora13). I'm trying to move files on the IDE drives to the SATA drive so that I only need the SATA drive. The SATA drive is running Fedora 13 and the other two were old NTFS drives that I just use for space now. So most of the files copied fine, however, for a handful of them I receive the following error:Error splicing file: Value too large for defined data type This happens when I try to copy files not only from drive to drive, but even from folder to folder on the same drive. I've read about a 2GB file size limit, but none of the files are that size. I have no idea why this is happening.
how do I view files saved under windows internet explorer in linux. have tried mozilla firefox and here is what I get. is it possible to view the files as displayed in ie?
m: <Saved by Microsoft Internet Explorer 5> Subject: installing rpm without yum no internet yet - FedoraForum.org Date: Tue, 25 Aug 2009 00:23:04 -0400 MIME-Version: 1.0
[Code].....
also don't have internet access under linux as yet. wh at modem would you guys recommend that you know will work with linux? using dual boot ibm with windows xp h ome and linux 10
I am trying to access my Windows 7 files from Fedora 15. can view the Windows network from Linux and it displays the laptop fine. I can view the folders on the Windows 7 laptop but I can't access/open them. I receive an 'Unable to mount file' message in Linux. I have Samba installed and running fine. Is there something I have to change in the Linux firewall or samba.conf?
I am trying to both access files shared by Windows machines on my network, and I also want to share files on my Fedora 15 box. In Nautilus, if I choose the 'Browse Network' option on the left toolbar, I am shown a Windows Network icon. If I try to double click this, I am given an "Unable to mount location" error. Does anyone know why this is and how to fix it? Further, where is the GNOME 3 option to right click and choose to share a folder? Both KDE 4.5/4.6 and older versions of GNOME (at least on Ubuntu) had this. Is there a way to share files this way, and if not, is there some workaround?
i need to access the shared files of computes with windows on it.i have fedora 8 on my machine..our computers are on the same network of the office...how do i access my friend's shared file.??
I'm having some problems with file and print sharing between my Fedora 12 box and my Win 7 box. trying to access shares on the Win 7 machine results in a "unable to retrieve the shares list" error message. I've been searching Google for a while now with no success.
i had got an external USB modem, infact any indian would know that Reliance has this Net Connect which they give by which we can surf through the net. Although fedora is detecting this i dont know as to how i can browse the net using this since all the files are in .exe format which is only compatible with windows.
I am an Ubuntu refugee. Allow me to explain what happened. I am dual booting with Windows 7 and F15 x64.
(1) I wanted to created a shortcut of my "Documents" folder in my Windows in Nautilus (2) I opened the Windows drive by double clicking the drive under Devices, and navigated to my "Documents" folder (F15 already has ntfs-3g installed so no hassles there) (3) I then dragged the folder to the sidebar to place it under the Trash icon--but for some reason, it would not let me do this, and accidentally got placed in the Trash bin. (4) problem is I can't see this folder in the Trash bin (it is not even hidden) (5) To check if the Trash bin actually captures items when we move files/folders to Trash, I tried sending a folder from my Home directory to Trash, and the folder appears in the Trash; it can even be restored to Home. (6) Only files/folders from the NTFS formatted Windows drive do not appear in the Trash folder if sent there. (7) I have Google searched this problem, but to no avail. (8) I even thought that because the drive is not mounted 'officially' I would mount it using command line:
Code:
(9) But still I can't see the folders in the Trash (10) Interestingly, when I try to unmount the Windows drive 'formally' then I get a message if I want to "empty the Trash"--I obviously chose not to--so I know there is my Windows Documents folder in there somehere.
I create a shell file with different commands . I am able to execute it manually . Now I want to schedule this file hourly . For this where I place this file and where I configure for time .
I can't seem to get a cron job to work on my Fedora 11 box. When I check the logs, cron is actually working. In my /etc/crontab I have an entry to run the cron job on my Moodle installation: