Sponsored Content
Top Forums Shell Programming and Scripting How to detect url in use in a script? Post 303027095 by nezabudka on Sunday 9th of December 2018 08:02:19 AM
Old 12-09-2018
If there is gui. insert before each line ((ffmpeg...
Code:
notify-send "Your message, eg start urlX"

in linux command notify-send there is in package libnotify (rhel)
or libnotify-bin (debian)
This User Gave Thanks to nezabudka For This Post:
 

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
README(1)						User Contributed Perl Documentation						 README(1)

NAME
dunst - dmenu-ish universal notification system SYNOPSIS
dunst [-geometry geom] [-fn font] [-nf/nb/lf/lb/cf/cb color] [-to/nto/lto/cto secs] [-format fmt] [-key key] [-mod mod] [-mon n] [-v] DESCRIPTION
dunst is a lightweight notification-daemon for the libnotify. dunst displays messages received via dbus or as commandline argument in a fashion similar to dmenu. OPTIONS
-h/--help display help message. -fn font defines the font or font set used. -lb/nb/cb color defines the background color of low/normal/critical messages. -lf/nf/cf color defines the foreground color of low/normal/critical messages. -to secs defines the default timeout. Can be (partially) overridden by the following options. -lto/nto/cto secs timeouts for low/normal/critical messages. -key key close window by pressing key. See also -mod. -mod modifier defines the modifier used in conjunction with -key. Available modifiers are: ctrl, shift, mod1-mod4. This option can be used multiple times to combine modifiers. -format fmt defines the format of the message. See FORMAT. -mon n show the notification on monitor n. -s sort messages by urgency. -ns don't sort messages by urgency. -geometry [{width}]x{height}][+/-{x}+/-{y}] The geometry of the message window. The height is measured in lines everything else in pixels. If the width is omitted but the height is given ("-geometry x2"), the message window expands over the whole screen (dmenu-like). If width is 0, the window expands to the longest message displayed. A positive x is measured from the left, a negative from the right side of the screen. Y is measured from the top and down respectevly. see also EXAMPLES show the notification on monitor n. -v Increase verbosity. Can be used multiple times. -config file use alternative config file. FORMAT
fmt is a string containing placeholders. The placeholders will be replaced with the corresponding text, or if the text is not present, nothing. Possible placeholders are: %a appname %s summary %b body %i iconname (including its path) %I iconname (without its path) COLORS
Every option that needs a color as argument accepts #RGB, #RRGGBB and X color names. NOTIFY-SEND dunst is able to get different colors for a message via notify-send. In order to do that you have to add a hint via the -h option. notify-send -h string:fgcolor:#ff4444 notify-send -h string:bgcolor:#4444ff -h string:fgcolor:#ff4444 CONFIGURATION
An example configuration file is included (usually /usr/share/doc/dunst/dunstrc.example). To change the configuration, copy this file to ~/.config/dunst/dunstrc and edit it accordingly. AUTHOR
written by Sascha Kruse <knopwob@googlemail.com> COPYRIGHT
copyright 2012 Sascha Kruse and contributors (see LICENSE for licensing information) If you feel that copyrights are violated, please send me an email. SEE ALSO
dwm(1), dmenu(1), twmn(1), notify-send(1) perl v5.14.2 2012-06-27 README(1)
All times are GMT -4. The time now is 09:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy