Ubuntu :: Finding A Place To Put Scripts To Be Run By Cron?
Jul 22, 2010
I'm not using the anacron folders like cron.daily and such so I'm not just plopping them in there. I'm using cron.d so I have more control over when my scripts are run.I currently have them just sitting in my home directory but this isn't really ideal since they're system-wide scripts . Where in my file system should I put these scripts to be run by cron?
The system crontab (/etc/crontab) uses the same format, except that the username for the command is specified after the time and date fields and before the command.
[code]...
Every hour, I get an e-mail complaining about the first line of the crontab:
[code]...
I get the same complaint from the other entries: It looks to me as if cron, or anacron, is trying to execute the user (root) as a command. Predictably, the shell doesn't like it, so barfs and triggers an e-mail about it. Why is this not doing what the man page says it should do? The 2nd problem I believe is related to exim, not cron. The e-mails I'm getting above are being bounced from my ISP because they are directed to root@myisp.com, rather than my regular e-mail address. When the message bounces, it bounces to my regular e-mail address. In /etc/aliases, I have root: [URL]... and in etc/email-addresses I have root: [URL]... Adding the entry to /etc/email-addresses allowed the bounce to find me because the sender's address is [URL]... but how can I get cron to send these messages to me in the first place, instead of root?
What is the most proper place to mount a NFS share? I have an NFS server that shares up data to my network. Should I mount it under /mnt/NFS, /media/NFS, or /home/user/NFS? Under /mnt, I notice that a disk icon does not appear when using Gnome.
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 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.)
what I can use in Ubuntu for monitoring CPU core temps, CPU and memory speed and such, used CPU-Z, prime, HD tune up and and the like when OC'ing and UC'ing my Windows PC's but what Ubuntu equivalents are there?
I'm wondering how you can post web content on your desktop like you can in windows. Like to have your XBL gamercard on your desktop sort of thing. But what I want it for mainly is to put the countdown to 10.10 on there.
got my server up, installed FTP and all those goodies. And then i got some fun. Index.HTML shows perfectly. But when i place an Index.PHP, i get nothing at all.I get this error actuallyServer error.The website encountered an errorretrieving http://192.168.1.102/. It may be down for maintenance or configured incorrectly.Here are some suggestions:Reload this web page later. More information on this error
I have the following setup a) 1st sata hdd - Ubuntu 9.04 (32 bit) b) 2nd sata hdd - Win7 (64 bit)
I am on GRUB legacy. I am going to do a clean install and replace Ubuntu 9.04 with Ubuntu 10.10. I plan to leave my Win7 install alone. When I am installing Ubuntu 10.10 over Ubuntu 9.04, where should I place GRUB 2? The choices I've always seen: i) MBR or ii) boot sector of Ubuntu
I do not recall which setup I have now but I can confirm that when I start the computer, I get a GRUB menu that lets me choose Ubuntu or Windows. Ubuntu is the default if no choice is made within 20 seconds. I like that setup and want to replicate it with GRUB 2, if possible. If that is what I want, then I should place GRUB 2 on the MBR, correct or not? Note, I do not intend to install any other OSes. In other words, my 1st sata hdd will only have ubuntu and my 2nd sata hdd will only have windows.
Some app launchers can't be placed in the dock. The ones i have trouble with are the three games from Humble Frozenbyte Bundle, namely Shadowgrounds, Shadowgrounds Survivor and Trine. Their launcher icons look fine on dash, but when i start dragging them and the dash disappears, the icon turns into a question mark. Items on dock make room for the question mark icon, but after dropping it, it disappears and the dock icons return to where they were.
I guess there's something non-standard about the launchers. The games are installed under my home folder, and the game icons are xpm files in the game folder, like /home/veepee/.trine/Trine.xpm for example. The executables are in the same folder, like /home/veepee/.trine/trine-bin.
Too bad the print screen key doesn't take screenshots when the dash is up. What's up with that anyway?
Whenever I add something to my desktop, if something with the same name has been on my desktop previously (like 'screenshot.png'), it will go to where it was previously, which sometimes causes the icons to overlap and what not.
I just wanted to know if it was possible to make the icons always go to the first open place.
how do i make it so that all the desktop icons in my xubuntu session are freely movable? right now they are snapping into pre-determined positions (does that make sense?)...
my window buttons are at the left corner, it works but i love it more when they are in the right corner. So what i must do to change the position to the right corner?
while using StumbleUpon to find all things computer related, I found a VERY interesting article on BURG, something that makes grub look beautiful.My question is, how safely can I install this? Could somebody modify the instructions for me if my Linux drive /dev/sdb, and I have /home and /usr mounted on different partitions? Working with the bootloader has always been a wee bit over my head
I've got Ubuntu server 10.04 set up and I wanted to make a few restrictions. It's pretty much just acting as a VMware server at the moment, and there are some users I've created who I only want to be able to be able to log into the VMware infrastructure web interface. I want to make sure these users can't log in via SSH, FTP, or the console itself. I understand how to block them from logging in via SSH by using DenyUsers, and I added these users to the /etc/ftpusers file to lock them out of FTP, but how can I block them from logging in at the console itself?
I tried locking the user out by editing the /etc/passwd file, but the problem is that by doing this, it also prevents the user from being able to log into the VMware web interface.
The user's entry in /etc/passwd looks like this: bsmith:*:1005:1005:Bob Smith,,,:/home/bsmith:/bin/bash
I need GIMP to work for my place of business. When I open gimp in terminal and run the program, everything is fine untill I click on either smudge, pencil, text tool, etc. It just crashes, and terminal says this: gimp: fatal error: Failed to register GObject with DBusConnection script-fu:2795): LibGimpBase-WARNING **: script-fu: gimp_wire_read(): error
At the moment my GRUB 2 boot menu has all the Linux kernels, then memtests, then Windows. I want it to have Windows, then Linux, then memtests. I'm thinking I can do this by renaming /etc/grub.d/10_linux, 20_memtest86+ and 30_os-prober to 20_linux, 30_memtest86+ and 10_os-prober respectively.
Can i place a some cool shortcuts to different application on my desktop. How can I get these cool looking shortcuts. I also want to know that can I put some Gadgets on desktop like gadgets in Windows 7.
I got bored with Ubuntu pretty quick, and now just want something that works fast on my netbook, so I want to uninstall Ubuntu and replace it with Linux Mint xfce I was wondering if there was a way I could do that directly? I should add that my netbook is currently dual booting win7 starter and Ubuntu 10.10 netbook edition
when i first installed ubuntu on my asus eee netbook it would seem to scan and scan and scan for my local wifi network. i created a network foolishly thinking this would help. how do i remove it. my router is working fine. ipod touches and macbooks find the network no problem. my netbook randomly logs into this network or the proper network.
When "installing" a program that basically just unpacks into a directory of your making. Is there a "common" place to create the directory? I usually end up making it my home folder, but that gets crowded.
I cannot find where to post bugs in the launchpad anymore? What happened to the launchpad? It's sort of goofy that there is no (report a bug) link anywhere. But if you search bugs then you can see a link to the right, but nothing anywhere else. And even then you can only post a bug regarding that same category and subject. So it would appear the launchpad has a bug, or I just can't figure out how to navigate to report a bug.
I recently installed openSUSE 11.2 on a computer in place of Ubuntu 9.10. In Ubuntu, Totem will play a midi file. How do I make that happen in openSUSE? I don't know which package I need to install to make that happen.