Search Results

Search: Posts Made By: cnamejj
11,847
Posted By cnamejj
And curl worked for me with the addition of the...
And curl worked for me with the addition of the '-L' flag. What message (or error?) do you see when you try it?

Here's the version of curl in case you want to compare.
curl 7.22.0...
1,581
Posted By cnamejj
Got it... But unless I'm missing something, once...
Got it... But unless I'm missing something, once an IP is on your firewall's block list any packets received will be ignored. So the only "SYN_SENT" connections will be the ones setup before the...
1,581
Posted By cnamejj
I think it's better to block the IP's with...
I think it's better to block the IP's with iptables (or the ufw front end to iptables) then just killing the connections. Presumably someone that's trying to attack your system would just reconnect,...
Forum: Programming 06-19-2014
8,799
Posted By cnamejj
If it helps, there's a program called "quipi" in...
If it helps, there's a program called "quipi" in this GitHub repo (mine) that does address lookups and runs through the resulting records to pull out data.

https://github.com/cnamejj/cli-tools
...
Forum: Programming 06-19-2014
8,799
Posted By cnamejj
There's a couple things that make it hard to just...
There's a couple things that make it hard to just give you a suggested solution...

First, the structure you're talking about it generally not just one structure. It's a linked list of structures,...
Forum: Red Hat 06-18-2014
2,731
Posted By cnamejj
Other people might have the same question I do,...
Other people might have the same question I do, which makes it difficult to suggestion a solution. I'm not sure what "fully loaded" means?

If you just want to know if the website is up and...
7,115
Posted By cnamejj
If you have to do this, which is sounds like is...
If you have to do this, which is sounds like is the case, then I suggest you maintain the list of password as hashed/encrypted passwords. That's not hard since you are presumably generating them in...
Forum: IP Networking 06-15-2014
1,469
Posted By cnamejj
If the IP's you're getting from "dig" aren't...
If the IP's you're getting from "dig" aren't associated with the server running Apache, then HTTP requests sent to that domain aren't routed to the Apache server directly.

So if they are getting...
5,459
Posted By cnamejj
I wouldn't rely on the "file" command to provide...
I wouldn't rely on the "file" command to provide any definitive answer about the intended use or format of a file. It's notoriously inaccurate and IMO is more of a "hint" for interactive use then...
Forum: Programming 06-05-2014
10,894
Posted By cnamejj
The answer to how that program work are in the...
The answer to how that program work are in the URL you linked.

The called program overwrites it's arguments after making a copy of them. But as one of the other comments adds, there's still a...
2,925
Posted By cnamejj
Here's a really crude thing I threw together just...
Here's a really crude thing I threw together just now that worked for me. Some variation on this, which just gets a list of files and checksums with "ssh", might help.

#!/bin/bash

for hh in...
15,602
Posted By cnamejj
There's also a "flock" command (as opposed to the...
There's also a "flock" command (as opposed to the library routine of the same name) available which may be pre-installed or at least pre-packaged on the systems you care about. It does exactly what...
5,344
Posted By cnamejj
If you're using bash/sh or similar shells this...
If you're using bash/sh or similar shells this will capture the python version number in a variable.

xx=$(python --version 2>&1)

The output is being sending to stderr, which is why you need the...
17,404
Posted By cnamejj
If you're already running "find" why not just put...
If you're already running "find" why not just put the "rm" command there?


find /usr/IBM/HTTPServer/apache_cache/ -type f -mtime +1 -exec rm {} \;
1,110
Posted By cnamejj
I don't understand the requirements well enough...
I don't understand the requirements well enough to give you a complete answer. But here's a sample of how you can use "pkill" (if you system has it) to determine if a process is running or not. I...
2,339
Posted By cnamejj
This syntax also works, at least in bash. ...
This syntax also works, at least in bash.


if [ -s file1.csv -a -s file2.csv ]
Forum: Solaris 05-22-2014
3,586
Posted By cnamejj
You probably already know this, but just in...
You probably already know this, but just in case... Paging and swapping are not the same thing and your OS could be doing one or both.

As for finding out what's going on in more detail, I'd...
1,176
Posted By cnamejj
I think if you have a 15MB shell script it's...
I think if you have a 15MB shell script it's going to be slow no matter what. So if speeding things up is important the best approach is, unfortunately, to redesign the script and break functions...
1,995
Posted By cnamejj
If you're running bash, then this should work. ...
If you're running bash, then this should work.

FCD() { dir="$(find . -name "$1" -exec dirname {} \; | gawk 'NR == 1 { print }')"; if [ "${dir}" != "" ]; then echo "change to '${dir}'"; cd...
3,193
Posted By cnamejj
That was my first thought too. If you are...
That was my first thought too. If you are already using "scp" then I'd recommend setting up keys that allow you to "scp" without needing a password. Then your scripts get much, much simpler.
2,202
Posted By cnamejj
The file "/proc/###/smaps" has all sorts of...
The file "/proc/###/smaps" has all sorts of useful information about memory usage of individual processes, including swap space. It's way more detail than you're looking for but you can extract what...
6,753
Posted By cnamejj
You can use the mktime() and strftime() routines...
You can use the mktime() and strftime() routines if your awk has them (gawk does). Here's a crude sample to give you an idea how it work. Check the "man gawk" page for more info

gawk 'BEGIN {...
1,139
Posted By cnamejj
Hmmm, if the sample data is representative then...
Hmmm, if the sample data is representative then it's not even necessary to take the "ID=" field from an earlier record. The value you want it already in the "ID=" field of the "exon" record. You...
1,811
Posted By cnamejj
Here's a quick demonstration how "flock" can be...
Here's a quick demonstration how "flock" can be used to coordinate serialized execution of a command. When you enter the following,


iter=0
while [ ${iter} -lt 10 ]
do
flock -w 30...
1,811
Posted By cnamejj
Eons ago I ended up writing C code to wrap...
Eons ago I ended up writing C code to wrap execution of arbitrary commands with lock management just for cases like this. Meaning, I needed a way to coordinate the use of various scripts, tools,...
Showing results 1 to 25 of 33

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