05-30-2007
psme output:
tstuser 63122 rating
oppuser 12134 javapps
meaning: first column is the user , second is the process id, third is the application name
Cheers.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I just want to know how If it's possiple to define 2 variable using foreach command ???
I have directory inside that directory around 1000 file, I want to rename all of this files to something I have it in a list. Example :-
------This is what in my directory----------
d1
d2... (14 Replies)
Discussion started by: geoquest
14 Replies
2. Shell Programming and Scripting
Hello Guys,
I am refering to this great forum once again for help.
After various attempts at this, I am still failing to obtain the desire effect.
I have to write a perl script which:
1- reads two values from the user (e.g name & passwd)
2- check each value against a file containing the... (7 Replies)
Discussion started by: bionicfysh
7 Replies
3. UNIX for Dummies Questions & Answers
Good morning
I would like kindly to ask you to help me with creation of alias with awk command.
alias a="awk {print $1 "| " $2 "| " $3 "| " $4 "| " $5 "| " $6 "| " $7 "| " $8 "| " $13 "| " }"
there is some error but I don't find it please explain me what is error and how can be avoid... (5 Replies)
Discussion started by: papa1980
5 Replies
4. Shell Programming and Scripting
$ echo $(tty|sed 's#/*/##')
pts/0
$ who | grep $(tty|sed 's#/*/##')
grep: 0652-033 Cannot open 0551-011.
grep: 0652-033 Cannot open Standard.
grep: 0652-033 Cannot open input.
grep: 0652-033 Cannot open is.
grep: 0652-033 Cannot open not.
grep: 0652-033 Cannot open a.
grep: 0652-033 Cannot... (2 Replies)
Discussion started by: wrl
2 Replies
5. Shell Programming and Scripting
Hi,
I am trying to write the following command as an alias in my .bashrc file.
bjobs -u all | awk '{if (NR > 1) {username++;}}END{{print"\nJOBS BY USER:\n"} for (i in username) {print username,i;}{print"\n Total Jobs=",NR-1,"\n" }}'
The command simply puts how many jobs each user is... (2 Replies)
Discussion started by: jacekmaciek
2 Replies
6. Shell Programming and Scripting
Hi to all,
I'm facing some problems when adding an alias like:
#alias list="ls -al | awk '{ print $1, $2, $3, $4, (($5/1048576))"\t", $6, $7, $8, $9 }'"
and when I enter:
#list
I get:
Syntax Error The source line is 1.
The error context is
{ print >>> , <<<
awk:... (3 Replies)
Discussion started by: enux
3 Replies
7. Shell Programming and Scripting
Hello Friends is it possible to define an alias (say named as COMMAND) to pick a part of line and change my directory to picked. For example
when I type
COMMAND mfong@vhl.gov.nd/homefolder/hhk/ADS/
it would do
cd /homefolder/hhk/ADS/ (1 Reply)
Discussion started by: rpf
1 Replies
8. Shell Programming and Scripting
Hello,
I know this is a situation about the single quote and double literal, but I could not figure out after many search.
I need to loop through thousands of different BACs sequencing to optimize kmer individually.
IN=/PATH/TO/INPUT/FILES
for sample in S{01..1096}
do
run_program... (9 Replies)
Discussion started by: yifangt
9 Replies
9. Shell Programming and Scripting
Hi,
I am using the unix script to send a report on daily basis using the mail command. Here the sender name is appearing as myname i.e. chandru (userid@machine.unix.domain.com).
Is there any way to change sender name as a user defined name? example i need to change it to SupportTeam... (1 Reply)
Discussion started by: schandru
1 Replies
10. Shell Programming and Scripting
Hello,
I am running under ubuntu18.04
My question is about awk.
inputfile
0wo010011oasasds sdjhsdjh=, u12812888
8jsjkahsjajnsanakn akjskjskj=, suhuhuhwx
kskkxmsnnxsnjxsnjxsnjjnjjdi=, 22878ssssss
Below code adds consecutive numbers when string = is found
run_code:
awk -F'=' -v OFS='='... (4 Replies)
Discussion started by: baris35
4 Replies
LEARN ABOUT DEBIAN
mpd-dynamic
MPD-DYNAMIC(1p) User Contributed Perl Documentation MPD-DYNAMIC(1p)
NAME
mpd-dynamic - a dynamic playlist for mpd
VERSION
version 1.120610
DESCRIPTION
This program implements a dynamic playlist for MPD, build on top of the Audio::MPD perl module.
MPD (music player daemon) is a cool music player, but it lacks a dynamic playlist. A dynamic playlist is a playlist that will change
automatically over time. In particular, it will remove already played songs (keeping at most a given number of songs) and add new songs to
the playlist so it never fall short of songs.
Note that since mpd is a daemon needing no gui to work, "mpd-dynamic" is also a daemon. That is, it will fork and do all its work from the
background. This way, you can fire "mpd" and "mpd-dynamic" and forget completely about your music (especially since "mpd-dynamic" is a
low-resource program): it will just be there! :-)
USAGE
mpd-dynamic [options]
OPTIONS
General behaviour
You can customize the usage of mpd-dynamic with the following options:
-o[ld] <old>
Number of old tracks to keep in the backlog. Defaults to 10.
-n[ew] <new>
Number of new tracks to keep in the to-be-played playlist. Defaults to 10.
-s[leep] <sleep>
Time spent sleeping (in seconds) before checking if playlist should be updated. Default to 5 seconds.
-d[ebug]
Run mpd-dynamic in debug mode. In particular, the program will not daemonize itself. Default to false.
-e[ncoding] <encoding>
Print debug messages with this encoding. Since mpd-dynamic is meant to be a silent daemon, this option will not be used outside of
debug mode. Default to "utf-8".
--version
--usage
--help
--man
Print the usual program information
Note however that those flags are optional: since "mpd-dynamic" comes with some sane defaults, you can fire "mpd-dynamic" as is.
Ratings
You can also take advantage of ratings if you want. With those options, songs need to have at least a given rating (or no rating yet) to be
inserted: this way, you will only listen to your favorite songs!
Ratings can be created / updated with "mpd-rate".
Note that if you supply a non-existant rating db-file, the rating mechanism will be ignored. The following options control the rating
mechanism:
-r[atings] <ratings>
The path of a db file with the ratings per song. The keys are the song path (relative to MPD root), and the value is an integer (the
rating). Default to "~/.mpd/ratings.db".
-m[in[imum]] <min>
The minimum rating for a song to be inserted in the playlist. Default to 4.
AUTHOR
Jerome Quelin
COPYRIGHT AND LICENSE
This software is copyright (c) 2007 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-03-01 MPD-DYNAMIC(1p)