Command line (top-like) ACPI monitoring?

Does anyone know of a 'top' style command line program for monitoring ACPI? I'm thinking of writing one, perhaps adding support for manual CPU frequency scaling etc, but I'd like to see if anything is out there first.

Which part of ACPI do you mean?
For monitoring power consumption, there is powertop, which also shows info about the CPU's current multiplier and sleep state. The cpufreq-utils are used to manage the kernel's behavior concerning changing the multiplier, there is also a userspace governor if you want to control it manually. yacpi is a CLI tool to show battery status. There are many GUI tools that deal with these functions too, i.e. the Xfce or Gnome power managers. Buttons are managed by acpid.

Similar Messages

  • I need help in creating Firefox profiles directly from command line (script like) without having to use the profile manager step-by-step window

    is there a way to provide command line arguments when invoking profile manager so that I can seamlessly create a profile from one invocation? Passing profile name and profile location. I have to bypass user interaction with profile manager window. Thanks.

    http://developer.mozilla.org/en/docs/Command_Line_Options#User_Profile

  • Sncli - Simplenote Command Line Interface

    I cooked up a command line interface to Simplenote. It's written in Python and uses Urwid for console management.
    sncli has a full terminal "gui" mode with vi-like keybinds (configurable!) and also supports typical command line operations useful for scripting. More importantly it supports both online and offline modes.
    https://github.com/insanum/sncli
    AUR: sncli-git

    Hi Aqua,
    Well there are command line tools like tmadmin, tmboot, etc., that allow you to monitor and administer Tuxedo applications and for FML/FML32 based services there is a command line tool called ud (or ud32 for FML32 based services) that allow creating an FML/FML32 buffer and sending it to a service and printing its response. But if you mean a general command line based client application, then the answer would be no.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • BitBucket Command-Line Interface

    To all you BitBucket users out there, I've written a command-line interface to the service modeled after the github-gem CLI for github. Source code is at http://bitbucket.org/zhemao/bitbucket-cli and there is a package in the AUR https://aur.archlinux.org/packages.php?ID=53839.

    Hi Aqua,
    Well there are command line tools like tmadmin, tmboot, etc., that allow you to monitor and administer Tuxedo applications and for FML/FML32 based services there is a command line tool called ud (or ud32 for FML32 based services) that allow creating an FML/FML32 buffer and sending it to a service and printing its response. But if you mean a general command line based client application, then the answer would be no.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • How to give filename at Command Line

    Hi,
    what do I do to make sure that when my user gives a command line argument like "-Dn" and then a filename , the system writes to that file.
    I have everything working properly and can achieve the same thing using a properties file, but do not know what to do in this case. Here is a snippet from my code:
    if(args.equalsIgnoreCase("-Dn")) {
         obj.setLogFileName(); //what to do here???
    The setLogFileName method resides in a class which writes to the disk and is working properly
    Thankx in advance...

    If you are usgin the command line syntax you are describing, like "java MyClass [arguments]" you can just go on traversing the argument list:
    String fileName = args[0];
    However, you can also do this as follows:
    java -Dlogfile=<the path> MyClass [arguments]
    In that case the <the path> string is available as a system property named "logfile", and can be retrieved as this:
    String fileName = System.getProperty( "logfile" );

  • Command line treating a *.class file

    I don't know if its possible, but can a jar be set up to run like a normal executable at the command line? Like dir, ls, tar, gzip, etc... So that the command line doesn't have to be built with the first java XXXClass
    So:
    %> java XXXClass
    becomes
    %> XXXClass
    Is this possible outside of creating a .sh or .bat file that forwards the correct parameters. More or less a wrapper around the command:
    java XXXClass <params>
    Is this possible to accomplish for a jar? If so how?
    What I'm after is not to double click the jar file, though that would be optional too. What I would like is to open a command prompt and just type the file name and have it run like a normal executable without:
    %>java -jar
    prefix.
    L-

    Yes and no.
    It is possible, on windows at least, to create a .bat file that will call java on your jar, and then to register that as the default handler for .jar files
    HOWEVER
    Jar files contain no information whatsoever about what external classpath is needed (ie other jars/projects) which makes this relatively useless in a large project
    I don't know if its possible, but can a jar be set up
    to run like a normal executable at the command line?
    Like dir, ls, tar, gzip, etc... So that the command
    line doesn't have to be built with the first java
    XXXClass
    So:
    %> java XXXClass
    becomes
    %> XXXClass
    Is this possible outside of creating a .sh or .bat
    file that forwards the correct parameters. More or
    less a wrapper around the command:
    java XXXClass <params>
    Is this possible to accomplish for a jar? If so how?
    What I'm after is not to double click the jar file,
    though that would be optional too. What I would like
    is to open a command prompt and just type the file
    name and have it run like a normal executable
    without:
    %>java -jar
    prefix.
    L-

  • Comparing input from command line to a String token problem

    Hi,
    I want to compare my input from the command line to a token.
    my command line looks like "java myProgram george bush president washington"
    The next command could be "java myProgram geoge president washington"
    Basically I have a text file which has a name, job and location field. The text file looks as follows
    jim, farmer, chicago
    paul, builder, texas,
    george bush, president, washington
    I am using string tokenizer with a "," as my field delimiter.
    My lecturer wants me to take the input from the command line so applets are out of the question. However even though there are 3 fields, args.length() could equal 4 because "george bush" is only the name but george is args[0] and bush is args[1]. Is there a way to have a delimiter on the command line instead of a space such a ",". Can anyone see any other way around this?
    Thanks

    1982. The year of.....wait for it.....
    Jack And Diane
    Tainted Love
    Key Largo
    Open Arms
    Do You Believe In Love
    Gloria
    Working For the Weekend and of course the GREATEST song of 1982...
    drum roll please......
    Heat Of The Moment.

  • Advice on constructi​ng a test engine and formatting a spreadshee​t test file to perform command line interface testing on a product through telnet or serial interface

    Advice on constructing a test engine and formatting a spreadsheet test file to perform command line interface testing on a range of products through telnet or serial interface and output pass/fail results.

    Hello j. smith,
    TestStand gives you the ability to create "sequence files" which are lists of tests to be run sequentially or in parallel. These tests can be written in any language: LabVIEW VIs, C/C++ DLLs, EXEs, ActiveX objects, .NET Assemblies, etc.
    You can run your TestStand sequence files from a command-line prompt using the following syntax:
    \bin\SeqEdit.exe" /quit -run
    This will launch the TestStand Sequence Editor (and optionally prompt you for TestStand login information if you have this configured), run your sequence file, then exit.
    If you're using the TestStand process model, it can output your results to a report file or database if you configure this. To use a TestStand process mo
    del to execute your sequence file, use the following syntax:
    \bin\SeqEdit.exe" /quit -runEntryPoint
    Here's an example:
    C:\>"C:\Program Files\National Instruments\TestStand 3.0\bin\SeqEdit.exe" /quit -runEntryPoint "Single Pass" "C:\Program Files\National Instruments\TestStand 3.0\Examples\Demo\C\computer.seq"
    Note that multiple sequences and sequence files can be specified on the command line.
    TestStand supports remote sequence execution using DCOM (Distributed COM), which is an east way to remotely execute tests. But as for running tests or commands through a telnet or serial interface, you would have need to check Windows documentation on how to execute command-line remotely like this.
    David Mc.
    NI Applications Engineer

  • Specifying the container to connect to from command line utilities (sqlplus/expdp etc)

    Hi,
    To kick off this forum I've been playing around with 12c multitenant/pluggable features and I've a general question about connections to the container database - it seems from everything i tried so far (and everything I've read) that there is no way to connect to a container database without going through a sqlnet connection. For example:
    export ORACLE_HOME, ORACLE_SID etc
    sqlplus username/password -- this can only connect to the container database? (once you are in you can alter session to switch to the plugable database but can;t do it directly in the connection)
    to connect to a plugged in database you always have to go through sqlnet
    sqlpus username/password@pluggable
    there is no option to say something like:
    export ORACLE_SID=container
    export ORACLE_CONTAINER=pluggable
    and then do sqlplus username/password ?
    or some extra command line switch like
    export ORACLE_SID=container
    sqlplus -container=pluggable username/password
    Is that understanding correct or have i missed something in the documentation?
    Regards,
    Harry
    http://dbaharrison.blogspot.com

    Hello Richard,
    In Oracle Multitenant the only way to connect to a PDB is by specifying a service.
    However, there is a shortcut that you can use - TWO_TASK, which you will find documented elsewhere.
    This allows you to specify the default service to be used - think of it as being appended silently to your username/password specification. I hope this helps.
    Regards, Patrick

  • Wrong to process command line args in a loop?

    I tried to process my command line args like this:
    int[] rgb = {0,0,0};
              for(int i=1;i<3;i++)
                   rgb[i-1] = Integer.parseInt(args);
    I enter six args where args 1 to 3 are ints and not zero, but rgb[2] always ends up being zero. I had to do away with the loop and write out three assignment statements, but if I had ten or more args that would be a headache! Does anyone know why this is happening? I'm using JDK 1.3.1_15.

    for(int i=0;i<3;i++)
       rgb[i] = Integer.parseInt(args);
    Look closely and make sure you understand the differences between my code and yours:
    * i starts at 0, not 1
    * rgb uses i for index, not i - 1.
    Why would you have rgb using i -1 and args using i?
    Now, if you have an arg [i]before the RGB args, then it would make sense for args' index to be different than rgb's. In that case, you might have i-1 and i, or i and i+1, etc. depending on how you structure your loop.
    The main problem is that you had i=1; i<3, which will go through the loop body for i=1 and i=2 only. Make sure you understand why.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • About command line arguement

    I want to take in a list a of words from a file as a command line argument, like the following input to the command line:
    hello
    hi
    cat
    dog
    fish
    how this should be done?I only know I could use a single line when specifing command line argument,how can I use multiple lines?
    thanks.

    A command line is only a single line. You specify it
    when program execution is started:
    java TestProgram arg1 arg2 ...
    If you want to specify multiple lines of data then
    this becomes program input and you must create you own
    input loop in your program. Something like:
    BufferedReader input = new BufferedReader( System.in
    String line = "";
    while ( (line = in.readLine() ) != null )
    System.out.println( line );
    Or create a small simple class that reads the file but into an array instead of a single line, and call the main method of your class with that array.
    //H&aring;kan

  • Can apple mail be used from the command line?

    Can the Mac Mail application be used from the OSX command line?  Has anyone installed
    a command-line, Linux-like mail application to run on OSX?

    I don't know about the Mail app, but have you tried installing and configuring postfix? Here is a link to a blog with some details for a postfix solution.

  • Charset encoding of command-line arguments

    I have a java application which accepts a string from command line arguments like this
    java myapp <arguments>What will be the charset encoding of the arguments? It may contain some foreign characters.
    The default charset encoding of my JVM?? is windows-31j.
    System.out.println(Charset.defaultCharset().name());
    // output: windows-31jI need to convert the arguments into bytes array but i don't know what charset to specify in arguments.getBytes()?
    Please help.

    Kyowa wrote:
    I need to convert the arguments into bytes array but i don't know what charset to specify in arguments.getBytes()?
    Please help.The arguments are presented as String data, which should always be in UNICODE, regardless of the encoding used by the platform. There could be problems with conflict between the command line shell and the JVM with non-Latin characters, which would be a matter of configuration, but the string you get should be UNICODE.
    When you chose to convert a UNICODE string to a byte array or stream then you use whatever encoding you want the bytes to be in. In the Java model, it's characters stored as bytes which are encoded in various ways. The encoding encodes to and from the UNICODE characters used in Strings.

  • Command line vs. Dtmail

    We are having a problem with mail (it looks like the mail from the GUI is being rejected by our firewall software/configuration). When I send mail from the command line outside (like to my id at comcast.net) it works OK. When I try to send it from the mail GUI (dtmail) it fails to get to comcast. Our question is what's the difference between the two. Why would command line get through, but the GUI mail get rejected by our firewall.

    DadeTorino wrote:
    I copied project files on another computer (with netbeans). If I run the project from netbeans or from command line all works. If I double click on jar file, the program starts but it doesn't behave as aspected.This is probably a problem with the JVM version on the target machine.
    Coping the same jar on a third computer (without netbeans), it works from command line but it doesn't work at all double clicking on it. It says java.lang.classNotFoundException.If your running in Windows, then your types have not been registered properly. You can solve this in one of 2 ways:
    1 - associate the JAR type of files with javaw and add the parameter variables as appropriate or
    2 - check the JVM and see what version you are running on, if it's the one you want, then you can uninstall and then reinstall and it should fix your problem. Else just install the version you need for your app.
    On both machines, your problem should be fixed by installing/reinstalling the correct version.

  • Running a function from a powershell script from the command line

    Rather than creating several scripts each with one function, I have one script with has several functions.... I would like to call the script and select the function i want to use from the command line.
    so far, if i change directory to that of the script i can call the function by doing this:
    cd c:\myscripts
    . .\mytestscript.ps1; myfunction
    this works fine.... i have also tried, what I would like to achieve is calling it like this
    c:\myscripts\mytestscript.ps1; myfunction
    however, i am trying to run this as part of an MDT task sequence, my command line looks like this and using the ; myfunction at the end doesn't work.
    powershell.exe -ExecutionPolicy Bypass %SCRIPTROOT%\CustomScripts\mytestscript.ps1; myfunction
    how can i adapt my command line so that it will successfully call the function within my script?
    thanks
    Steve

    Rename the file from ps1 to psm1 and create a powershell module that contain multiple functions. A module will autoload like the built-in modules.
    Placement of the psm1 file is important for Powershell to find and autoload it.
    The file name and folder name must be the same, for example MyModule.psm1 should be in the folder:
    user\documents\windowspowershell\modules\mymodule
    Windows PowerShell Modules
    http://msdn.microsoft.com/en-us/library/dd878324(v=vs.85).aspx
    PS C:\> get-childItem env:PSModulePath
    Name Value
    PSModulePath C:\Users\User\Documents\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

Maybe you are looking for

  • How can you record stream from a webcam like YouTube does it

    We need to create a webcam stream recorder with FMS which should be able to record stream in some predefined quality (128000/bandwidth,95/quality) and will work also in the situation when the user doesn't have enough bandwidth to transfer this stream

  • HT201177 cant turn on my imac just a black screen which i never shut down to begin with

    help i walked in to find my imac with a black screen and i cant turn it back on has this happened to anyone else? how do i get it back on

  • SQL query SUM and AVG

    Hi all, I think I'm being really stupid but I'm having SQL query issues. I have a table with lots of lines of transactions which all refer to different stores, for example: Store..............._Sales_............._Month_ Reading............200k......

  • Count(*) from ResultSet

    hi i want to calculate how many count is produced when a query is executed in result set But im getting error i pasted my coding below can any one help me <%!int tot;%><% DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver()); Connectio

  • Adjusting for parallel issues

    How do I crop when I want to straighten lines of buildings so to overcome the appearance of converging point?  I am trying to figure a way to grab a cropping handle and drag the image to make an unequal crop to overcome the lack of parallel from the