Search Results

Search: Posts Made By: s_becker
Forum: AIX 07-16-2009
3,281
Posted By s_becker
Change root password?
Change root password?
1,589
Posted By s_becker
I want to capture everything between SCRIPT####...
I want to capture everything between SCRIPT#### and SCRIPT#echo. So this:

SCRIPT########################LIST_MODULES####################
lsmod
Module Size Used by Not...
1,589
Posted By s_becker
Perl parsing question
I need some help loading an array. I have two unique delimiters, but I keep running into recursion.

#!/usr/bin/perl

$INFILE="/root/scripts/data.txt";
$pat1="SCRIPT####";...
Forum: Programming 04-21-2009
2,982
Posted By s_becker
I am not sure they are needed. How do you do...
I am not sure they are needed. How do you do this without the bind_params?
Forum: Programming 04-21-2009
2,982
Posted By s_becker
Yes, the SQL_* stuff was superflous. Also, I was...
Yes, the SQL_* stuff was superflous. Also, I was using a reserved word as a column name and had autocommit = 0.

Here is the working code:


#!/usr/bin/perl

#use DBI;
use DBD::mysql;
use...
Forum: Programming 04-20-2009
2,982
Posted By s_becker
derefencing issue with perl and mysql
I've tried every type of dereferencing I can think of but I still can't get to array data.

#!/usr/bin/perl

use DBI;
use DBD::mysql;
use DBI qw(:sql_types);

$hostname = "localhost";...
1,831
Posted By s_becker
What does your current look like?
What does your current look like?
6,910
Posted By s_becker
The missing -F/ is a pasting failure on my part. ...
The missing -F/ is a pasting failure on my part. The original command contained it.
6,910
Posted By s_becker
Awesome, didn't realize you could load a while...
Awesome, didn't realize you could load a while loop like that.

methyl

The output is identical with single quote as it is with double quotes.
6,910
Posted By s_becker
Preserving whitespace in a for loop
I obviously haven't learned my lesson with shell and whitespace.

find /path/to/some/where/ -name "*.pdf" | awk '{print $5}'| uniq -d

results:

some Corporation
other Corporate junk
firmx...
20,879
Posted By s_becker
#! /usr/bin/perl open FILE,...
#! /usr/bin/perl

open FILE, "/path/to/file1.txt" or die "can't open file: $!\n";
while (<FILE>) {
chomp;
push (@array_one, $_);
}

open FILE, "/path/to/file2.txt" or die...
1,819
Posted By s_becker
Problem solved: sed -i 's/"<?xml...
Problem solved:

sed -i 's/"<?xml version="1.0" encoding="ISO-8859-1"?>/"<?xml version=\\\"1.0\\\" encoding=\\\"ISO-8859-1\\\"?>"/g' script.sh
1,819
Posted By s_becker
echo is striping mah quotes
As the title says, echo is striping my quotes and I need them.

echo "<?xml version="1.0" encoding="ISO-8859-1"?>"

returns:

<?xml version=1.0 encoding=ISO-8859-1?>

Obviously,

echo...
Forum: Solaris 11-26-2008
5,760
Posted By s_becker
That prolly won't work too well on Solaris 8. ...
That prolly won't work too well on Solaris 8. I'd recommend [re]moving the startup script in /etc/rc2.d.
3,106
Posted By s_becker
Telnet TLS check script
I'm writing a little script to check if MTA's supports TLS but I'm stuck on getting the output.


#! /usr/bin/perl

use Net::Telnet();
$checker = new Net::Telnet (Telnetmode => 0);...
1,783
Posted By s_becker
Postfix relaying
I have sendmail config'd to relay to a MTA and thought I would try out postfix. I specified my hostname and the relayhost, postfix reload and postfix says it is trying localhost.

Connecting to...
12,990
Posted By s_becker
You can use sudo to allow them execute commands...
You can use sudo to allow them execute commands as UID 0 or you can edit the passwd file and make their UID 0 as well.
2,137
Posted By s_becker
One quick way is to enter dates corresponding to...
One quick way is to enter dates corresponding to $1, $2, $n and use that with a wildcard get. example:

./ftp.sh 2008-7 2008-8 2008-9

then inside you script:

ftp to where ever
get...
Forum: Linux 09-04-2008
31,662
Posted By s_becker
If your zombie is owned by init, a reboot is the...
If your zombie is owned by init, a reboot is the only way to remove it. Fixing the code that caused the zombie is the only way to keep them from recurring.
10,789
Posted By s_becker
Fair enough, thanks again.
Fair enough, thanks again.
10,789
Posted By s_becker
Awesome, thanks for that and the other snippets. ...
Awesome, thanks for that and the other snippets. To be clear, why is this not a regex?
10,789
Posted By s_becker
regex inside if comparison
I'm trying to compare the last octet of an IP to a regex:


IP=$(ifconfig eth0 | grep inet | awk -F: '{print $2}' | awk -F. '{print $4}' | awk '{print $1}')

if [ $IP -eq...
1,788
Posted By s_becker
Try grep -n [filename]
Try grep -n [filename]
3,231
Posted By s_becker
It looks like you should define $zip_files prior...
It looks like you should define $zip_files prior to your for loop. Or use:

for i in RTMSJBDB RTMSS2DB RTMSSIDB RTMSKADB RTMSFKDB RTMSDADB RTMSDEDB RTMSCLYC RTMSCNTS;
16,512
Posted By s_becker
Edit your 'aliases' file and run the 'newaliases'...
Edit your 'aliases' file and run the 'newaliases' command. your list should be separated by commas.
Showing results 1 to 25 of 28

 
All times are GMT -4. The time now is 06:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy