#!/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...
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...
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...
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>...
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...
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...
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...
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...
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...
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...
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...
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
------------...
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
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...
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
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 {} \...
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
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
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.