When you send a process in the background you can use the "jobs" command to get its PID. Using this PID you can terminate it by sending signal 15 (or, if this doesn't help, 9).
The display format of "jobs" might differ slightly from OS to OS, so you will have to fine-tune the following sketch to work on yours. I have not tested it yet, so you might have to adapt it a bit too:
Moderator's Comments:
finally i'd like to ask you not to ignore requests by the moderators again. zaxxon has asked you to use CODE-tags and in your next post you didn't use them again. Thank you for your consideration.
This is the script for the cold backup that we get from mycat every time it goes down and up again.
It's a huge email that we get and all within the body.
Here is the dilemma;
I would like to capture just the “”successful start up of the luminis app.””
I don't know if I need to do an “if... (1 Reply)
Hi
I need a bit of help figuring out how to auto start an application on boot on an HPUX. I am a fairly exp AIX guy now working an HP shop. I use to change a /etc/rc... file. Any advise would be a great help TIA. –K
If it is a help the program is a DB and runs as root /usr/ud{##}/startud... (3 Replies)
Hi,
I am trying to write a script to cleanup files in a log directory ..
cd log
find Datk** -mtime +7 -exec rm -f {} \; 2> /dev/null
Have used the above to clean up files in log directory more then 7 days older.
The file can be something like ( auto-generate by some processes and... (2 Replies)
Hi,
I need your guys help again. I run a script which check for some process status in a loop. when i check the process some of the process could throw an error, how can i check that inside my script.
Thanks,
RR (3 Replies)
I am creating a startup script for an application. This application's startup script is in bash. It will also need to call a perl script (which I will not be able to modify) for the application environment prior to calling the application. The problem is that this perl script creates a new shell... (5 Replies)
Good Day Everyone,
I was hoping to get a little insight into an expect script that I've written.
Basically we have this expect script to perform an sftp upload, key authentication is not an option, and sftp is the only method supported by our vendor, thus the need for this.
I want to be... (3 Replies)
Hi all,
I have some sections of a script that I am trying to add error handling to. Basically if it returns any error, just continue. This is for a deployment script that i am writing to assist in the deployment of scripts out to other systems.
At the top of my KSH script i added this... (5 Replies)
Hello fellow UNIX gurus :)
I have a problem regarding the script below:
# Variables used in this shell.
power=0 # Stores squared integer
total=0 # Sum of all squared integers
num=0 # Stores command line arguements
# Provides error handling if command line... (5 Replies)
Hi,
I have ftp script like below
How to insert an error handling, If the transfer failed then send mail to me.
Actually, I just need the script to send an email if the FTP failed. How to put the email script within FTP script?
Thank You
Edy (5 Replies)
With a little bit of work, was able to build a nice "Wuhan Coronavirus Status" app using MQTT and the IoT-OnOff app. More on this technique here:
ESP32 (ESP-WROOM-32) as an MQTT Client Subscribed to Linux Server Load Average Messages
The result turned out nice, I think. I like the look and... (10 Replies)
Discussion started by: Neo
10 Replies
LEARN ABOUT DEBIAN
cgi::application::dispatch::regexp
CGI::Application::Dispatch::Regexp(3pm) User Contributed Perl Documentation CGI::Application::Dispatch::Regexp(3pm)NAME
CGI::Application::Dispatch::Regexp - Dispatch requests to CGI::Application based objects using regular expressions
SYNOPSIS
use CGI::Application::Dispatch::Regexp;
CGI::Application::Dispatch::Regexp->dispatch(
prefix => 'MyApp',
table => [
'' => { app => 'Welcome', rm => 'start' },
qr|/([^/]+)/?| => { names => ['app'] },
qr|/([^/]+)/([^/]+)/?| => { names => [qw(app rm)] },
qr|/([^/]+)/([^/]+)/page(d+).html?| => { names => [qw(app rm page)] },
],
);
DESCRIPTION
CGI::Application::Dispatch uses its own syntax dispatch table. "CGI::Application::Dispatch::Regexp" allows one to use flexible and
powerful Perl regular expressions to transform a path into argument list.
DISPATCH TABLE
The dispatch table should contain list of regular expressions with hashref of corresponding parameters. Hash element 'names' is a list of
names of regular expression groups. The default table looks like this:
table => [
qr|/([^/]+)/?| => { names => ['app'] },
qr|/([^/]+)/([^/]+)/?| => { names => [qw(app rm)] },
],
Here's an example of defining a custom 'page' parameter:
qr|/([^/]+)/([^/]+)/page(d+).html/?| => { names => [qw(app rm page)] },
COPYRIGHT & LICENSE
Copyright Michael Peters and Mark Stosberg 2008, all rights reserved.
SEE ALSO
CGI::Application, CGI::Application::Dispatch
perl v5.14.2 2011-11-26 CGI::Application::Dispatch::Regexp(3pm)