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
pi_stress
pi_stress(8) Linux System Administrator's Manual pi_stress(8)
NAME
pi_stress - a stress test for POSIX Priority Inheritance mutexes
SYNOPSIS
pi_stress [-i|--inversions inversions] [-t|--duration seconds] [-g|--groups groups [-d|--debug] [-v|--verbose] [-s|--signal] [-r|--rr]
[-p|--prompt] [-m|--mlockall] [-u|--uniprocessor]
pi_stress -h|--help
DESCRIPTION
pi_stress is a program used to stress the priority-inheritance code paths for POSIX mutexes, in both the Linux kernel and the C library. It
runs as a realtime-priority task and launches inversion machine thread groups. Each inversion group causes a priorty inversion condition
that will deadlock if priority inheritance doesn't work.
OPTIONS
-i n|--inversions=n
Run for n number of inversion conditions. This is the total number of inversions for all inversion groups. Default is -1 for infi-
nite.
-t n|--duration=n
Run the test for n seconds and then terminate.
-g n|--groups=n
The number of inversion groups to run. Defaults to 10.
-d|--debug
Run in debug mode; lots of extra prints
-v|--verbose
Run with verbose messages
-s|--signal
Terminate on receipt of SIGTERM (Ctrl-C). Default is to terminate on any keypress.
-r|--rr
Run inversion group threads as SCHED_RR (round-robin). The default is to run the inversion threads as SCHED_FIFO.
-p|--prompt
Prompt before actually starting the stress test
-u|--uniprocessor
Run all threads on one processor. The default is to run all inversion group threads on one processor and the admin threads (report-
ing thread, keyboard reader, etc.) on a different processor.
-m|--mlockall
Call mlockall to lock current and future memory allocations and prevent being paged out
-h|--help
Display a short help message and options.
CAVEATS
The pi_stress test threads run as SCHED_FIFO or SCHED_RR threads, which means that they can starve critical system threads. It is advisable
to change the scheduling policy of critical system threads to be SCHED_FIFO prior to running pi_stress and use a priority of 10 or higher,
to prevent those threads from being starved by the stress test.
BUGS
No documented bugs.
AUTHOR
Clark Williams <williams@redhat.com>
Nov 27, 2006 pi_stress(8)