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 Chriss Miller 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: *

  • Users: jouell
  • Content: Threads
  • Order by date
  1. jouell

    Curly braces in bash allow script to see variable?

    #!/bin/bash set -u ls /etc { ls / SUBJECT=TEST } | mail -s "$SUBJECT" $ME This returns "unbound variable" or just a blank subject w/o set -u. I thought the commands/script outside of the curly braces can see the variable $SUBJECT as it's supposed to be global. I am missing something...
  2. jouell

    Parsing config files with shell!

    Hi All, I am trying to write a shell script that does the following: Looks through a configuration of a firewall (netscreen) that has the following general format: Policy port sourceIP destinationIP direction etc. etc. src IP address1 src IP address2 src IP address3 src IP address4 exit I...
  3. jouell

    Writing to screen and /bin/mail

    Hi. I have a shell script that will alert me when a new event has happened, basically: <snip> printf "A new IP, $IP was blocked from connecting to Port 80\n" printf "A new IP, $IP was blocked from connecting to Port 80\n" | mail -s "Blacklist Alert" "$RECIPIENT" What I would like to do is to...
  4. jouell

    Same config for 80 and 443 ports and special config for 443 port?

    Hello. Is it possible to configure like the example below ? Same config for 80 and 443 ports and special config for 443 port. I'd like to run both port 80 and 443 and have the 443 site 'inherit' all the basics from the 80 site. NameVirtualHost *:443 NameVirtualHost *:80 <virtualhost *:80>...
  5. jouell

    File integrity checker Suggestions

    Hi All, Can someone suggest a file integrity tool that they have *actually used* or *currently use* successfully and is relatively easy to use? I am using Ubuntu LTS 8.04 Specifically I tried http://www.saddi.com/software/yafic/ (which is really what I'm looking for) but can't get it to...
  6. jouell

    Efficient Bash Script Tip for Large Files?

    Hi All, I have 2 large files (~2GB each). They both contain a list of URLS. I believe they should roughly overlap. So, I have a script to grep the URLs do exist in file1 but not in file2: #!/bin/bash file1=urls1.txt file2=urls2.txt file3=not_found_in_1.txt while read line; do grep...
  7. jouell

    Excel auto-import 4 files into a worksheet with variable name?

    Hi all, I have four different scripts that run and download for different sets of information. Each time the four sets of script run for a different user. For example: I.E. When all four scripts have finished I'll have the following data sets...
  8. jouell

    More Efficient Regexp?

    Hi All, Can anyone make this regexp more efficient? I am trying to grep for 2008:09:45 through 2008:10:45 am in a file: egrep -e "2008:09:4[5-9]" -e "2008:09:5[0-9]" -e "2008:10:[0-3][0-9]" -e "2008:10:4[0-5]" FILE other than just: egrep -e...
  9. jouell

    Basic Variable Question?

    Hi. I have filenames that are similar and I'd like to include them all in on php file like so: <?php include('meta/index_html2body.php'); ?> <?php include('content/_index.php'); ?> This does not work: <?php $file = 'index'; ?> <?php include('meta/"$file"_html2body.php'); ?> <?php...
  10. jouell

    Control A hangs an SSH session w/Putty?

    Hi All *Sometimes* when I am using bash and go to the end of a long line and wish to go back to beginning of line with "control a" my SSH session hangs. Has anyone experienced this? I use putty on Windows XP connecting to a Linux Ubuntu server w/OpenSSH_4.7p1 w/bash 3.1.17(but this has...
  11. jouell

    How to determine number of time linux has rebooted?

    Hi. If I look through /var/log/messages, how do I determine how many time my linux machine has restarted? Thanks -jouell
  12. jouell

    Apache 2.2.2 + SSL + OpenLDAP

    Hi. I hope you don't consider this cross posting but this touches so many areas I thought I'd ask here in the Apache forum as well as Subversion: http://tek-tips.com/viewthread.cfm?qid=1261561&page=1 Basically I'm really close getting Apache 2.2.2 + SSL + OpenLDAP to all play together...
  13. jouell

    mod_auth_ldap compile help

    Hi. I've got OpenSSl, and Apache compiled and installed OK. Mod_auth_ldap for Apache2 will configure but errors on the make are below: I am trying to configure Subversion on my Linux server, but first i need to get apache/mod_auth_ldap working. Any ideas? -John Openssl ------------...
  14. jouell

    Sed replace white and leave one character.

    Hi. How would I use sed to replace all white space in a file with a semicolon? cat file | sed -e 's/ /:/g' is ok but is leaves a bunch of ":". I need to have just one. I am using GNU sed version 4.1.2 Thanks! -jouell
  15. jouell

    Correct Ldap behavior theory question (newbie)

    Hi If have userX in Ldap groupX, who can login to serverX, but is NOT in the local groupX group in /etc/group, should userX be granted permissions to files the groupX group has access to on serverX? I know the reverse is true (local group entry but no ldap entry will gain you access) note...
  16. jouell

    Newbie:Restrict mysql by IP?

    Hi. I need the mysql instance running on our server (Linux)updated to allow general access from internal ip addresses, block those not in the list. How shall I go about this? I 've searched in forums and have not found much. Thanks! -John
  17. jouell

    Help decode this find command?

    Hi. Sorry for the basic question to the masters here but I can't understand what this line is supposed to do, exactly? find /mountpoint -fstype nfs -prune -o ! -exec ls -lad {} \; It doesn't bring back any results, just a link: find /prod -fstype nfs -prune -o ! -exec ls -lad {} \...
  18. jouell

    hostnames with putty

    If I use putty to ssh into boxA, and from boxA ssh into boxB, how do I get putty to display boxB in the title? Thanks -John
  19. jouell

    Host transer and licenses

    After doing a host transfer (We are changing the IP on the server, it is a must), how do we import the auth codes into the server? Is there a way to do this with typing them all in again? Thanks! -John
  20. jouell

    Restore one table with Oracle 9.2?

    Hi. Am I correct in saying you can't directly restore one table with Oracle 9.2 using RMAN? I know you can do tablespaces, but I see no evidence of just on table. Thanks! -John

Part and Inventory Search

Back
Top