Search Results

Search: Posts Made By: ph0enix
10,492
Posted By ph0enix
Thank you! It works perfectly! :D
Thank you! It works perfectly! :D
10,492
Posted By ph0enix
So if instead I had asked how to write a script...
So if instead I had asked how to write a script that would copy a file to a few remote servers using different credentials in a secure manner, it would have been ok?

The point is that I need to...
10,492
Posted By ph0enix
Expect script that simulates a SSH brute force attack
I want to test the effectiveness of sshguard on some of my systems so I'm trying to write a script that simulates a brute force attack by sending a bunch of different username and password...
22,703
Posted By ph0enix
I tested the python script on a Mac OS-X system...
I tested the python script on a Mac OS-X system and to my surprise, it seemed to be utilizing both CPU cores while the script was executing. I couldn't tell you why but "top" showed CPU usage at...
2,001
Posted By ph0enix
What version of MySQL are you using? If it's 5.0...
What version of MySQL are you using? If it's 5.0 or higher, you should be able to use triggers and UDF to manipulate files. I haven't tried this myself but here's some info:

MySQL :: MySQL 5.0...
22,703
Posted By ph0enix
Here's what I've got in python so far: ...
Here's what I've got in python so far:


import threading
import string
theVar = 1
class MyThread ( threading.Thread ):
def run ( self ):
global theVar
theVar = theVar + 1
...
22,703
Posted By ph0enix
It sure does. Neat trick! It's not exactly...
It sure does. Neat trick! It's not exactly suitable for my needs though.

I managed to create a multithreaded python script that roughly does what I need it to but it still uses only a single...
22,703
Posted By ph0enix
I have a pretty good idea of what they are. ...
I have a pretty good idea of what they are. Coding is another story.
22,703
Posted By ph0enix
The answer to the "why shell" question is simple:...
The answer to the "why shell" question is simple: I don't know the first thing about C. Another reason is portability. It's easier to test different systems if the program doesn't have to be...
22,703
Posted By ph0enix
Is there a way to make bash [or another shell] use all CPU cores to execute a single script?
I wrote a very simple script that matches combinations of alphabetic characters (1-5). I want to use it to test CPU speeds of different hardware/platforms. The problem is that on multi-core/processor...
5,528
Posted By ph0enix
Connecting to MS SQL database from bash (using unixODBC)
I've installed unixODBC and I would like to connect to a MS SQL (2005) database from a bash script. Can you post a code example?

Thank you! :D

J.
Forum: BSD 04-02-2009
3,642
Posted By ph0enix
Are you in any particular hurry to upgrade to...
Are you in any particular hurry to upgrade to 8.0? Maybe you don't need to.
Forum: Solaris 04-02-2009
6,875
Posted By ph0enix
What if you got an Ultra 10 on eBay for a 100...
What if you got an Ultra 10 on eBay for a 100 bucks?
SUN Ultra 10 UltraSPARC IIi 333MHz 512MB RAM 9GB HD CD - eBay (item 390033197477 end time Apr-23-09 22:32:19 PDT)...
Forum: Solaris 04-02-2009
6,875
Posted By ph0enix
He's looking for the old version of Solaris (8).
He's looking for the old version of Solaris (8).
Forum: BSD 04-02-2009
4,199
Posted By ph0enix
What system are you on? As far as I know lspci...
What system are you on? As far as I know lspci is a Linux command. Does it even work on BSD?
Forum: BSD 04-02-2009
12,324
Posted By ph0enix
Yes, it's possible. Enable SSH on the FreeBSD...
Yes, it's possible. Enable SSH on the FreeBSD system by adding the following line to /etc/rc.conf:

sshd_enable="YES"

...and reboot. Once that's done you should be able to use putty to connect...
Forum: BSD 04-02-2009
3,762
Posted By ph0enix
set the env. variable BATCH to "yes". In bash,...
set the env. variable BATCH to "yes". In bash, you can do:

BATCH="yes" make install distclean
Forum: BSD 04-02-2009
5,294
Posted By ph0enix
Since you want to compile wget with the default...
Since you want to compile wget with the default options, you can simply set the BATCH env. variable to "yes" and run make. In bash, for example, you could do something like:

BATCH="yes" make...
1,381
Posted By ph0enix
That did it. Thank you!
That did it. Thank you!
1,381
Posted By ph0enix
For some reason I'm having trouble getting it to...
For some reason I'm having trouble getting it to work this way. It gets to 9 and hangs at 10.

Thanks!
1,381
Posted By ph0enix
Awesome! Thanks guys! :)
Awesome!

Thanks guys! :)
1,381
Posted By ph0enix
Loops (including exclusing whille values)
Is there a way to make the following script more efficient using a single loop? I want n to be 1 through 254 excluding 10 and 225. How would I go about doing that?



#!/usr/local/bin/bash...
19,190
Posted By ph0enix
Sweet! Thank you! :D
Sweet!
Thank you! :D
19,190
Posted By ph0enix
Here's what I did and it actually works. It's...
Here's what I did and it actually works. It's very inefficient though:


awk '//{print $1,$3,$5,$7,$9}' file.txt |grep -v "|" |grep -v "Filter" |grep -v "=" |grep -v "IPv4" |sed 's/^/<TR><TD>/'...
19,190
Posted By ph0enix
Let me be more specific. I can display the data...
Let me be more specific. I can display the data I need by doing:


awk '//{print $1,$3,$5,$7,$9}' file.txt |grep -v "|" |grep -v "Filter" |grep -v "IPv4" |grep -v "="


Now I would like to add...
Showing results 1 to 25 of 33

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