Search Results

Showing results 1 to 26 of 26
Search took 0.01 seconds.
Search: Posts Made By: krammer
Forum: Python Jan 7th, 2009
Replies: 4
Views: 1,286
Posted By krammer
Do you know how to capture the cookies with cookielib and urllib2?
Forum: Python Jan 6th, 2009
Replies: 4
Views: 1,286
Posted By krammer
I've read pycurl is faster...it seems pretty easy to me...except for the cookie part. I'm pretty new to python so I've never used cookielib or urllib2, but i've looked at some examples and pycurl...
Forum: Python Jan 4th, 2009
Replies: 4
Views: 1,286
Posted By krammer
Actually I think my problem might be because of my print function, I forgot python 3.0 uses the parenthesis...although I still should have seen the cookies in the pcap file that I captured, so maybe...
Forum: Python Jan 4th, 2009
Replies: 4
Views: 1,286
Posted By krammer
My problem is that I do not see cookies being captured with this forum submission that I have setup. Does anyone know what I am doing wrong? Any help is appreciated, thanks.

def main():

#...
Forum: Python Dec 8th, 2008
Replies: 4
Views: 750
Posted By krammer
I have been using the arguments for running the script. "python empty.py -t" which should empty the trash. Do I have to add the "-" in there?

def main():
try:
opts, args =...
Forum: Python Dec 7th, 2008
Replies: 4
Views: 750
Posted By krammer
Thank you for the info, I will most likely use that for removing whole directories.

When testing this script, I just get my usage message spit back at me...do I have this scripted right? I'm...
Forum: Shell Scripting Dec 6th, 2008
Replies: 6
Views: 3,909
Posted By krammer
That works! Except when i know there is nothing in the directories that I have emptied, or it doesn't exist, its not echoing...
Forum: Python Dec 5th, 2008
Replies: 4
Views: 750
Posted By krammer
How would I empty my linux trash from python?

Would I just do a simple os.remove? Or is there an easier way? I am also working on deleting all files within a directory, for multiple...
Forum: Shell Scripting Dec 5th, 2008
Replies: 6
Views: 3,909
Posted By krammer
I thought it was like this:

If the DIR equal the DIR, then remove it.
if it's anything else, then it's nothing.

But what you're saying is to try:

for x in "${arrDirs[@]}"; do
if [ $x =...
Forum: Shell Scripting Dec 5th, 2008
Replies: 6
Views: 3,909
Posted By krammer
Sorry for a delayed response...should the else conditions take care of that?
Forum: Shell Scripting Nov 26th, 2008
Replies: 6
Views: 3,909
Posted By krammer
Does anyone know why this script would give me an error (only sometimes) with it saying "too many arguments"?

#!/bin/bash

HOME='/home/eric'
...
Forum: Shell Scripting Jul 23rd, 2008
Replies: 1
Views: 764
Posted By krammer
Heh...just figured it out:

#!/bin/bash

COL_GREEN='\E[32;01m'

COMMAND=$(ps -eo user,pcpu,pid,cmd | sort -n -u -k2 | head -6 | sed '$!d')

echo -e "$COL_GREEN $COMMAND" ; tput sgr0
Forum: Shell Scripting Jul 23rd, 2008
Replies: 1
Views: 764
Posted By krammer
This script will show the top 5 processes that are using the most CPU percentage. What i'd like to do is color the process that is the highest, which should be the first line. Does anyone know how...
Forum: Shell Scripting Jul 23rd, 2008
Replies: 4
Solved: Colors in bash
Views: 1,977
Posted By krammer
Sorry I haven't tried it. What I changed is working fine now...I was just trying to replace the "tput sgr0" with a variable...unless someone knows how to do that. I couldn't get it working...
Forum: Shell Scripting Jul 17th, 2008
Replies: 4
Solved: Colors in bash
Views: 1,977
Posted By krammer
This is working....but not exactly the way i'd like for variables:

#!/bin/bash
# Script to connect to the sprint network

# Colors
#ESC_SEQ='\x1b['
#COL_RESET='; tput sgr0'...
Forum: Shell Scripting Jul 17th, 2008
Replies: 4
Solved: Colors in bash
Views: 1,977
Posted By krammer
Sorry actually this is the error:

root@mybox:~/Scripts# ./sprint disconnect
./sprint: line 6: 49: command not found
./sprint: line 6: 00m“: command not found
./sprint: line 7: 01m“: command not...
Forum: Shell Scripting Jul 17th, 2008
Replies: 4
Solved: Colors in bash
Views: 1,977
Posted By krammer
I'm trying to add colors to this bash script, can anyone help?

#!/bin/bash
# Script to connect to the sprint network

# Colors
# ESC_SEQ=“\x1b[“
COL_RESET=$ESC_SEQ“39;49;00m“...
Forum: HTML and CSS Jul 1st, 2008
Replies: 7
Views: 1,313
Posted By krammer
Yes, this can be marked as solved, thanks!
Forum: HTML and CSS Jun 25th, 2008
Replies: 7
Views: 1,313
Posted By krammer
OOOK so I just answered all my questions lol.

Changed the border to 1px instead of .5px

Does anyone have suggestions to make my code any cleaner? I'm just trying to make a perfect template for...
Forum: HTML and CSS Jun 25th, 2008
Replies: 7
Views: 1,313
Posted By krammer
Ok, figured out my menu problem, it was my padding with li and ul...I set them to 1.5px 1.5px 1.5px.

Now it's just my border container that I need to fix!
Forum: HTML and CSS Jun 25th, 2008
Replies: 7
Views: 1,313
Posted By krammer
?

I'm not quite sure I understand...my background works fine now...its just my container border that doesn't show in IE, and extra spaces in the menu that appear in IE.
Forum: HTML and CSS Jun 24th, 2008
Replies: 7
Views: 1,313
Posted By krammer
Does anyone have any ideas?
Forum: Windows NT / 2000 / XP Jun 24th, 2008
Replies: 9
Views: 2,785
Posted By krammer
Hi,

How would I apply a local group policy for a specific local user? I've applied local group policy settings, but it applies it to every user, including the administrator...

Thanks to anyone...
Forum: HTML and CSS Jun 23rd, 2008
Replies: 7
Views: 1,313
Posted By krammer
The css layout that I have works perfectly in firefox, but not in IE. The menu has all extra spaces between them, the background image doesn't show, and the container doesn't look the same. I'm...
Forum: Shell Scripting Jun 10th, 2008
Replies: 3
Views: 3,005
Posted By krammer
Thanks!

#!/bin/bash

RANGE=10
number=$RANDOM
let "number %= $RANGE"
NAME=$(awk 'NR=='$number+1'{print;exit}' /home/eric/names)
echo "$NAME"
Forum: Shell Scripting Jun 10th, 2008
Replies: 3
Views: 3,005
Posted By krammer
I am trying to print a random line from a text file that has 10 lines. The problem that I run into is that it sometimes picks the number "0" which is not a line in the text file. How would I have...
Showing results 1 to 26 of 26

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC