I have a script which must not be run more than once at any given time. THis script will be scheduled to run every 20 mins as a cron job.
In my script can i have logic to say if this script is already running from the previous cron, then exit.
How do i go about doing that. If you describe the... (11 Replies)
I am trying to find a way to test some code, but I need to rewrite a specific URL only from a specific HTTP_HOST
The call goes out to
http://SUB.DOMAIN.COM/showAssignment/7bde10b45efdd7a97629ef2fe01f7303/jsmodule/Nevow.Athena
The ID in the middle is always random due to the cookie.
I... (5 Replies)
Here is what I have so far:
find . -name "*php*" -or -name "*htm*" | xargs grep -i iframe | awk -F'"' '/<iframe*/{gsub(/.\*iframe>/,"\"");print $2}'
Here is an example content of a PHP or HTM(HTML) file:
<iframe src="http://ADDRESS_1/?click=5BBB08\" width=1 height=1... (18 Replies)
Dear community,
what I'm try to do is deny users to run a script without parameters from command bash, but the same script should run without parameters only from crontab.
Example runs by crontab:*/5 * * * * /tmp/script.sh
Here the normal execution starts every 5 minutes
Example #1 runs by... (16 Replies)
Hello,
Am very new to perl , please help me here !!
I need help in reading a URL from command line using PERL:: Mechanize and needs all the contents from the URL to get into a file.
below is the script which i have written so far ,
#!/usr/bin/perl
use LWP::UserAgent;
use... (2 Replies)
Hi all,
I am needing some help with a script that will search for a video file by known extensions and then do a pattern search (I'm guessing via regex) and then based on a match of one type of another move the file to an assigned directory.
I would like to do this with either a shell script... (7 Replies)
Hi forum,
So I am trying to determine the OS type with the following script:
#!/usr/bin/sh
OStype1=`uname -s`
Sunos1=SunOs
if
then
echo "This system is Linux"
exit 0
elif
then
echo "This system is SunOs"
exit 0
elif (1 Reply)
Hello there,
I am not an expert in networking related stuff but I got a requirement to create UNIX script to query our Company's internal time source via NTP for time drift detect and report it when > +/- 50ms.
I have been googling a lot but thought to post it in this forum to get a... (17 Replies)
Discussion started by: Green_Star
17 Replies
LEARN ABOUT DEBIAN
nsd-notify
nsd-notify(8) nsd 3.2.12 nsd-notify(8)NAME
nsd-notify - program to send NOTIFY's to remote nameservers.
SYNOPSIS
nsd-notify [-4] [-6] [-h] [-a address[@port]] [-p port] [-y key:secret[:algorithm]] -z zone servers
DESCRIPTION
Nsd-notify is simple program to send NOTIFY's to remote nameservers. NSD is a complete implementation of an authoritative DNS nameserver.
OPTIONS -4 Only send to IPv4 addresses.
-6 Only send to IPv6 addresses.
-h Print help information and exit.
-a address[@port]
Specify the source address (and port) to send from.
-p port
Specify the port to send to.
-y key:secret[:algorithm]
Specify a TSIG key and base64 encoded secret to sign the notification with. If the TSIG algorithm is not defined, MD5 is used.
z zone Specify the zone to notify about.
servers
List of nameservers to send to.
EXAMPLES
To run this program the standard way type:
# nsd-notify -z foobar.cz 1.2.3.4
SEE ALSO nsd(8), nsdc(8), nsd.conf(5), nsd-checkconf(8), nsd-patch(8), nsd-xfer(8), zonec(8)AUTHORS
NSD was written by NLnet Labs and RIPE NCC joint team. Please see CREDITS file in the distribution for further details.
NLnet Labs jul 19, 2012 nsd-notify(8)