My company has recently decided to switch to (groan) an Exchange server + Outlook. Prior to the switch all mail was handled by sendmail (8.9.3-20) on Linux, and now the Linux server (Milhouse) should act as a backup server.
I would like to set it up so that when a message reaches Milhouse it...
First off, we'd need to know what database system you're using on Linux, such as MySQL or PostgreSQL. I would suggest you use the COPY command - in pgsql it would look like:
copy tablename to '~/table.csv' using delimiters ','
This will get you a comma-separated-values file in your home...
...and I want them all to be changed to:
Return_Address=customer_service@myhost.com
I initially tried the following script:
instring='Return_Address=*\n';
outstring='Return_Address=customer_service@myhost.com\n';
for i in `ls *.ini`
do
cat $i | sed s/$instring/$outstring/g > new_inis/$i...
Yes - initially, the entry was still in the hosts file but I have since removed it and had the same results.
Remember, the site is now located at http://intranet.mysite.com, rather than http://intranet so the hosts file is no longer a factor (pinging the address shows that it is resolving to...
Well, I think it is the Active Directory server's fault:
My company just switched from an NT 4 Domain to a Win2K Active Directory. The server (named CSADS1) also is handling DNS internally now. The problem is, our intranet server (which is running Apache/PHP on Linux) is not able to set cookies...
Thanks to all three for the contributions - Jean Pierre gets the prize for being my favorite solution, while Squash wins an honorary mention for jumping to the most conclusions. :) The other two solutions wouldn't work because $1 should be a directory and $2 is a file, so a switch-type structure...
Hello,
I wrote a simple script that takes either two or three parameters, or '-h' or '--help' to show a friendly usage string. My test for this is as follows:
if [[ ! -z $2 || $1 -eq "-h" || $1 -eq "--help" ]]
It works correctly if I use two or three parameters or if the...
Jim,
Windows XP doesn't install IIS by default, you have to go to the "Add/Remove Programs" control panel, go to "Add/Remove Windows Componenets" and check the box for "Internet Information Services (IIS)" (and have your install CD handy). Then you can start it from...
The quotes were needed in the grep command so I could search for a string with a space in it. I managed to fix it though, by doing the following:
grepstring="$monthname $daynum $hournum:";
...
grepresults=`grep "$grepstring" /var/log/maillog | wc -l;
I guess it all boils...
I'm trying to create a script that will assess how many entries per hour are in a log file (/var/log/maillog). The code I have is below:
#!/bin/bash
for monthname in "Jan" "Feb" "Mar" "Apr" ... "Dec"
do
for daynum in "01"...
I'm trying to run a script that will do one of two things, depending on whether or not a directory is empty. The script so far is as follows:
#!/bin/bash
num_sii=`ls /home/sii/incoming/ | wc -l`;
if [$num_sii -eq 0]
then
echo "There aren't any new files.\n"
else
echo...
This is a quick-and-dirty type solution, but should get the problem solved while you look into a more proper solution:
Say the alias is egessner and you want to send the file to egessner@host1.com, egessner@host2.com, egessner@host3.com, egessner@host4.com, and egessner@host5.com. You might try...
I am almost positive that this is a problem that can be solved with one or two lines in some configuration file. Is there a way to map the "Windows" key on my keyboard to the Gnome menu? Does anybody know of a good site that references fun key mappings like that? (It would be really...
Thanks, CaKiwi! This was exactly what I didn't know about that fixed the problem right away! I had to show off the power of Linux, and this type of thing will be sure to impress...
I think I'm close but not close enough to get it to work... I am trying to launch an app on my computer (running Linux of course) from another machine on the network. I connect to that machine with telnet and type the command name (xeyes for testing) and I get the following three lines:
Xlib...
Hello,
My boss told a client yesterday that we have a secure web site and can accept American Express (before asking me if we could do it, of course), so now I need to get something up and running. I did a quick check at the Apache site for SSL (I'm running Apache on a linux box) and it looks...
...but the IP addresses are dynamic. Road runner forms names like cm-24-0-0-0.nycap.rr.com so I can be sure their addresses will show up like *.[nycap|hvc].rr.com.
Is this something that the /etc/mail/access file handles? I tried adding lines like:
.nycap.rr.com OK
and then I ran make...
...I have narrowed this problem down to Apache, but I am stuck. My web server seems to be doing everything correctly except when it comes to serving *.html pages to Netscape browsers. Any file that ends in .html does not get rendered; the source is shown as plain text in Netscape. When I view...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.