Sponsored Content
Full Discussion: nice (user command)
Top Forums UNIX for Dummies Questions & Answers nice (user command) Post 39673 by OllieTech on Wednesday 27th of August 2003 11:34:22 AM
Old 08-27-2003
Quick question,

The 'ps' command only gives a snapshot of the current process utilization. If this user is running this process outside of the time that the snapshot is done, won't this be inaffective in determining the user/process being run with a particular nice value.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

process nice level command line vs cron

Under, Solaris 10 I have the following problem: A script executed at command line runs with nice level 0, as expected. Same script started under (user) crontab runs with nice level 2. I would prefer it run at 0. Is this possible? If so, how? Thanks. (0 Replies)
Discussion started by: henrydark
0 Replies

2. UNIX for Dummies Questions & Answers

is ‘nice’ command useful on a multi-CPU UNIX system?

Can someone tell me this. thanks (1 Reply)
Discussion started by: xoxouu
1 Replies

3. UNIX for Advanced & Expert Users

Nice the process on user level

Hi there, I was wandering, if it is possible to nice set of process on user level. Say, I have user1,user2 if user1 spawns 12 process and user2 spwans 15 process, Is there a way can I change the priority of any process started by user1 to 5 and viz-a-viz user2 to 20 Thanks in advance (3 Replies)
Discussion started by: braindrain
3 Replies

4. Programming

nice command and nice() system call

Hi I want to implement the nice command in the shell that I am building. I came to know that there is a corresponding nice() system call for the same. But since I will be forking different processes to run different commands typed on the command prompt, is there any way I can make a command... (2 Replies)
Discussion started by: tejbuch
2 Replies

5. UNIX for Dummies Questions & Answers

The nice command

hello everybody: I have some job running on tru64 system and Im the root, due to limited resources I end up with my job ( vdump) for example taking the lowest share, I researched the nice command on the net, but couldnt get enough info, can I use it to already running process or I only use it... (1 Reply)
Discussion started by: aladdin
1 Replies

6. UNIX for Advanced & Expert Users

Is nice command a myth?

Hello, Some guy said to me that using the nice command to decrease the priority of a process is a myth, that the operating system corrects the priorities as the processes need cpu. Is this true? (4 Replies)
Discussion started by: psimoes79
4 Replies

7. Shell Programming and Scripting

Call Nice command (priority) from /bin/ksh

Hello, I am just starting with shell scripting, as everyone will soon see from my question. What I'm trying to do is call the Nice command to set the script process priority from /bin/ksh. The difference is I'm running it not directly through the shell, but through Bigfix (very similar to... (3 Replies)
Discussion started by: solly119
3 Replies

8. Shell Programming and Scripting

How to use nice command?

Dear Friends, I have a directory when i take du of that directory it takes alot of memory and cpu and I/O, i want to use nice to run my script that have du command slowly so it won't take I/O and cpu, please suggest. (6 Replies)
Discussion started by: learnbash
6 Replies

9. BSD

Very high nice percentage in top command

Hello Folks, Recently our FreeBSD 7.1 i386 system became very sluggish. Nothing much is happening over there & whatever is running takes eternity to complete. All the troubleshooting hinted towards a very high nice percentage. Can that be the culprit? Pasting snippets of top command,... (7 Replies)
Discussion started by: vibhor_agarwali
7 Replies

10. Shell Programming and Scripting

Wall command with nice text formatting

with using wall command, how can i have a carriage return in my broadcast message. i try to broadcast from a file, i were to use "cat myfile | wall" for broadcasting. but when the message broadcast somehow the format run away. this the text in my file: line 1 line 2 line 3 when broadcast ... (3 Replies)
Discussion started by: lsy
3 Replies
AJ-SNAPSHOT(1)							   User Manuals 						    AJ-SNAPSHOT(1)

NAME
aj-snapshot SYNOPSIS
aj-snapshot [ -adfjqrx ] [ -p polling_interval ] [ -i client_name ]... [ FILE ] DESCRIPTION
Aj-snapshot is a small program that can be used to make snapshots of the connections made between JACK and/or ALSA clients. Because JACK can provide both audio and MIDI support to programs, aj-snapshot can store both types of connections for JACK. ALSA, on the other hand, only provides routing facilities for MIDI clients. If you call aj-snapshot without any options, aj-snapshot will store all current ALSA and JACK connections to FILE. The file will be an XML file, and you can use a text-editor if you want to edit it manually. OPTIONS
-a or --alsa Only store or restore ALSA midi connections. Also works in daemon mode. -d or --daemon Run aj-snapshot in daemon mode. Aj-snapshot will first try to restore the connections from the specified snapshot file. After this, it will wait for new ports to be registered with ALSA or JACK. Every second by default, aj-snapshot will check if new ports were registered in ALSA or JACK. When this is the case, it will try to restore the connections from your snapshot file. If you start aj- snapshot in daemon mode, you don't need to specify the -r,--restore flag as it is implied anyway. If you send the HUP signal to the daemon, the daemon will reload the snapshot file. This gives you the possibility to trigger a con- nections restore. For an example on how to do this, see the EXAMPLES section below. When you combine the daemon mode with the -x,--remove option, sending the HUP signal to the daemon will clear all connections before restoring. When the JACK server is stopped (or crashes) while aj-snapshot runs in daemon mode, aj-snapshot will try to keep running. When the JACK server is started again later, aj-snapshot will reattach automatically and restore your connections when needed. -f or --force When you try to save a snapshot over an existing file, aj-snapshot will ask you if you want to overwrite that file. With this option, you can force aj-snapshot to overwrite that file. -j or --jack Only store or restore JACK audio and midi connections. Also works in daemon mode. -p interval Whenever a program registers a port with ALSA or JACK, aj-snapshot will see if there are connections in the snapshot file that should be restored. By default, aj-snapshot will check (poll) if there are new ports every second (1000 milliseconds). With this option you can choose how often aj-snapshot should check for new ports. The value of interval should be specified in milliseconds. -q or --quiet Don't print any information about the connections that are stored or restored. -r or --restore When you specify the -r flag, aj-snapshot will try to restore all ALSA and JACK connections from FILE. (without it, aj-snapshot will try to store connections to FILE). You can combine this option with the -a or -j options, if you want to restore ALSA or JACK con- nections only. -x or --remove The -x option can be used when restoring connections, or when running in daemon mode. With this option, aj-snapshot will remove all existing connections before restoring the snapshot file. When you combine it with the -a or -j option, only the connections for the specific subsystem (ALSA or JACK) will be removed. Without the -x option, aj-snapshot will try to restore connections on top of the connections that are already active. There is one more way in which you can use the -x option. If you call aj-snapshot without the FILE argument, you can use the -x option to remove all existing ALSA and JACK connections (without doing anything else). As before you can combine it with the -a or -j options. -i client_name You can use this option to name a client that should be ignored by aj-snapshot. You should write the exact name of the client after the -i option. If that name contains spaces, or other characters that have special meaning to the shell, you should put the name between single (safest) or double quotes. To know the exact name of a client, you could save a snapshot and look up the name in the snapshot file. If you want to ignore multiple clients, you have to repeat the -i option with different client names (the maximum is 50 clients). -h or --help Print a short help message EXAMPLES
aj-snapshot test.snap Stores a snapshot of all current ALSA and JACK connections to a file called "test.snap". If that file already exists, aj-snapshot will ask you if you want to overwrite that file. aj-snapshot -r test.snap Restores all ALSA and JACK connections from the file "test.snap". This will leave any other active connections intact. aj-snapshot -xr test.snap Restore all ALSA and JACK connections from the file "test.snap", but remove all existing connections first. aj-snapshot -a test.snap Store all current ALSA connections to "test.snap". aj-snapshot -rj test.snap Restore all JACK connections from "test.snap". This means that ALSA connections that might be stored in the file won't be restored. aj-snapshot -qfj test.snap Store all current JACK connections to "test.snap". Don't print any info on standard out (be quiet), and forcibly overwrite "test.snap" if it already exists. aj-snapshot -ax Remove all ALSA connections aj-snapshot -d test.snap & Run aj-snapshot in daemon mode and make it a background process (&). Whenever a new ALSA or JACK client registers a port, connec- tions from test.snap will be restored. aj-snapshot -djx test.snap & Run aj-snapshot in daemon mode for the JACK connections in "test.snap". Remove all existing JACK connections whenever the connec- tions from test.snap are restored. 1) aj-snapshot -d test.snap & 2) aj-snapshot -f test.snap 3) kill -HUP $(pidof aj-snapshot) 1) First start up aj-snapshot in daemon mode with the file "test.snap". 2) After some connection changes, a second instance of aj-snapshot (which is not run in daemon mode) overwrites that file with the new connections state. 3) Send the HANGUP signal to the daemon to make it reload the file with the new connections state (see 'man kill', and 'man pidof'). AUTHOR
Written by Lieven Moors and Jari Suominen REPORTING BUGS
To report aj-snapshot bugs, or if you have feature requests: <http://sourceforge.net/projects/aj-snapshot/> Aj-snapshot home page: <http://aj-snapshot.sourceforge.net/> Clone the git repository: git clone <git://gitorious.org/aj-snapshot/aj-snapshot.git> COPYRIGHT
Copyright (C) 2009-2012 Lieven Moors and Jari Suominen. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Linux NOVEMBER 2011 AJ-SNAPSHOT(1)
All times are GMT -4. The time now is 06:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy