General :: Script.sh | Mail - Completes But Doesn't Include Output?

Mar 30, 2011

I have a script that uses cp to copy data from A to B. There are some troublesome files that are constantly in use and read "Permission denied" or "Text file busy" but I'm not worried about these. Therefore my copy process always contains output.The script runs through cron and the output (automatically) goes to /var/mail/user. I tried setting it up to send me an email and it comes through, but it's completely blank. The email in /var/mail/ contains the full output.

Here is my command:
0 18 * * * /home/backup.sh | mail -s "Backup completed" jsteel@...com
(The script simply contains many "cp -r /mnt/location/a /mnt/location/b")

[code]....

View 2 Replies


ADVERTISEMENT

General :: Message In Terminal After Redirecting Output And Build Completes?

Oct 9, 2010

I'm not sure about the following behavior so thought I would put it out to see if there is an error I need to resolve, or simply a process that I need explained.I'm also not sure if this is an Ubuntu issue, a Linux issue, or other... but here goes.I ran my "make build" in two different ways; one with just "make build" and one with "make build > output" (so I could review the full script).With just "make build" the process finished and returned to the command prompt.

With "make build > output", after the process had finished (script in output document identical to what was in the terminal with "make build") a new set of data was displayed in the terminal (see below).With the other examples of using "make build > output" the times it would parse something back to the terminal window was when there was an error. As I fixed the errors these breaks back to the terminal window would stop. So I'm wondering if this indicates a new error, but because the "make build" now completes successfully (at least it appears to), I'm wondering if this data in the terminal window is just a behavior related to redirecting the output script using the ">" process and something to do with returning to the terminal once a process completes

View 4 Replies View Related

General :: Include Command Results To Send To Admins Via Mail

Jul 16, 2010

how to include my command results in a script? Basically what the script does is it checks the status of a service within the linux server, then sends an email when done. I want to include the results of my status check to my mail when sent.

i.e.
service dhcp3-server status Status of DHCP server: dhcpd3 is running. <---this I want to include in the mail that is sent out via script.

View 6 Replies View Related

General :: Df Output To Root's Mail Box

Mar 29, 2011

I'm trying to make a script in my /etc/cron.d directory called df. Anyways, I want to be able to have it run the df command every hour, 23 minutes past the hour. I have the first part, I just need assistance in directing it to roots mail box.

View 2 Replies View Related

Programming :: Include Html On A Velocity Template Mail?

Jul 13, 2010

Right now we send notification emails using a velocity template (apache and java), the thing is that the notification engine call the Email.vm file to add all the information and variables. This process only attach the information (text) on the .vm file.

We need to send that email on html. The thing is that if we write the html code on the file, when the .vm file is called that email includes the code not the result of the html.

We have tried adding the headers and everything.

The question is:

Is there some way that we can pre-process the html code and include to that email the result?

Or can we tell the .vm file that it should be handle as html? (like php for example <?php ?>, the <html> and </html> tags doesn't work.

View 1 Replies View Related

General :: Script To Mail Output Of Mysql Queries?

Mar 15, 2011

I have prepared a simple script that shows the database, tables size in the Database server as :-

check the attachment for the script & output.

Now I just want to mail the output of my script to some persons e-mail-ID

Also, I want to do some calculations and provide the information of how much increase data after 1 day daily.

View 2 Replies View Related

General :: Make A Script To Send Output Of Top Command In Mail?

Mar 4, 2010

How can i make a script to send the output of top command in mail.
i have to mail the output to another person , tell me how can i do this

View 3 Replies View Related

General :: Configure The Way Bash Completes Directory Names?

Sep 7, 2011

I'd like to instruct bash to use a special method to perform completion on certain directory names. For example, bash would call a program of mine to perform completion if a path starts with "$$", and perform completion normally otherwise. Is this at all possible? How would you implement it? The goal is to allow autojump to complete paths for all commands when the user starts them with a certain prefix. So for example when copying a file from a far directory, you could type: cp $$patern + <Tab>

and autojump would complete cp /home/user/CompliCatedDireCTOry/long/path/bla/bla and you would just have to add where you want to put the file. Of course I can use ott's comment to add it to a few specific commands

View 3 Replies View Related

Debian Configuration :: Exim Doesn't Deliver Local Mail; Files In /var/mail Empty?

Jan 28, 2010

I cannot get exim4 to actually deliver any "local delivery only; not on a network".But whatever I do in the config, all mail gets frozen with entries in the log file like:"root@empty R=nonlocal: Mailing to remote domains not supported"Maybe the problem is that there is no fqdn for the computer (and will never be). How can I enable local mail delivery?

View 14 Replies View Related

General :: Mailx Doesn't Send Mail

Mar 1, 2010

I'm having issues sending mail on a Debian (Lenny) box using mailx.

root@deity:/# mail root
Subject: Hai
Hi, root!

[Code].....

Does anyone have an idea what might be causing this?

View 2 Replies View Related

Ubuntu :: Difference Between /usr/local/include And /usr/include?

Jul 11, 2010

What is the difference between /usr/local/include and /usr/include? When I compile my program, is both /usr/local/include and /usr/include avaliable? Can I copy a file from /usr/local/include to /usr/include?

View 1 Replies View Related

Software :: Difference Between /usr/include And /usr/local/include?

Jul 8, 2010

I just downloaded the SDL source code. i did compile and make of this code.then i did make install. but i didnt see the files of SDL.h and lib.SDL.*** in /usr/include/ but later i found out that these files are placed in /usr/local/include and /usr/local/lib. how can i specifically install libraries on /usr/include and /usr/lib

View 2 Replies View Related

Ubuntu :: Panel Applet - If Right-click Doesn't Include Move - How To Move That Icon

Sep 19, 2010

For Ubuntu 10.04 LTS / Gnome 2.30.2.

I have two applets on my Gnome panel -- NetworkManager Applet 0.8, and Klipper (it works better than Glipper) -- that I want to move.

HOWEVER, right-clicking the panel icons does not enable me to move these applets, as follows:

- NetworkManager Applet 0.8 does not include a Move item in its list of options.

- Klipper displays a long list of Klipper options but no Move option.

How I can move these items to new locations on the Gnome panel?

View 6 Replies View Related

Software :: Compiling Firefox 4 - "--includedir=/usr/include" Doesn't Work

Mar 12, 2011

Is to compile Firefox 4 (I'm running Slackware). However, I've run into a couple of problems. I downloaded the source from ftp://ftp.mozilla.org/pub/mozilla.or...source.tar.bz2, and untarred it. It then turned out that compiling Firefox is more complicated than I expected, so following [url] as closely as possible, I created the following .mozconfig file (taken from the same tutorial, and adding the 'webm' option to remove the need to install YASM:

Code:

I run 'make -f client.mk' and get:

Code:

At this point, I should point out that '/usr/include/GL/glx.h' exists. So I suspect one solution would be to persuade firefox to find this, but I haven't found any options that would allow me to do this ("--includedir=/usr/include" doesn't work). I also couldn't find any mention of Mesa in the firefox dependencies, but nor could I find an option to disable WebGL (my suspected solution number 2).

I then tried to install Mesa... However, I use the nvidia driver, which it doesn't seem to support. I do seem to have some sort of Nvidia equivalent (I don't know exactly what) because if I run glxinfo I get:

Code:

So... I suspect there are two solutions:

(1) Persuade firefox that yes, a satisfactory OpenGL thingy exists on my system

(2) Disable WebGL support.

View 7 Replies View Related

Slackware :: Crontab - Fetchmail Sends Output To Mail Spool?

Jan 6, 2010

I'm new to mail via the CLI, so bear with me. I have this line in my crontab:

Code:
*/5 * * * * fetchmail
Which does check my mail every 5 minutes fine. But I get the command-line output mailed to

[code]...

View 3 Replies View Related

Ubuntu :: Karmic 9.1 Never Completes Boot?

Mar 16, 2010

System has been working fine until recently bootups started taking longer and longer. Finally the other day after waiting 15 minutes or so I gave up.

I was able to log in with the xfce option (small command line with no windowing support). From this I observed that I could run all my programs (but without windowing support) and that the system seemed generally healthy (as did the hard drive).

I found /etc/Xsession and ran

Code:
sudo ./Xsession

This successfully loaded X (is that it?) rather quickly, but everything was
running as root. That's what I'm in on now.

So it seems that there's some kind of problem with an init script failing to load X at some point. Or it could be more complex.

Specifically, the computer presented the login option for the gui and I logged in as my non-root user. Then I got the swirling lights with the bird in flight background (dark blue). It never progresses beyond this, and the hard drive is whirring consistently until I shut the computer off.

View 3 Replies View Related

General :: Mail() Function Doesn't Work With HOTMAIL But Its Work With Others?

Apr 27, 2011

i have tried mail function in php to send email from the local host its work for yahoo but not with HOTMAIL whay ! actually i tried to figure it out,

View 1 Replies View Related

Fedora :: Shutdown After A Command Completes Its Task?

Jun 11, 2010

I guess there is some bash shell trick to run poweroff when an other command is over, like let's say su -c 'yum update'.

Creating a shell script with these two commands, the one below the other, would be sufficient? I can't try it now.

View 5 Replies View Related

Ubuntu :: Boot Never Completes (screen Goes Black)

Feb 7, 2010

I have had a really bad day (the first, after months of faultless operation)) with my Acer 5720Z laptop running Ubuntu 9.04 Jaunty. First thing was at the second startup today, nothing other than totally black or white screens showed during boot. However, the ubuntu jingle was heard after the normal time it takes to boot, so I was certain it was strictly some video problem.

Ok, so after having thought about this for a while and reading about similar issues here and there on the web I was struck by the fact that not even the Acer screen with bios info etc. showed normally just after power-up. By then I had dragged a second, stationary computer to the livingroom, so I thought I'd check if there'd be video output from the Acer's VGA port. There was, and the ubuntu desktop looking perfectly normal. Aha! - only the backlight working on the Acer's LCD screen, but no video? So I thought I'd check for loose connectors to the LCD or damaged wiring (installed replacement LCD myself some months ago with no problems). This is going to be easy, I thought (being more of a gearhead/hardware type of guy) Turned the Acer laptop off and unscrewed the screen frame stuff. Now I just start it and switch back to internal display... For some reason (too many unclean shutdown(s) during the early "blind" nervous phase of the problem, I suppose) the Acer now hangs with a black screen before boot is complete and I am unable to switch between external/internal monitors. Fortunately I can use the external monitor (video is stuck to the external VGA on startup), get to command prompt etc. so there should be hope. But I have no idea how to sort this out after many unsuccessful attempts. (Recovery mode, disk check etc.)

I can't find any sort of safe graphics mode option in the GRUB menu. Booting from the Ubuntu 9.04 ("live" option) also finally stalls with a black screen and nothing further happening, just like the install that's on the PC.

how Ubuntu 9.10 runs on a stationary HP Pavillion 1840 which I rescued from the trash just like the Acer laptop.

View 1 Replies View Related

Ubuntu :: 10.10 Reboots Automatically As Soon As Shutdown Completes?

Dec 7, 2010

I've been googling my brains out looking for a solution to this. So far, nothing.

As the title suggests, every time I attempt to shut the computer down it instantly reboots the moment the internal fans stop whirring.

So far I've tried:

-shutting down via the terminal (this actually makes the reboot happen instantly rather than waiting for the fans to stop)

-looking in the BIOS for any obvious settings which may be causing this

-performing a dpkg repair

-Allowing "Proposed" updates in the Updater

-installing (slightly) older Kernel (2.6.35-22 as opposed to 2.6.35-23)

-installing newer (2.6.36) kernel

I know others are having this issue, but other threads I've read seem to have fizzled out with no conclusion. Has anyone managed to find a way to make this work if they've had the bug?

Any advice at all? Is it worth trying an even older kernel? Or an even older version of Linux?

View 1 Replies View Related

Ubuntu Servers :: Use The Mail Command Line Program To Occasionally Send Log Output To Email Aliases?

Jan 27, 2011

Can anyone tell me what the pros and cons are between heirloom-mailx vs mailutils? This is for ubuntu 10.04 LTS. AT this point my only purpose is to use the mail command line program to occasionally send log output to email aliases.

View 2 Replies View Related

Ubuntu :: The Laptop Keeps Freezing After The Routine Disk Check Completes?

Jan 13, 2010

My laptop keeps freezing after the routine disk check completes, along with a screen of jiggly colours. I also booted into safe mode and ran the disk check from there with the same result.

View 7 Replies View Related

General :: Set Nagios Directives To Only Send One E-mail Per Alert Without It Flooding Mail Boxes?

Jul 20, 2011

I have got a nagios server running on my network, The configuration seems to be okay but each time there is a service alert notification, and an e-mail is sent to the contact group, Nagios continuously sends e-mail over and over again. Do anyone know of a way to set Nagios directives to only send one e-mail per alert without it flooding mail boxes.

View 3 Replies View Related

General :: Sendmail Error / Unable To Work On WAN / Can Send Mail But Not Able To Recieve Mail?

Nov 15, 2010

I had configured sendmail on linux 5.2, Iam using public ip and my domain is registered[linuxforfreshers.info]. I am facing a issue that when I mail with the user sumit@linuxforfreshers.info then I am able to do it. But if somebody tries to send mail to the same user then it bounce backs. I had made the entry of domain in /etc/mail/local-host-name and also I put ok in /etc/mail/access.The mails are working properly with in LAN. But not able to work on WAN only I can send mail but not able to recieve mail.What else I need to do.

View 6 Replies View Related

General :: Configure Mutt Mail Client For Mail Server Other That Gmail?

Jan 9, 2011

I am trying to configure mutt to send email via command line . It works fine when I configure it for gmail as follows:Quote:

# SENDING MAIL
set copy=yes
set smtp_url = "smtp://mymail@smtp.gmail.com:587/"

[code]...

View 14 Replies View Related

General :: Debian Mail Server As A User Send A Mail With Attachment Maximum Wight Is 5 Mb

Jun 8, 2011

How to configure a Debian mail server as a user send a mail with attachment maximum wight is 5 Mb.

View 3 Replies View Related

General :: Split Mail Received In Local Mail Box Into Different Files?

Oct 30, 2010

How can I split my local mail box into an individual files for each mail. The senario of mine is I fetch some emails from a mail server into my local linux box with fetchmail command but I want each fetched mail in a different indivitual file for easy file processing and manipulation for example sending those email through sms and so on

View 1 Replies View Related

General :: Debian E-mail Client Download E-mail Messages

Aug 7, 2011

I need help in setting up the native e-mail client included in Debian Squeeze. My ultimate goal is to have the Debian e-mail client download e-mail messages and process attachments automatically.

View 14 Replies View Related

Fedora Hardware :: VGA Output Doesn't Work?

Jan 6, 2010

I'm trying to plug my Cinemizer video goggles [URL] to my notebook. The resolution is 640x480 (yeah, I know) and I go from VGA to RCA to 3.5, which is needed by the device. From a cable oriented viewpoint this should work, but Fedora doesn't recognise the googles as a second monitor. how to enable vga output with a 640x480 resolution? This is extremely important for me since I need it for a personal project as well as for my work.

View 2 Replies View Related

Fedora :: Valgrind Doesn't Give Useful Output

Jun 3, 2011

For some reason valgrind can't give an exact line number for memory leaks. I installed all of the debuginfo packages and I am compiling my program (gWaei) with the -g and -O1 flags. I just don't know anymore. Specifically the libwaei ones are worrying.

Code:

==26794== Memcheck, a memory error detector
==26794== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==26794== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info

[code]....

View 1 Replies View Related







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