Search Results

Search: Posts Made By: unclecameron
2,402
Posted By unclecameron
Thanks @MadeInGermany, that helped :)
Thanks @MadeInGermany, that helped :)
2,402
Posted By unclecameron
@looney: yep, thanks, it worked :) Here's...
@looney: yep, thanks, it worked :)

Here's what I used:

export PATH=${PATH}:/bin:/usr/sbin
2,402
Posted By unclecameron
not sure what you mean, the script works when you...
not sure what you mean, the script works when you run it manually, and it works when it runs from crontab, so there's no errors, it just doesn't email me.
2,402
Posted By unclecameron
Okay, well here's the less nonsense script: ...
Okay, well here's the less nonsense script:

#!/bin/bash

device="some name"
d=`date +"%m-%d-%Y"`
t=`date +"%T"`
voltageraw=`snmpget -v 1 -c blah 192.168.1.2 .1.3.6.1.4.1.14988.1.1.3.8.0`...
2,402
Posted By unclecameron
Every 15 minutes my script does: get a temp...
Every 15 minutes my script does:

get a temp variable from a sensor

if temp variable > blah; then
send me a warning email about temp
fi

otherwise just log the temp to a mysql db
...
2,402
Posted By unclecameron
Crontab 2>&1 not emailing
I have a script that emails me when I run it manually, but the crontab I'm using must be 'silencing' the output? Here's what I have:


*/15 * * * * /usr/src/blah.sh > /dev/null 2>&1
I don't want...
1,790
Posted By unclecameron
absolute path worked, thanks :)
absolute path worked, thanks :)
1,790
Posted By unclecameron
Rm file named '--log-file'
For some stupid reason I used a series of stupid switches and created this file, now can't seem to get rm to believe it's a file and not a switch :)

Yeah, I know, I know, but seriously, how do I...
Forum: Cybersecurity 12-03-2012
3,845
Posted By unclecameron
@vbe: thanks for moving the post, makes sense :) ...
@vbe: thanks for moving the post, makes sense :)

@unSpawn: There are no other rules active in iptables, and I have restarted all the network related processes I could find. Thanks for the info on...
Forum: Cybersecurity 11-27-2012
3,845
Posted By unclecameron
iptables rule sanity check?
why would: iptables -A INPUT -s 180.0.0.0/8 -j DROP along with /etc/hosts.deny rule of ALL: 180.0.0.0/8 not stop traffic to/from 180.x.x.x, which I still see by running iftop? Or could...
10,403
Posted By unclecameron
hey, thanks, that worked :) So now, I guess...
hey, thanks, that worked :)

So now, I guess ^$ represents a blank line, but how does the command determine what part of the file to start looking, i.e. I'm just trying to understand what sed is...
8,323
Posted By unclecameron
hey, that's great Zaxxon, thanks :) I don't...
hey, that's great Zaxxon, thanks :)

I don't understand how the NR==2 works, can you explain what's happening with that? I've been a bit fuzzy on awk, just trying to understand it better. Thanks...
10,403
Posted By unclecameron
sed show lines text between 2 blank lines
I have a file like

blah
blah blah blah

this is the text I need,
which might be between 1-4 lines, but
always has a blank line above and below
it, and is at the end of the text file


the...
8,323
Posted By unclecameron
cat /home/user/Maildir/new/1322721060.6211_0.www ...
cat /home/user/Maildir/new/1322721060.6211_0.www

Return-Path: <user1@blah.com>
X-Original-To: blah@blah.com
Delivered-To: blah@blah.com
Received: from smtp178.blah.com (smtp178.blah.com...
8,323
Posted By unclecameron
bash dump raw email body txt from Maildir
I'm setting up a cronjob that will hopefully dump the contents of a email delivered to Maildir/new/ to /home/user/raw.txt (and then delete that email)

I could manually remove the bottom line of...
2,620
Posted By unclecameron
python - wget xml doc and parse with awk
Well, that's what I'd do in bash :) Here's what I have so far:

import urllib2
from BeautifulSoup import BeautifulStoneSoup

xml =...
6,807
Posted By unclecameron
wow, okay, this really helps me understand,...
wow, okay, this really helps me understand, thanks again Alister :) . Though the pain, I really have learned something, and am very thankful for all the help. The final code, in case anyone wants to...
6,807
Posted By unclecameron
Thanks alister: yes, it turns out you can specify...
Thanks alister: yes, it turns out you can specify this in the connection, so I added it to the code like:

#!/usr/bin/python

from xml.etree import ElementTree
import gdata.calendar.data ...
6,807
Posted By unclecameron
ALTER DATABASE `googlecal` DEFAULT CHARACTER ...
ALTER DATABASE `googlecal` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci

do I need to do something else? I don't have control of what gets placed on the source google calendar, it could...
6,807
Posted By unclecameron
00000000 41 20 67 72 6f 75 70 20 6f 66 20 52 6f...
00000000 41 20 67 72 6f 75 70 20 6f 66 20 52 6f 67 75 65 |A group of Rogue|
00000010 20 52 69 76 65 72 20 61 72 65 61 20 61 63 74 6f | River area acto|
00000020 72 73 20 68 61 73 20 66 6f...
6,807
Posted By unclecameron
okay, here's the example that makes it data_point...
okay, here's the example that makes it data_point [ 'content' ] break:

0. A group of Rogue River area actors has formed a new
performance troupe, calling themselves Exit 48. Their first
...
6,807
Posted By unclecameron
python - string encoding error
I'm trying to pull a google calendar (successful) and then put the contents into a mysql db (almost successful). On one of the field I keep getting an encode error:

#!/usr/bin/python

from...
3,131
Posted By unclecameron
The reason is I am having trouble with a process...
The reason is I am having trouble with a process I need to run which iterates through around 88K files, running a process on each of them, and speed is the key, and it turns out in testing I need to...
3,131
Posted By unclecameron
zedex -> that returned 173 files, so not sure...
zedex -> that returned 173 files, so not sure exactly what happened

methyl -> that returned only 8 duplicate file names. I searched for duplicatfile.that.it.found.csv and indeed it only found 2...
3,131
Posted By unclecameron
NoWizz -> Debian Squeeze 64bit, cp (GNU...
NoWizz -> Debian Squeeze 64bit, cp (GNU coreutils) 8.5

anurag.singh -> doesn't copy filenames with spaces in filename, trying to figure out a workaround

methyl -> this outputted 38,xxx files,...
Showing results 1 to 25 of 110

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