Hey people
I am currently working on a print spooler for unix over a network. I need help regarding the status of the printer. Is there any way to know when the printer has finished a previous job, so that the next job from the queue can be processed. Also is there any other way to print other... (0 Replies)
Hi All,
In my project i have two process runs in the back end.
Once i start my project, and execute the command ps, i get below output:
PID TTY TIME CMD
9086 pts/1 0:00 ksh
9241 pts/1 0:02 java
9240 pts/1 0:00 shell_script_bg
java with 9241 PID is the main... (4 Replies)
Hellow Experts
i have one problem.
i run one script in backgroun.
and i want to kill that script with only script name.....
so what's the solution..
for your info
my script name is "testscript" n it contains "sleep 100"
thanks.... (16 Replies)
Hi,
On my Linux machine, using Bash, I sometimes run into a situation where doing the following does not seem to work at all.
kermit@fastbox ~ $ ps -A | grep firefox-bin
5375 ? 00:06:57 firefox-bin <defunct>
5624 ? 00:00:00 firefox-bin
kermit@fastbox ~ $ kill 5624... (7 Replies)
I have a script that conducts some SSH calls and I would like to capture the child info so that I can do a sleep and then a cleanup to make sure they do not stay out there as ghosts.
I was told I could do something like this...
#!/bin/sh
for m = job1, job2, job3
x=1... (4 Replies)
Hi,
I wrote a script to kill a process id.
I am able to kill the PID only if I enter the root password in the middle of the execution because I did not run as root i.e after i run the script from the terminal, instead of killing directly, it is killing only after entering the pass when it... (12 Replies)
Hi there !!!
I am writing a script to kill the pids on different linux boxes :cool:
the output of my command gives the pids running on that box, but how can I kill all the pids without looping? :confused:
Code:
ssh $i ps -fu $USER | grep ManServer | grep -v grep | awk '{print $2}' | kill
... (4 Replies)
Hello Friends,
I've been trying to write a one line which checks java processes and filter them for a user (testuser) and then check process arguments with PARGS command and then check if there is certain patterns exists in pargs output then kill the process.
I have tried the following so... (2 Replies)
I created a program to kill long running pid processes.
I am getting the following error message:
-f command cannot be found.
I also want to count the number of pids that are killed and append the results to a text file. I am new to shell script programming.
1.The first part of code... (10 Replies)
Discussion started by: dellanicholson
10 Replies
LEARN ABOUT DEBIAN
audio::mpd::common::time
Audio::MPD::Common::Time(3pm) User Contributed Perl Documentation Audio::MPD::Common::Time(3pm)NAME
Audio::MPD::Common::Time - class representing time of current song
VERSION
version 1.120881
DESCRIPTION
Audio::MPD::Common::Status returns some time information with the "time()" accessor. This information relates to the elapsed time of the
current song, as well as the remaining and total time. This information is encapsulated in an Audio::MPD::Common::Time object.
An Audio::MPD::Common::Time object does not update itself regularly, and thus should be used immediately.
Note: one should never ever instantiate an Audio::MPD::Common::Time object directly - use the mpd modules instead.
ATTRIBUTES
$time->time;
The time passed to the constructor, used to compute all others values (see methods). It is the time value (on the "time" line) of what the
MPD server returns to the status command. Defaults to "0:0".
METHODS
my $str = $time->sofar;
Return elapsed $time ("minutes:seconds" format).
my $str = $time->left;
Return remaining $time ("minutes:seconds" format).
my $str = $time->left;
Return total $time ("minutes:seconds" format).
my $percent = $time->percent;
Return elapsed $time (percentage, 1 digit).
my $secs = $time->seconds_sofar;
Return elapsed $time in seconds.
my $secs = $time->seconds_left;
Return remaining $time in seconds.
my $secs = $time->seconds_total;
Return total $time in seconds.
my $mins = $time->sofar_mins;
Return minutes part of elapsed $time.
my $secs = $time->sofar_secs;
Return seconds part of elapsed $time.
my $mins = $time->left_mins;
Return minutes part of remaining $time.
my $secs = $time->left_secs;
Return seconds part of remaining $time.
my $mins = $time->total_mins;
Return minutes part of total $time.
my $mins = $time->total_secs;
Return seconds part of total $time.
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-04-01 Audio::MPD::Common::Time(3pm)