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...
I am using sed in a script to edit several hundred files. I want to basically do a search and replace, but the search uses wildcards. The replace is the same for each file.
For example, most files contain the line
Return_Address=zero or more characters
and I want them all to be changed to...
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...
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.