Search Results

Search: Posts Made By: mikie
7,926
Posted By mikie
Well, I figured it out (I think), so this is the...
Well, I figured it out (I think), so this is the code I'm using and it seems to work. Am fully open to someone checking it out and pointing out better ways of achieving the same thing though:

...
7,926
Posted By mikie
Hey buffoonix Thanks for the effort. I've...
Hey buffoonix

Thanks for the effort. I've been scouring the POD all day :) Like, I say, I'm not a programmer so this is all tough to take in but I guess that is half the fun.

Thanks for the tip...
7,926
Posted By mikie
Perl and Net::LDAP, objects and arrays query
Hi

I'm not a programmer but am muddling through as best I can. I am trying to set up a PostSearchHook for Radiator (RADIUS server), that carries out an LDAP lookup, and, based on the
string...
6,508
Posted By mikie
Hey all As a follow-up, I figured it out....
Hey all

As a follow-up, I figured it out. So, if anyone is searching for a similar solution, here is my proposed script in its entireity. It is used within OS X. Note that after 5 minutes, I...
6,508
Posted By mikie
Hey aju_kup Thanks for pointing that error...
Hey aju_kup

Thanks for pointing that error in the loop out to me :) I should know about things like that from previous posts.

Does anyone know how to answer my original query?

Mike
6,508
Posted By mikie
Looping and waiting
Hi

Is it possible to have a script run in a loop (waiting for a change of state in the network interface), and if the loop continues for five minutes, to have it email the admin, and carry on in...
2,149
Posted By mikie
Can you suggest a more efficient way for this?
Hi

I have the following at the end of a service shutdown script used in part of an active-passive failover setup:

###
# Shutdown all primary Network Interfaces
# associated with failover
###...
26,625
Posted By mikie
As an update, I had to use exec to get this to...
As an update, I had to use exec to get this to work, and provided the full path to the script. I am using BASH:

# Call the external service shutdown script
exec...
26,625
Posted By mikie
Hi Jim Thanks for the reply. Yeah that...
Hi Jim

Thanks for the reply.

Yeah that is what I mean, but I wasn't sure if that was the "correct" way of doing it (I thought there might be some import call or something).

Will give it a...
26,625
Posted By mikie
Possible to call external script?
Hi

Is it possible to have a bash script call an external bash script? For instance, I have a series of monitor scripts that check for running services (such as httpd, postmaster). Each monitor...
1,926
Posted By mikie
Ahh, that explains it very well. Thank you both,...
Ahh, that explains it very well. Thank you both, Jim and Jean-Pierre.

Mike
1,926
Posted By mikie
Stripped argument
Hi there

Has anyone seen this behaviour before, and if so, do they know why this happens? I am running this in BASH:

$ export DEV="/usr/sbin/diskutil list | /usr/bin/grep Master | /usr/bin/awk...
3,997
Posted By mikie
Maybe it is because in your cat'd file, the...
Maybe it is because in your cat'd file, the command assigned to the variable HTTPD is not enclosed by backticks? When I run it as you have it displayed, I get the following error:

$ sh test.sh ...
3,997
Posted By mikie
Hi there @Dhruva Thank you for your...
Hi there

@Dhruva

Thank you for your reply; I think I understand what you are explaining to me, and I have added a "sleep 60" :)

@Blowtorch

Thank you for the information on the backtick. I...
3,997
Posted By mikie
Hi Blowtorch Thanks for the reply, and the...
Hi Blowtorch

Thanks for the reply, and the input. I used the method you suggested - running the "ps" inside the while loop - and it worked. What I don't understand is why this did not work in my...
3,997
Posted By mikie
Problem with looping construct
Hi all

I have tried to search for this, but keep getting a MySQL db connect error, so am posing the question here, and taking a risk of incurring the wrath of the mods with my first post...

I...
Showing results 1 to 16 of 16

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