Ubuntu Servers :: Make A Crontab To Email Log Files?

Jul 28, 2010

I would like to make a crontab task to email a log file to me every night.

How would i do this? I know how to make crontab jobs (and sett the time on them), i just dont know the command i would write for this particular job.

View 1 Replies


ADVERTISEMENT

Ubuntu Servers :: Make An Anonymous Email Service Like Dodgeit , Com?

Jan 20, 2010

Does anyone know how to make an anonymous email service like Dodgeit,com? Basically where users can go thru a web login to check any mailbox name they want at yourdomain.com.

I know you can do it thru Postfix, what other setup is needed? Any easy way of going about this?

View 4 Replies View Related

Ubuntu Servers :: Make Dovecot Automatically Archive The Copy Of The Email If/when A Client Connects To It Using POP?

Feb 15, 2010

make Dovecot automatically archive the servers copy of the email if/when a client connects to it using POP? I am trying to achieve the the same thing as Gmail's feature.

View 1 Replies View Related

Ubuntu Servers :: After Using Crontab With /etc/crontab / Giving Error "can't Find Command Root"?

Aug 26, 2010

I have a question about using crontab with /etc/crontab...

I had a cron job that I needed to run as root. At the time I thought that sticking it in /etc/crontab would be a good idea. However, I used the crontab command to edit /etc/crontab, which I guess is not standard procedure? Specifically, I configured /etc/crontab as my local user's crontab (i.e. sudo crontab /etc/crontab) then added my cron job as I would a local user crontab (i.e. sudo crontab -e).

Originally, my cron job looked like this:

30 * * * * root /my/batch/script &> /dev/null

After adding the new cron job I started seeing errors. Something to the effect of "can't find command root" or something similar. So I removed the 'root' user definition from the cron job and the job started running fine. However, because this is /etc/crontab, there are other system related cron jobs that have been defined to run under the root account (e.g. "17 * * * * root cd / && run-parts --report /etc/cron.hourly" runs as root, etc.). So these pre-existing system cron jobs, which up until now have been running smoothly, are now generating "can't find command root" errors. But I think that the system cron jobs _are_ successfully being run someplace because logrotate seems to be working.

So what I _think_ is happening is that /etc/crontab is being run twice: once as the system crontab, and once as my sudoed local user's crontab. When I run crontab -l I see nothing, but when I run sudo crontab -l I can see the contents of /etc/crontab. I am reluctant to delete my sudoed local user's crontab, because then in the process I would be deleting the system crontab, and I do not know how I should restore the system crontab's contents. (I am still not sure as to the most appropriate way to edit the system crontab).

How can I get out of this mess? I want /etc/crontab to go back to the way it was before--running _once_ as the system crontab. As for my new cron job, I'm willing to reconfigure it anywhere so long as I am still able to run it as root. Any ideas? (I am using Ubuntu 8.04 Server LTE)

View 2 Replies View Related

General :: How To Send Self An Email Reminder Using Crontab?

Mar 3, 2010

I'm trying to learn how to send my self an email reminder using crontab, this is what I tried but I'm not getting the email.# m h dom mon dow command 33 13 * * 3 mail -s "This is a test" joedwalker.email@gmail.com < /home/joe/email.

View 3 Replies View Related

Server :: Causing Crontab To Not Email Blank Emails

Aug 3, 2011

I've currently got a crontab line that looks like the following:

Code:
*/5 * * * * /usr/bin/php -q /etc/backend/cron.php | mail -s "Cron script output" whiteydude@gmail.com

The script works fine - it runs every 5 minutes and checks if certain environmental variables are set in place - if they are, it prints an output. If they're not, it dies.

The problem is that when it dies, it still sends me a blank email - one every 5 minutes, every time the cron job runs.

telling it not to send if it's blank?

I'm assuming some type of dirty awk script could do this, but I don't really know my shell well enough to do that.

I'm not good at putting these things into words, so let me write some psuedo code to explain what I mean:

Code:
*/5 * * * * /usr/bin/php -q /etc/backend/cron.php | if (STDOUT != '') { mail -s "Cron script output" whiteydude@gmail.com }

EDIT: Unfortunately I'm running on CentOS, so I can't use mail -E . Apparently that's a FreeBSD thing.

View 5 Replies View Related

General :: Crontab To Email When Buffers/cache Memory Reached A Defined Value

Jun 18, 2010

I have a Linux server running CentOS with 2GB RAM. I am searching in google and also in this forum but could not find any luck yet. I am searching the way that we can receive notification by system to a specified email when the memory reached a specified value we defined.

Is there any tool or sort of shell script we set via crontab every minute to check that?

View 2 Replies View Related

General :: Crontab Not Working \ Edited Crontab File Using Crontab -e?

Apr 27, 2010

I am using Linux 64 bit Redhat Linux. I am trying to setup simple crontab as follow...1. Edited crontab file using crontab -e2. Listed the file once to verify it using crontab -l. This will display as.. 18 5 * * 2-3 ksh $HOME/testScript.sh > $HOME/testscript.out3. Logged in a root and restarted cron deamon using "/etc/init.d/crond restart"As per my understanding now my testScript should start running at 5:18 am Thuesday

View 3 Replies View Related

General :: Copy And Forward Email To Multiple Email Servers Using Postfix?

Dec 31, 2009

I have an email setup where all of the emails from our email host is downloaded to our Linux server using Fetchmail. Then some of the incoming emails are sent to an MS exchange server (server1.domain.com) using Postfix. What i want to do is to send a copy of all emails to Another server (server2.domain.com) for redundancy.Can postfix be configured to send copies out to both?

View 1 Replies View Related

Server :: Routing Inbound Email To Multiple Email Servers?

Dec 21, 2009

I have recently setup a new mail server and have simulated sending and receiving on the new email server. The new email server will replace the primary one.I would like to setup the new email server in parallel with the existing one.This way i can observe issues that might occur and be aware of what could go wrong. I want to received mail to be delivered to both mail servers at the same time.I would like to use postfix, exim i find a bit to difficult to understand.I have thought of using transport maps, the only problem is that you can only forward mail to one server at a time using transport maps.I think recipient_bcc_maps and sender_bcc_maps could work, i would just like ideas of how i can do this.

View 5 Replies View Related

Ubuntu Servers :: Add Files And Make Chmod A Little Easier

Sep 13, 2010

I have set up a home server with ubuntu desktop since im new to this and need the gui. I have no problems with the lamp package or setting that up. My question is, can you setup a ftp server and then connect to it from a windows pc on the same network with a client like core ftp? I want to do this to add files and make chmod a little easier if possible.

View 4 Replies View Related

Ubuntu Servers :: Make Sure Cron Job Copies Files Correctly

Jul 1, 2010

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.

[Code]....

View 2 Replies View Related

Ubuntu Servers :: Buying Domain / Hosting Web Server / All Domain Registers Come With Email Or Just Email Forwarding?

Mar 29, 2010

I am thinking about buying a domain name and hosting my web server.

I have seen pricing from $8 to $30 a year. Any favorites from fellow ubunters? Also this whole "whois" thing scares me, if I am correct my information I enter when buying the domain is enter into some big pool of information. People can find this information out and dig up important information. url Can I prevent this with private Whois or how do I set it up? This website examples some of my fears with this whole WhoIs thing, url whois/Private-Whois.html Does most/all domain registers come with email or just email forwarding or both? How does that work? At this moment, my only question about Web Hosting is how do I get Website Statistics as in: Stats, web analytics, web traffic stats and more? I will be web hosting through Ubuntu 9.10 gnome.

View 9 Replies View Related

Fedora Servers :: Make A Mirror Site - 15 I386 Rpm Files

Aug 22, 2011

I want to make a fedora mirror site and i only want to have the fedora 15 i386 rpm files i dont want to download all the rest. How do i di this ?

View 2 Replies View Related

Software :: Sftp Crontab - Send Make-up File Daily

Oct 25, 2010

I use the following code to send make-up file dialy via sftp with expect. When I run it from command line, it has no problem sending to the remoteSERVER side, but when it is running via crontab task, it did not do the put, so did not execute the batch file defined in -b option.

#!/bin/bash
#!/usr/bin/expect
curDate=`date +%Y%m%d`
filename="$RESULTS/make-up.${curDate}.001"
newname="make-up.${curDate}.001"
remoteDirName="/Inbound/PPP"
tempcmd="$RESULTS/tempcmdFiles"
[Code]...

View 1 Replies View Related

Ubuntu Servers :: How To Start Xampp From Crontab

Apr 5, 2010

i want to Xampp run and start all time when i start pc. i don know correct command for use crontab when i want to use it i must delete ># m h dom mon dow commandor not ?

View 2 Replies View Related

Ubuntu Servers :: Crontab Omission Of One Every Month?

May 25, 2010

I set a backup copy of your home computer. I have a problem. A copy of the full exercise once a month

Code:

15 22 1 * * / root / scripts / bcsys.sh full

incremental and would like to do on a daily basis since 22, but aside 1 day each month when it comes to full

Code:

00 22 * * * / root / scripts / bcsys.sh incremental

How can this be set and whether there is a possibility?

View 1 Replies View Related

Ubuntu Servers :: Crontab Not Running Script?

Jan 27, 2011

Cron seems to be running the script below (According to /var/log/syslog) but I'm not receiving the email it should send. This does work when I invoke it manually. checkraid (-rwxr-xr-x 1 root root)

Code:
#!/bin/bash
echo `/sbin/dmraid -s > /etc/check-raid/check_state`
index=0
while read line; do

[Code]...

View 3 Replies View Related

Ubuntu Servers :: Crontab Or Other (script) To Automatically Replace File?

May 18, 2011

I have been searching for a few hours now trying to figure out the best way to have Ubuntu Server 8.10 copy and replace a file every week.

So for example:

File A (original file)
File B (replacement file)

I would want to copy File B from its location and replace File A each week automatically with out removing or destroying File B.

I've thought of doing a cron since I already have a job set for email piping. but I'm unsure of the best way to complete this task.

View 5 Replies View Related

Ubuntu :: Change The Default Path For Any Or All Of The Different Crontab Files?

Nov 16, 2010

Can I change the default path for any or all of the different crontab files?

Can they be changed independently? for example can the user mark get one path for cron jobs, Lynn get another, and root get yet a third, or are they always going to be the same?

How do I change them?

Hello fellow Linux users:

I know there are several crontab files on my computer. One each for each user, and it looks like one for root, maybe others?

I think there is only one cron handler that reads all the different crontab files and does what it is told.

If I do from my command line, I get:

Code:
mark@server:~$echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
If I schedule a similar command in my own crontab file by using
Code:
mark@server:~$crontab -e
with the following line:

[Code].....

View 2 Replies View Related

Ubuntu Servers :: CronTab Not Executing Script Works Fine Manually?

May 9, 2011

I have written a simple backup script, and added it to CronTab, but it doesnt execute at all. Here is my script: [URL]...And my CronTab entry: 0 */2 * * * root /home/server/Scripts/backup.sh

View 6 Replies View Related

Ubuntu Servers :: Setting Crontab Not Send Mail Notification To Owner?

Jul 2, 2011

How to set crontab not send mail notification to the owner script if the script success running? because I'm monitoring mail server, and notification from cron is not necessary for me. I'm using ubuntu 10.04 server

View 4 Replies View Related

General :: Possible Disabling Crontab Job Without Deleting Crontab Description Entry

Jun 23, 2011

is it possible disabling a crontab job without deleting the crontab description entry (by crontab -e)?I could also accept to change the entry itself. Now it's:0 0 * * 0-6 /home/me/cron/script.csh

View 4 Replies View Related

General :: Viewing All Crontab Files On A System?

Nov 16, 2009

Is there a way to view all the crontab files, owned by root, users, and other system accounts, that exist on a system simultaneously rather than having to go the individual accounts? The distribution in question here is the Debian 4.0 release.

View 2 Replies View Related

General :: Rsync, Crontab And Backing Up Files?

Apr 11, 2011

This is a quick one, I don't have any problems yet, I just want to check that this is going to do what I think it is. I added the line

Code:
00 01 * * * rsync -avz --delete /local-storage /mnt/usbackup
to my crontab file, am I to understand that this will backup /local-storage to my external

[code]...

View 4 Replies View Related

Fedora Servers :: Crontab Backup Job Works / But Gives Chown / Chgrp Errors

Jul 3, 2010

As root, I use crontab to run mirrordir to backup directories. Everything gets copied over properly, but owner information isn't preserved and root is the owner of all the backed up files. I can deal with that, but crontab reports tons and tons of chown/chgrp errors for mirrordir every time I do back ups--which is every day--and the multiple emails to root of thousands of chown/chgrp errors is very annoying. The error is "Operation not permitted," but that doesn't make sense to me because the job runs as root (right?) and clearly the job is permitted to create the backup files, so why would it fail to chown and chgrp?

I've had the exact same setup on another server for years, and crontab has always run mirrordir without error. Any suggestions how to clear the errors on my new server?

View 14 Replies View Related

Red Hat / Fedora :: Set A Crontab For Automatic Downloading Of Files From Internet By Using Wget

Feb 5, 2010

I am vijaya, glad to meet you all via this forum and my question is I set a crontab for automatic downloading of files from internet by using wget but when I kept it for execution several process are running for the same at the back ground. My concern is to get only one copy, not many copies of the same file and not abled to find out where it's actually downloading.

View 1 Replies View Related

CentOS 5 Server :: Crontab Creating Blank Files In Root Directory?

Jul 10, 2009

I've just discovered that crontab is creating a new file in the root directory every time it executes a cronjob, and it doesn't erase over the old file so there are thousands of files in the root directory, they have the same name as the script file (appended with a numeral) but are all blank.here is what one of the cronjob's looks like[URL]

View 10 Replies View Related

Server :: Dns Be Used To Make A Personal Email Account?

Dec 16, 2010

I have a hostname with dyndns and I was wondering if there where a way to make a mail server that works for all my user accounts with the hostname that dyndns gives for free.

View 3 Replies View Related

Server :: Junk Email - How To Make Address As Trusted

Nov 12, 2010

I have a domain address and I keep my website in the server at my home. I use bind for DNS. I opened an email address for myself, but when I send an email to for example hotmail, gmail, it signs that as junk or spam. How can I make this address as trusted?

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved