09-04-2019
Thanks Neo. I'm going to go back and review the system profiler and my results. I initially ran the system profiler full detail and did a search for this msg (AppleCamIn: power_on_hardware) and others. Looking at the profiler output but didn't see it using find. This msg and others I listed appear when I'm switching the audio and video inputs during a video conference session.
7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have an expression as follows:-
a=`expr ${i} + ${j}` >> $log_file 2>&1
Here, if any of the values i or j or both happens to be empty then the "expr" returns error as
"expr: 0402-050 Syntax error." My problem is I am not able to re-direct this error to the log file. Its is getting... (4 Replies)
Discussion started by: rony_daniel
4 Replies
2. Shell Programming and Scripting
Hi,
I have a script to compare 2 files.
file1=$1
file2=$2
num_of_records_file1=`awk ' END { print NR } ' $file1`
num_of_records_file2=`awk ' END { print NR } ' $file2`
i=1
while
do
sed -n "$i"p $file1 > file1_temp
sed -n "$i"p $file2 > file2_temp
diff file1_temp... (5 Replies)
Discussion started by: autosys_nm
5 Replies
3. Shell Programming and Scripting
Hi there,
We have 2 apps on our customers machines that can both open files with the same file extension. Is there any way via shell commands to set which application should be the default?
Essentially, I'm hoping to replicate Get Info > Open With > Change All using a shell script, but I just... (0 Replies)
Discussion started by: davewg
0 Replies
4. Shell Programming and Scripting
Hello, currently we are executing a .sh from terminal.
The current .sh looks like this:
#!/usr/bin/env bash
/Users/user/my.app/Contents/MacOS/my &
--
Now, we also need to run a third line in the .sh - It's a command line application that I need to run when I execute the above .sh... (0 Replies)
Discussion started by: yoyoyo777
0 Replies
5. UNIX for Dummies Questions & Answers
#!/bin/ksh -x
cd /tmp/tj
ftp -n servername.com << DONE
user username password
as
put test.log
quit
close
DONE
echo "testing..."
sh -x scriptname, and it shows all, but username, as, put, quit, close, DONE.
how can i see those ? (1 Reply)
Discussion started by: tjmannonline
1 Replies
6. Shell Programming and Scripting
Hi guys,
been scratching round the forums and my mountain of resources.
Maybe I havn't read deep enough
My question is not how sed edits a stream and outputs it to a file, rather something like this below:
I have a .txt with some text in it :rolleyes:
abc:123:xyz
123:abc:987... (7 Replies)
Discussion started by: the0nion
7 Replies
7. Cybersecurity
What is the best practice to allow a 3rd party health monitoring app to read the messages file. Since messages is a system file and is owned by root the app cannot read the file. I don't want to run the app as root so how should I allow the app to read the file. The read function is actually built... (2 Replies)
Discussion started by: slwiley
2 Replies
LEARN ABOUT DEBIAN
lm-profiler
LM-PROFILER(8) System Manager's Manual LM-PROFILER(8)
NAME
/usr/sbin/lm-profiler - laptop mode profiler
SYNOPSIS
/usr/sbin/lm-profiler
DESCRIPTION
This manual page documents briefly the /usr/sbin/lm-profiler command. lm-profiler is a tool for profiling disk operations. It is a part of
laptop mode tools and is useful only in relation to rest of laptop mode tools. It helps you to detect programs and services that use up
system resources and that cause disk activity, and it allows you to disable them when laptop mode is active.
When you start lm-profiler, it will execute a "profiling run", which can take some time. Start lm-profiler when you are working on batter-
ies, preferably, because that will allow it to analyze the actual situation that it is supposed to optimize. During the profiling run, you
can use your system normally; however, any disk activity caused by your actions will end up in the profiler's results. When the profiling
run is finished, you will be presented with a list of programs that deserve your attention, either because they listen on a network (which
is not usually useful when you are working offline) or because they caused disk activity in a disk-spindown-unfriendly pattern. When lm-
profiler can guess an init script that belongs to a program, it presents you with the opportunity to disable the program when you are work-
ing on battery. It does this by placing a link to the init script in /etc/laptop-mode/batt-stop. Any programs that lm-profiler cannot find
an init script for is simply reported, so that you can stop the program manually if you want to.
WARNING ABOUT DISABLING PROGRAMS: It may not be safe to disable some programs. They may be needed for proper operation of your system. Dis-
able services only if you know what they do and why you don't need them.
FILES
/etc/lm-profiler.conf
lm-profiler retrieves its profiling rules from this file.
SEE ALSO
lm-profiler.conf(8).
laptop-mode.conf(8).
daemons.conf(8).
AUTHOR
This manual page was written by Bart Samwel (bart@samwel.tk) and Jan Polacek (jerome@ucw.cz) for the Debian system (but may be used by oth-
ers). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2
any later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
LM-PROFILER(8)