Programming :: Created A Script To Flush Sendmail To Another Mailserver?

Jan 7, 2011

I created a script to flush my sendmail to another mailserver. Because it takes some time I want to give some simple feedback using a rotating bar.

Code:

I'm convinced this can be done much nicer with 'awk' and printf, but somehow awk makes me dazzle..

View 1 Replies


ADVERTISEMENT

Debian :: 99% Cpu Usage Due To Flush-8:0 & Flush-8:16?

Jul 28, 2010

I have recently upgraded my Debian unstable to the new custom 2.6.34 kernel. The system is unresponsive and top shows two processes (flush-8:0 & flush-8:16) taking up most of the cpu time.

View 3 Replies View Related

Programming :: Best Way To Flush A Character Array

Aug 2, 2010

I believe I have unwanted ' characters left in a 9 element character array that are causing subsequent operations with it to fail. I see wildly differing views on the web on the proper way to flush 'em. It's clearly not as simple as it would appear at first sight. What's currently the best (or else "least deprecated") method?

View 5 Replies View Related

Server :: Mysql "flush Logs" Or "flush Tables With Read Lock?

Jan 15, 2010

policy is to backup mysql with mysql-zrm.However at a certain stage it hangs forever. This is at the "flush logs". I tried this manually and it gave the same result. Even after restarting mysql and the host. After some googling and trying I found out "flush tables with read lock" gives the same result. The tables seem to be MyIsam. I tried with a mysqldump on one server and restore it on a test vm. I used the same config and flush logs still hangs. ALso I tried to change some configuration directives... but with the same result

Edit: btw, I checked the logfile and didn't found anything (/var/log/mysqld.log)

Edit2: I also did myisamchk -s *.MYI (in all direcoties with db files;actually did it with find command) and it did not return anything so datafiles seem ok.

View 4 Replies View Related

Programming :: Created First Little Program In C++ That Im Happy About?

Sep 4, 2010

Code: //Author: Donald Farkas
//Created: Sep/4/2010
#include <iostream>

[code].....

View 6 Replies View Related

Programming :: Looking For Last Five Files Created On Hard Disk

Aug 4, 2010

Kernel 2.6.21.5, GNU (Slackware 12.0).
Bash 3.1.17.

I want to search an entire subtree of /, in the file system, for all files, with extension html, created on the hard disk. In addition, these have to be the last five created. I think I could split the problem into two parts: (a) Forget about the last condition. Then this is a job for the find command. (b) Sort the output of find using the date as the key, then use 'head' to print the desired output. But even two such simple steps are enough to justify the writing of a shell script. And here lies my weakness.

My script writing knowledge is rudimentary. What's the final purpose? Well, I lately saved four or five LQ pages onto disk containing information I consider valuable to me. But I don't exactly remember where on the disk. Then: either the problem posed is really of a very simple nature or it is not, in the latter case a script being mandatory. One of the algorithm drawbacks (the one described above) is that find may be running a great deal of time. My machine resources (RAM and CPU speed are low) are scarce and there possible are a large number of HTML files on the disk.

View 8 Replies View Related

Programming :: Created A File With A Pre-defined Size ?

Feb 19, 2010

I have created a file with a pre-defined size as follows:

Code:
#define FILEPATH "testfile"
#define FILESIZE 16

[code]...

View 5 Replies View Related

Programming :: Created Python Programs - Making Changes To Improve?

Dec 17, 2008

I have list of programs which I have created during the past few days, all the programs are attached in txt files, and if anyone can do favor, and double check if they work, and what changes I can make to make it look different, or to improve it.

View 9 Replies View Related

Programming :: Make Objects Created With New Garbage-collected

Apr 30, 2011

I read this guide: [URL].. but I still don't understand how to make objects created with new garbage-collected. Could someone explain how or find a link to an explanation?

View 13 Replies View Related

Programming :: Know Which File Under The Folder Is Being Opened / Created For Writing?

Apr 23, 2010

My program need to monitor the foler to know which file under the folder is being opened/created for writing. I add the folder into watch list using inotify_add_watch, when a file -- say 'AA' -- is created, I'll get the event through read api call. But the inotify_event only have file name 'AA' and a event mask. these parameters can't help me to know how the 'AA' is created/openned. So I have to scan the /proc folder to get to know how is 'AA' created/openned. I don't think this is a efficient way, especially if there are lots of files are openned/created in a short time span.

View 3 Replies View Related

Programming :: Hosting New Gtk RGBA Module Created On Launchpad?

Mar 9, 2010

[URL] Essentially, this module can be fine-tuned to the user's liking, using four integers instead of a boolean. By allowing for the red, green, blue, and alpha values to be fine-tuned, the user can control how transparent or opaque their desktop is. And how is this possible? C++ instead of C. How do you guys think of being able to customize RGBA?

View 14 Replies View Related

Programming :: Using Sed With Variable Created Using Xargs / Unterminated Error

Jan 12, 2009

I have an awk program that finds all files of a specific filename and deletes them from selected subdirectories. There is logic in the awk to avoid certain subdirectories, and this is initialized via a parameter in the beginning statement of the awk. The parameter should have all of the subdirectory names at the top level. This varies from time to time, so I cannot hard-code the value.I'm having a problem initializing the awk parameter using sed. I'm setting a variable (named subdir) using an "ls" command piped to "xargs". I'm then trying to substitute that value into the awk using the sed command.

View 3 Replies View Related

Programming :: Shell Script To Monitor Files Created On A Folder

Aug 27, 2009

Can someone please help me on how can i create a script that will monitor file creation on a single folder and sending the newly created file on a separate folder? Only the new created file must be transffered or copied to the other folder. The old ones remains.I urgently need this for production deployment.

View 8 Replies View Related

Programming :: Detecting Newly Created Folders / Files On Local File System?

Apr 16, 2010

Using C++, I want to process sub-folders on my home folder sequentially each with a special naming format and containing some binary files in it:

Code:
1/
2/
3/
4/
5/
6/
...

Give above folders, I will process files in 1/ at first, 2/ at second, 3/ at third, and so on.

For some n/ folder, if I realize that n/ actually does not exist in local file system, I do not want to wait for it. Hence I will keep processing (n+1)/ folder, and so on.

However, when processing some (n+m)/ folder, previously not processed n/ folder may have been created on local file system. In this case, I do not want to miss processing it, but somehow detect its creation and process it. After processing n/ folder, I want to continue from (n+m+1)/.

View 5 Replies View Related

General :: How To Access Mailserver

Aug 29, 2010

I recently set up a mailserver on ubuntu using postfix. I set up the MX record with my router's ip address and I have port 25 forwarding all the mails to the ubuntu server. Everything works fine but I am unable to access my email using example.com/squirrelmail from any other machine apart from the server.

View 7 Replies View Related

Slackware :: How To Flush Dns Cache

May 9, 2010

Slackware64 13.0 I have a website that has been migrated to a new server. After a few days I'm still pointing at the old server and the hosting company have recommended that I flush my dns cache. A quick google for this in linux seemed to recommend restarting the nscd daemon but nscd -g tells me it's not running anyway. I connect to Virginmedia via wired ethernet to a Belkin N1 router so is there a way I can do this I wonder, either via Virginmedia or Slackware?

View 2 Replies View Related

Server :: Sendmail M4 Configuration Base Directory /usr/share/sendmail-cf Was Not Found

Nov 1, 2010

I am using webmin for my daily tasks. I have fedora 13, whenever I click on ''Sendmail M4 Configuration'' or Outgoing Addresses (generics)'' I get the following error message

Quote:

The Sendmail M4 configuration base directory /usr/share/sendmail-cf was not found on your system, or is not the correct directory. Maybe it has not been installed (common for packaged installs of Sendmail), or the module config is incorrect. I read documentation at sendmail.org, it seems that structure of directories for send mail has been changed in version sendmail-8.1.4 shipped with FC13. In webmin config module we have

Quote:

Sendmail M4 base directory = /usr/share/sendmail-cf

which is not there. I did a locate / sendmail-cf on the command line, it finds nothing

View 17 Replies View Related

Software :: Sendmail Segfault (ssmtp) On Gentoo Through Gmail - Can't Send Mail: Sendmail Process Failed

Jul 13, 2010

I have been trying to set up ssmtp so I can send email using Gmail's ssmtp servers. However, when I try to send mail (using mailx), I get the following message:

Code:

Can't send mail: sendmail process failed

Here's the last line from dmesg (the only one applicable, according to the timestamps and message content):

Code:

[484114.608378] sendmail[17975]: segfault at 0 ip b7dbbbf3 sp bfb0dc4c error 4 in libc-2.11.2.so[b7d44000+14e000]

Here's my ssmtp.conf:

Code:

#
# /etc/ssmtp.conf -- a config file for sSMTP sendmail.
#

[code].....

View 2 Replies View Related

Debian :: How To Flush Printer Queue

Mar 16, 2011

I have an HP printer for my Lenny which has worked for some year. But I don't remember what method I used to install it. So this is one piece of the puzzle that I can't see. But like I said the printer works. One day I accidentally printed more than I had papers in the printer-machine. Then I kind of stacked a lot of print jobs in the queue out of frustration. So whenever I reboot the PC/Lenny then it waste some paper by printing things that got stuck in the printer queue. It's not very environmental this weird behavior.

So next time this happens how do I flush the Printer queue so Lenny doesn't remember what happened before the reboot? I followed these instructions earlier but it only switched one weird behavior with another weird behavior. So it didn't work for my Lenny, and I couldn't find any better solutions on the Internet. [URL]...

View 3 Replies View Related

Networking :: Routing To Internal Mailserver ?

Jul 26, 2011

I have two boxes, 1- Centos router, 2- centos web/mail server..

When trying to receive mail using mail.xxx.xxx in the mail client server settings, it will not resolve to any machine on the internal network... I have to enter the internal IP address in the incoming and outgoing email settings..

Same with the website I host.. I have to enter the internal IP to get access..

It just will not resolve the DNS on the internal network.

Everything works as it should outside my network.

View 6 Replies View Related

General :: Mailserver On Ubuntu Server ?

Jul 21, 2010

I am trying to set up a mailer server on Lucid Lynx using mostly this guide: [url]

I believe I have most of the basics covered. But before launching into the the advanced set up, I want to see if I can get help with one thing I am finding difficult to understand.

In terms of my domain name www.example.com, do I have to do anything on my hosting company's side? That is, www.example.com currently have my web site and it is hosted on a private server at a hosting company. I have the ip address of the server. When I configured postfix, i used this same domain name in the configurations so I want to know what else to do to get it working.

View 3 Replies View Related

Server :: How To Check If Mailserver Is Running

Sep 27, 2010

I am using this command (inside a bash script) to check if mailserver is running correctly (port 25)

# echo | telnet localhost 25 | grep "Connected to "

If it does not respond I receive an email alter.

It works good , but sometime it NEVER respond (neither after 1 hour) , so I receive no notification . DO you know alternative command to the command above ?

View 1 Replies View Related

Server :: Overloading In Mailserver - Get Hang ?

Jun 23, 2011

Iam handling mail server in redhat.MTA using is qmail.since last 1 month it get overload and get hang...since in morning its time for user to loging into mail through web interface.though suddenly login in to mail it get overload and server got hang.we need to restart the server...did not get time to kill https also some time MP port work to save us...still didnot get command to overcome the over load in server...

View 9 Replies View Related

Fedora :: Find Kdmflush & Flush-253 In The Processlist?

May 20, 2010

I always find kdmflush & flush-253 in the processlist. Does somebody know where it comes from and what it does?

View 1 Replies View Related

Ubuntu Installation :: Mailserver On Server Edition ?

Feb 20, 2010

I have Ubuntu Server Edtiion on my server. During the installatino, I choosed to install the mailserver.

I have already configured the MTA.

I also configured the MDA(Dovecot). After I configured the MDA and tried to login on squirrelmail, plenty of MySQL error was generated.

I deleted Dovecot and tried again to login on squirrelmail. Now, this message appears:

Error connecting to IMAP server: localhost. 111 : Connection refused

View 3 Replies View Related

Networking :: Running A Mailserver Under Vmware Workstation ?

Jan 4, 2009

I want to run a mail server from within debian linux guest with vmware workstation xp host. The setup is a bridged network connection

Here are things that need to be done:

a)Configure the Guest with a static IP on my home network. Verify that I can telnet to port 25 of the Guest from a system on my home network.

b)Then configure my home firewall/NAT box to forward incoming connections on TCP port 25 to the static IP address I gave my Guest. Then test that I can telnet to port 25 from a system outside my home network.

c)After that I need to configure the appropriate DNS records for my domain so that outside hosts know how to contact my mailserver.

View 7 Replies View Related

Red Hat / Fedora :: Mailserver Have To Have Direct Access To WAN Or Can It Be A LAN Device With Just One NIC ?

Apr 22, 2010

Does a mailserver have to have direct access to WAN or can it be a LAN device with just one NIC ?

We have two WAN access points.

One is an adsl router joined to the switch and all seems fine for internet browsing.

The other is a wireless system with a linksys router joining by way of PPPoE and this appears to connect fine.

This PPPoE is direct to our ISP and where we need to downlod our mail to our pending mailserver.

When the linksys router is also joined to the switch all devices can use either the adsl or linksys to roam the net. 192.168.1.1 linksys & 192.168.1.10 is adsl.

When I join the linksys direct to the mailserver I will then need two NIC's. One for the Linksys and one for the LAN.

This is where the fun has started.

So.... Can I just have one NIC (connected to the switch) on the mailserver?

View 5 Replies View Related

Red Hat / Fedora :: Mailserver Setup Clamav Won't Install

Apr 25, 2010

Still trying to get that elusive simple mail server. Have install Centos 5 (20 time!) and updated software. Have got the system to see www and now about to do the mailserver thing. One of the first steps is to install Clamav yet this does not show on the package list for the program add delete gui. Tried yum install clamav and got message back that it wasn't available.

Google advises that I must first install rpmforge but at the same time has a warning from the maker of yum that this is dangerous to do Clamav is clearly a very popular antivirus scanner yet Centos 5 does not include it or allow you to install it?

View 2 Replies View Related

Networking :: Avoid DNS Cache Flush- Reboot?

Oct 21, 2010

store the dns cache over the reboot in linux(which should not flush the dns cache on reboot).

View 2 Replies View Related

General :: Avoid DNS Cache Flush- Reboot?

Oct 21, 2010

idea to store the dns cache over the reboot in linux(which should not flush the dns cache on reboot).

View 2 Replies View Related







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