03-25-2019
Hi drew...
Tell us what your project is or what you are trying to achieve then perhaps we can help you with it as a complete proper entity.
Some of the snippet code threads you have started are not portable at all, 'xinput' for example will not work on at least APPLE gear and CygWin for Windows as they don't have it.
'systemctl' will not work on many *NIX like flavours as they don't have it either. I can't test any of your code on this MacBook Pro without rebooting into Linux Mint 19.
This can become tedious...
EDIT:
Just checked and Linux Mint 19 does NOT have 'xprintidle' either on a default install.
Last edited by wisecracker; 03-25-2019 at 06:58 AM..
Reason: See EDIT:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Does anyone know if there is a UNIX-tool available that constantly will check if (some specific) deamons are running and will notify (via email) if one has failed/stopped?
I searched the web, but so far didn't find anything. (3 Replies)
Discussion started by: W2W
3 Replies
2. Shell Programming and Scripting
Hi ,
I have a csh code below which check the process if it's running.
Can any expert advise me on the following:
1) what does this notationmean ">!" and how is it different from the append ">" notation ?
2) how does "setenv" work in this code ?
# Check whether there is a running... (3 Replies)
Discussion started by: Raynon
3 Replies
3. UNIX and Linux Applications
Hi
I would like to check if an instance of a script is already running.
I've seen many different examples, but I haven't the slightest idea as to how to do this.
Can you please help.
Thank you. (5 Replies)
Discussion started by: ladyAnne
5 Replies
4. UNIX for Dummies Questions & Answers
Hi
What is the best command to check if a particular process is running in a linux server or not
To check any java process, I use the below command.
ps -ef |grep jvm
When I execute the above command, it lists me all the processess . The above command should ideally return only the... (6 Replies)
Discussion started by: vr3w3c9
6 Replies
5. Shell Programming and Scripting
How to check what cron is scheduled to run? I don't want to modify anything. Thanks (1 Reply)
Discussion started by: stevensw
1 Replies
6. Shell Programming and Scripting
Hi,
I had search the web for a script to download email, but failed to found one.
I need a bash or perl script that will check for email originating from an address such as john@rambo.com and download the .zip attachment into a specified folder.
Anyone could assist or give me some... (1 Reply)
Discussion started by: mynullvoid
1 Replies
7. Shell Programming and Scripting
Happy New Year
Is there a quick way to check to see if a script is already running.
I want to put in a check in the script to exit, if already running.
Currerntly i can only think of doing it the following way.
# ps -ef | grep -i 3_HOUSEKEEPING_FFTVTL_TO_FFTDSSU_DUPLICATION.ksh |... (5 Replies)
Discussion started by: Junes
5 Replies
8. Shell Programming and Scripting
Hi,
Is there any specific command to use to check only say Running jobs via autorep or similar command for Autosys? (0 Replies)
Discussion started by: sidnow
0 Replies
9. Shell Programming and Scripting
I have a script on a Linux box which scp the files to windows server without any issues. but there are time frames where the windows server will not be available due to maintenance. hence I need to check if the remote location is available before running the scp command.
scp... (3 Replies)
Discussion started by: gpk_newbie
3 Replies
10. Shell Programming and Scripting
Hello,
Could someone do the following bash ubuntu script for me? I have 5 screen processes of bot:
SCREEN -dmS Xbot_instance_1 php core.php -i 1
SCREEN -dmS Xbot_instance_2 php core.php -i 2
SCREEN -dmS Xbot_instance_3 php core.php -i 3
SCREEN -dmS Xbot_instance_4 php core.php -i 4
... (2 Replies)
Discussion started by: kotch
2 Replies
LEARN ABOUT DEBIAN
html::template::pro
HTML::Template::Pro(3pm) User Contributed Perl Documentation HTML::Template::Pro(3pm)
NAME
HTML::Template::Pro - Perl/XS module to use HTML Templates from CGI scripts
SYNOPSIS
It is moved out and split.
See "SYNOPSIS" in HTML::Template::SYNTAX for introduction to HTML::Template and syntax of template files.
See "SYNOPSIS" in HTML::Template::PerlInterface for perl interface of HTML::Template, HTML::Template::Expr and HTML::Template::Pro.
DESCRIPTION
Original HTML::Template is written by Sam Tregar, sam@tregar.com with contributions of many people mentioned there. Their efforts caused
HTML::Template to be mature html tempate engine which separate perl code and html design. Yet powerful, HTML::Template is slow, especially
if mod_perl isn't available or in case of disk usage and memory limitations.
HTML::Template::Pro is a fast lightweight C/Perl+XS reimplementation of HTML::Template (as of 2.9) and HTML::Template::Expr (as of 0.0.7).
It is not intended to be a complete replacement, but to be a fast implementation of HTML::Template if you don't need querying, the extended
facility of HTML::Template. Designed for heavy upload, resource limitations, abcence of mod_perl.
HTML::Template::Pro has complete support of filters and HTML::Template::Expr's tag EXPR="<expression>", including user-defined functions
and construction <TMPL_INCLUDE EXPR="...">.
HTML::Template work cycle uses 2 steps. First, it loads and parse template. Then it accepts param() calls until you call output().
output() is its second phase where it produces a page from the parsed tree of template, obtained in the 1st step.
HTML::Template::Pro loads, parse and outputs template on fly, when you call $tmpl->output(), in one pass. The corresponding code is written
in C and glued to Perl using Perl+XS. As a result, comparing to HTML::Template in ordinary calls, it runs 10-25 times faster. Comparing to
HTML::Template with all caching enabled under mod_perl, it still 1-3 times faster. At that HTML::Template caching requires considerable
amount of memory (per process, shareable, or on disk) to be permanently filled with parsed trees, whereas HTML::Template::Pro don't
consumes memory for caches and use mmap() for reading templates on disk.
Introduction to HTML::Template and syntax of template files is described in HTML::Template::SYNTAX. Perl interface of HTML::Template and
HTML::Template::Pro is described in HTML::Template::PerlInterface.
SEE ALSO
HTML::Template::SYNTAX, HTML::Template::PerlInterface.
Progect page is http://html-tmpl-pro.sourceforge.net
(and http://sourceforge.net/projects/html-tmpl-pro)
Original modules are HTML::Template, HTML::Template::Expr. Their progect page is http://html-template.sourceforge.net
BUGS
See "BUGS" in HTML::Template::PerlInterface
AUTHOR
I. Vlasenko, <viy@altlinux.org>
with contributions of Bruni Emiliano, <info at ebruni.it> Stanislav Yadykin, <tosick at altlinux.ru> Viacheslav Sheveliov <slavash at
aha.ru> Shigeki Morimoto <shigeki.morimoto at mixi.co.jp> Kirill Rebenok <kirill at rebenok.pl>
COPYRIGHT AND LICENSE
Copyright (C) 2005-2009 by I. Yu. Vlasenko. Pieces of code in Pro.pm and documentation of HTML::Template are copyright (C) 2000-2002 Sam
Tregar (sam@tregar.com)
The template syntax, interface conventions and a large piece of documentation of HTML::Template::Pro are based on CPAN module
HTML::Template by Sam Tregar, sam@tregar.com.
This library is free software; you can redistribute it and/or modify it under either the LGPL2+ or under the same terms as Perl itself,
either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available.
perl v5.14.2 2012-02-28 HTML::Template::Pro(3pm)