Hello,
I have a small script and it runs from web application in below format:
myscript.sh:
When I run it, url1, or 2 or 3 runs but I am unable to see which one is in use and I do not wish to run iftop to detect. Htop is not giving any clue.
How may I change this script to be able to see the active url?
Thanks in advance
Boris
Last edited by baris35; 12-10-2018 at 05:46 AM..
Reason: latest update
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
rackup
RACKUP(1)RACKUP(1)NAME
rackup
rackup(1)-- An utility for run Rack-based applications
SYNOPSIS
rackup [ruby options] [rack options] [rackup config]
DESCRIPTION
Rackup is a useful tool for running Rack applications, which uses the Rack::Builder DSL to configure middleware and build up applications
easily.
rackup automatically figures out the environment it is run in, and runs your application as FastCGI, CGI, or standalone with Mongrel or
WEBrick -all from the same configuration.
OPTIONS
Ruby options:
-e, --eval [LINE]
evaluate a LINE of code
-d, --debug
set debugging flags (set $DEBUG to true)
-w, --warn
turn warnings on for your script
-I, --include [PATH]
specify $LOAD_PATH (may be used more than once)
-r, --require [LIBRARY]
require the library, before executing your script
Rack options:
-s, --server [SERVER]
serve using SERVER (webrick/mongrel)
-o, --host [HOST]
listen on HOST (default: 0.0.0.0)
-p, --port [PORT]
use PORT (default: 9292)
-E, --env [ENVIRONMENT]
use ENVIRONMENT for defaults (default: development)
-D, --daemonize
run daemonized in the background
-P, --pid [FILE]
file to store PID (default: rack.pid)
Common options:
-h, --help
Show the help message
--version
Show version
EXAMPLES
This is a simple example on how to start an application based on Rack with rackup:
$ rackup -Ilib blog/config.ru
[2010-12-10 15:01:11] INFO WEBrick 1.3.1
[2010-12-10 15:01:11] INFO ruby 1.9.2 (2010-08-18) [x86_64-linux]
[2010-12-10 15:01:11] INFO WEBrick::HTTPServer#start: pid=4496 port=9292
AUTHORS
Copyright (C) 2007, 2008, 2009, 2010 Christian Neukirchen <http://purl.org/net/chneukirchen>
For a complete list of authors and contributors to the project, please take a look here https://github.com/rack/rack/contributors
This manual page was written by Ermenegildo Fiorito fiorito.g@gmail.com for the Debian Project
SEE ALSO ruby(1) http://rack.rubyforge.org
December 2010 RACKUP(1)