Sponsored Content
Top Forums Shell Programming and Scripting How to detect url in use in a script? Post 303027093 by bakunin on Sunday 9th of December 2018 07:11:05 AM
Old 12-09-2018
Quote:
Originally Posted by baris35
I have a small script and it runs from web application in below format:
Code:
pipe:///path_to_myscript.sh url1 url2 url3

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?
I might be a little slow but i can't understand what exactly you want - and, to be honest, the analysis of your script doesn't make it any clearer for me. Could you please explain (for dummies like me) what exactly you want to achieve?

Thank you.
bakunin
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

url calling and parameter passing to url in script

Hi all, I need to write a unix script in which need to call a url. Then need to pass parameters to that url. please help. Regards, gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies

2. Shell Programming and Scripting

url calling and parameter passing to url in script

Hi all, I need to write a unix script in which need to call a url. Then need to pass parameters to that url. please help. Regards, gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies

3. UNIX for Dummies Questions & Answers

how to detect my script is already running

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)
Discussion started by: rmulchandani
11 Replies

4. Web Development

Regex to rewrite URL to another URL based on HTTP_HOST?

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)
Discussion started by: EXT3FSCK
5 Replies

5. UNIX for Dummies Questions & Answers

Awk: print all URL addresses between iframe tags without repeating an already printed URL

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)
Discussion started by: striker4o
18 Replies

6. Shell Programming and Scripting

Detect if script starts from queue

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)
Discussion started by: Lord Spectre
16 Replies

7. Shell Programming and Scripting

Reading URL using Mechanize and dump all the contents of the URL to a file

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)
Discussion started by: scott_cog
2 Replies

8. Shell Programming and Scripting

Help with detect with regex and move script

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)
Discussion started by: Simplify
7 Replies

9. UNIX for Advanced & Expert Users

A script to detect system type

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)
Discussion started by: dampio
1 Replies

10. HP-UX

Script to detect time drift

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
mdtool(1)						      General Commands Manual							 mdtool(1)

NAME
mdtool - MonoDevelop Application Runner SYNOPSIS
mdtool <applicationId> ... mdtool setup ... mdtool -q DESCRIPTION
mdtool is a tool that can execute head-less MonoDevelop applications, this can be used for example to do batch compilations without start- ing up the MonoDevelop GUI. USAGE
applicationId ... Runs the specified application. -q Lists available applications. Available Applications The list of applications returned by the option -q might be different depending on which add-ins are installed. gsetup Graphical add-in setup utility. build [options] [project-file] Project build tool. Use this tool to build any solution supported by MonoDevelop (eg. .mds, .sln). If no solution/project is speci- fied then it will pull the first solution it can find in the current directory. You can use this option to build packages in a head-less or batch fashion. Options -c , --configuration:CONFIGURATION Name of the solution configuration to build. -t , --target:TARGET Name of the target: Clean or Build -p , --project:PROJECT Name of the project to build. dbgen Parser database generation tool. project-export Project conversion tool. IDE The MonoDevelop IDE. generate-makefiles <solution-file> [--simple-makefiles] [-d:default-config] Makefile generator tool. This can be used to generate makefiles from any solution supported by MonoDevelop. Options --simple-makefiles , -s Generates set of Makefiles with the most common targets, and a configuration script that does a basic check of package dependencies. Default is to generate Makefile structure based on Autotools with the standard targets and configuration scripts. -d:default-config Configuration that the Makefile will build by default. Other configurations can be selected via the '--con- fig' or '--enable-*' option of the generated configure script. setup command [arg1, .., argn2] Runs the MonoDevelop add-in setup command. You must specify a command to execute. If none is provided a list of commands is dis- played Add-in Commands install (i) [package-name|package-file] Installs an add-in or set of addins. The command argument is a list of files and/or package names. If a package name is provided the package will be looked out in the registered repositories. A specific add- in version can be specified by appending it to. the package name using MonoDevelop.SourceEditor/0.9.1 uninstall (u) [package-name] Uninstalls an add-in. The command argument is the name of the add-in to uninstall. check-install (ci) Checks if a package is installed. If it is not, it looks for the package in the registered repositories, and if found the package is downloaded and installed, including all needed dependencies. update (up) Downloads and installs available updates for installed add-ins. list (l) Prints a list of all installed add-ins. list-av (la) Prints a list of add-ins available to install in the registered repositories. list-update (lu) Prints a list of available add-in updates in the registered repositories. Repository Commands rep-add (ra) url1 [url2 [url2]] Registers an add-in repository. Several URLs can be provided. rep-remove (rr) url1 [url2 [url2]] Unregisters an add-in repository. Several URLs can be provided. rep-update (ru) Updates the lists of addins available in all registered repositories. rep-list (rl) Shows a list of all registered repositories. Add-in Registry Commands: reg-update (rgu) Looks for changes in add-in directories and updates the registry. New add-ins will be added and deleted add-ins will be removed. reg-build (rgu) info [filename|package-name] Prints information about an add-in. Packaging Commands rep-build (rb) path Scans the provided directory and generates a set of index files with entries for all add-in packages found in the directory tree. The resulting file structure is an add-in repository that can be published in a web site or a shared directory. pack (p) file-path Creates an add-in package (.mpack file) which includes all files needed to deploy an add-in. The command parameter is the path to the add-in's configuration file. help (h) [command] Shows help for the given command Debug Commands: dump-file Prints the contents of a registry file for debugging. SEE ALSO
monodevelop(1), mono(1), mcs(1) COPYRIGHT
Copyright (C) 2007 Novell, Inc (http://www.novell.com) MAILING LISTS
Visit http://lists.ximian.com/mailman/listinfo/monodevelop-list for details. WEB SITE
Visit http://www.monodevelop.com for details mdtool(1)
All times are GMT -4. The time now is 07:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy