Unix/Linux Go Back    

Showing results 1 to 25 of 500
Search took 0.07 seconds.
Search: Posts Made By: cjcox
Forum: Solaris Linux 04-06-2016
Replies: 4
Views: 1,278
Posted By cjcox
Not terribly obfuscated: trap "echo...

Not terribly obfuscated:


trap "echo goodbye;sleep 10" 0 1 3 15
Forum: Shell Programming and Scripting Linux 04-06-2016
Replies: 1
Views: 480
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? Linux 04-04-2016
Replies: 3
Views: 3,535
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.
Forum: Shell Programming and Scripting Linux 03-31-2016
Replies: 8
Views: 871
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?
Forum: UNIX for Advanced & Expert Users Linux 03-31-2016
Replies: 3
Views: 1,303
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 Linux 03-30-2016
Replies: 1
Views: 1,351
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 Linux 03-24-2016
Replies: 3
Views: 1,104
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).
Forum: Shell Programming and Scripting Linux 03-23-2016
Replies: 1
Views: 1,847
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 Linux 03-23-2016
Replies: 3
Views: 1,104
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:...
Forum: Shell Programming and Scripting Linux 03-10-2016
Replies: 2
Views: 1,527
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.
Forum: Shell Programming and Scripting Linux 02-10-2016
Replies: 5
Views: 1,050
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]=$!
Forum: Shell Programming and Scripting Linux 02-05-2016
Replies: 2
Views: 1,293
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 Linux 02-03-2016
Replies: 4
Views: 1,040
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.
Forum: Shell Programming and Scripting Linux 02-02-2016
Replies: 1
Views: 1,434
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...
Forum: Shell Programming and Scripting Linux 02-01-2016
Replies: 5
Views: 496
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?
Forum: Shell Programming and Scripting Linux 02-01-2016
Replies: 5
Views: 496
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...
Forum: Shell Programming and Scripting Linux 02-01-2016
Replies: 2
Views: 766
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 Linux 02-01-2016
Replies: 4
Views: 1,040
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...
Forum: UNIX for Dummies Questions & Answers Linux 01-26-2016
Replies: 1
Views: 752
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.
Forum: UNIX for Advanced & Expert Users Linux 01-26-2016
Replies: 6
Views: 15,300
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. ...
Forum: UNIX for Advanced & Expert Users Linux 01-20-2016
Replies: 7
Views: 2,103
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...
Forum: Shell Programming and Scripting Linux 01-18-2016
Replies: 10
Views: 898
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...
Forum: Shell Programming and Scripting Linux 01-15-2016
Replies: 10
Views: 898
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...
Forum: UNIX for Advanced & Expert Users Linux 01-15-2016
Replies: 7
Views: 2,103
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).
Forum: UNIX for Advanced & Expert Users Linux 01-13-2016
Replies: 7
Views: 2,103
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 11:36 AM.