Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. redsevens

    converting server to backup server

    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...
  2. redsevens

    About import database from Linux to Microsoft Access

    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...
  3. redsevens

    simple sed problem

    That did the job! thanks for your advice.
  4. redsevens

    simple sed problem

    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...
  5. redsevens

    My AD server broke my cookies!

    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...
  6. redsevens

    My AD server broke my cookies!

    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...
  7. redsevens

    slightly confused about parameters

    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...
  8. redsevens

    slightly confused about parameters

    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...
  9. redsevens

    Windows 2000 and IIS

    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...
  10. redsevens

    grepping with variables for logfiles

    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...
  11. redsevens

    grepping with variables for logfiles

    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&quot...
  12. redsevens

    Simple scripting problem - convert `wc -l` to an int

    Beautiful! I knew it would be something simple. Thanks! -Joe
  13. redsevens

    Simple scripting problem - convert `wc -l` to an int

    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...
  14. redsevens

    /etc/aliases - problem. very weird. need help!

    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...
  15. redsevens

    key bindings - windows key needs some functionality

    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...
  16. redsevens

    remote X sessions?

    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...
  17. redsevens

    remote X sessions?

    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...
  18. redsevens

    Best way to add SSL?

    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...
  19. redsevens

    how to allow relaying?

    I am a webmaster/email administrator for a small company and we have a few people working remotely who need to send email from my domain. However, I want to limit that as much as possible and I know there will only be three users from two domains (both roadrunner -- nycap.rr.com and hvc.rr.com)...
  20. redsevens

    HTML not showing correctly in Netscapes

    I think 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...

Part and Inventory Search

Back
Top