Search Results

Search: Posts Made By: cjcox
Forum: Solaris 04-06-2016
3,733
Posted By cjcox
Not terribly obfuscated: trap "echo...
Not terribly obfuscated:


trap "echo goodbye;sleep 10" 0 1 3 15
958
Posted By cjcox
Do you have a backup server or some other host...
Do you have a backup server or some other host that you could do this forced sync/copy from?

You can cat the two files (from each site) together and sort for uniqueness and push out to both sites....
Forum: What is on Your Mind? 04-04-2016
4,315
Posted By cjcox
I use some of things you mention, however, not...
I use some of things you mention, however, not for breaking the law or trying to rip people off.

I use them for security reasons.
1,854
Posted By cjcox
sed solution is fastest, doubt you'll be able to...
sed solution is fastest, doubt you'll be able to beat it by much (virutally immeasurable).

Maybe if we understood what you're wanting to do with the middle data?
1,945
Posted By cjcox
snmp is your friend. A lot of those "tools" are...
snmp is your friend. A lot of those "tools" are not much more than "pretty" snmp based tools. Cacti might be an ok option just because the community often has add-ons for many enterprise things...
Forum: Ubuntu 03-30-2016
2,659
Posted By cjcox
Not necessarily an answer but you could make...
Not necessarily an answer but you could make ndelay very large and time it (possibly outside of the routine).
Forum: UNIX and Linux Applications 03-24-2016
2,270
Posted By cjcox
Looking at the logs is probably a reasonable way...
Looking at the logs is probably a reasonable way (sorry, I'm a PE user).
7,582
Posted By cjcox
script is broken, look at your loop and where the...
script is broken, look at your loop and where the conditional check is.

Also, df is not du... combining the two may lead to unexpected results.

Consider the following (assumes Linux, but can...
Forum: UNIX and Linux Applications 03-23-2016
2,270
Posted By cjcox
Dashboard..... well obviously community can't...
Dashboard..... well obviously community can't come with a PE Dashbaord... but there might be something dashboard-ish for community.

Try looking for things like:...
4,821
Posted By cjcox
Have your awk output commands for the shell and...
Have your awk output commands for the shell and pipe that into sh.
1,796
Posted By cjcox
#!/bin/bash maxnum=6 # Initial load ...
#!/bin/bash

maxnum=6

# Initial load
c=1
while [ $c -le $maxnum ]; do
read line || exit
echo "$line" | sh &
p[$c]=$!
echo ${p[$c]}
((c++))
done

# Loop through all,...
3,167
Posted By cjcox
You are on a good path.... date -d is pretty good...
You are on a good path.... date -d is pretty good of decoding things. But the format mm-dd-yyyy isn't one of them. However, the US style mm/dd/yyyy is interpreted ok.

Obviously there is some...
Forum: Red Hat 02-03-2016
1,688
Posted By cjcox
Wow. Really. Why would anyone want Oracle Linux...
Wow. Really. Why would anyone want Oracle Linux now? It's definitely not how OL used to work.
10,693
Posted By cjcox
You can configure "sudo" to execute commands...
You can configure "sudo" to execute commands without password (see NOPASSWD option). Man sudo, sudoers.

If you're on something other than Linux, you might have to install a sudo package. Most...
1,677
Posted By cjcox
Lots of typos in what you had... just to make...
Lots of typos in what you had... just to make sure, could you either edit your post or submit correction to clean things up a bit?
1,677
Posted By cjcox
Hints: -x or -v as arguments to the shell ...
Hints: -x or -v as arguments to the shell

So... perhaps you didn't mean to have those arguments set... so it's possible the shell is defaulting to this elsewhere. Or perhaps somebody did...
2,147
Posted By cjcox
My guess is that you've included a code snippet...
My guess is that you've included a code snippet and the line number of the error message doesn't correspond.

consider:

IFS="_." read -r -a array << EOF
$filename
EOF


Notice I added "dot"...
Forum: Red Hat 02-01-2016
1,688
Posted By cjcox
Do you mean upgrading from RHEL 6.3 to 6.5 (or...
Do you mean upgrading from RHEL 6.3 to 6.5 (or better, to latest)?

I'm going to guess that OL is Oracle Linux... correct?

Of course Oracle Linux is different from Red Hat, though they try to...
1,246
Posted By cjcox
As long as the data matches, folder names, file...
As long as the data matches, folder names, file names across two dirs and you just want the attributes, you might look at ---attributes-only option of GNU cp.
65,509
Posted By cjcox
There is no "standard" for key stores because...
There is no "standard" for key stores because applications tend to put these all over the place (especially Java apps). You can use a tool like "find" to locate all files with various extensions. ...
5,073
Posted By cjcox
Just for fun (my old inventory tool... belongs to...
Just for fun (my old inventory tool... belongs to IBM). Sample run done against one host, in this case, an oVirt VM.


Host_Class:OVirt-Node
Host_FullHostname:linux-host...
2,520
Posted By cjcox
While incomplete, my sed example outputs a shell...
While incomplete, my sed example outputs a shell script that could be piped into "sh". Just needs the function filled in which receives the block of text and the "segment" number. I was hoping it...
2,520
Posted By cjcox
I was having some fun with doing this in sed to...
I was having some fun with doing this in sed to produce a script to pipe to shell. The idea is that each START / END segment is numbered and the text is piped to a shell function with the segment...
5,073
Posted By cjcox
I really really really need to rewrite the one I...
I really really really need to rewrite the one I made and push it out (I'm an open source developer, IBM doesn't do open source, so glad I'm out of there).
5,073
Posted By cjcox
Best one is the one I wrote for IBM. But they'll...
Best one is the one I wrote for IBM. But they'll never let you have it.

ZenOSS is a popular choice. If you use ServiceNow, they are touting their new discovery product. Dell's KACE might be...
Showing results 1 to 25 of 500

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