Sponsored Content
Top Forums Shell Programming and Scripting Htop - How to detect exact command running at background Post 303004358 by baris35 on Saturday 30th of September 2017 10:50:35 AM
Old 09-30-2017
Htop - How to detect exact command running at background

Hello,
I am running a python file from terminal and I wish to see which code is running at background. When I use htop, I see just a few commands, unable to see entire command.


Code:
htop > report
nano report

Output:
Code:
^[[?1049h^[[1;34r^[(B^[[m^[[4l^[[?7h^[[?1h^[=^[[?25l^[[39;49m^[[?1000h^[[39;49m^[(B^[[m^[[H^[[2J^[[2d  ^[[36m1  ^[[39m^[(B^[[0;1m[^[$
^[[10d^[(B^[[0m^[[30m^[[42m  PID USER      PRI  NI  VIRT   RES   SHR S ^[[30m^[[46mCPU% ^[[30m^[[42mMEM%   TIME+  Command^[[K
^[[11d^[[30m^[[46m10735 root       20   0 1746M  358M  8044 S 633.  1.1  0:38.28 ffmpeg -y -v error -i /var/www/gr/ru$
^[[34dF1^[[30m^[[46mHelp  ^[[39;49m^[(B^[[mF2^[[30m^[[46mSetup ^[[39;49m^[(B^[[mF3^[[30m^[[46mSearch^[[39;49m^[(B^[[mF4^[[30m^[[46mFi$
^[[?1l^[>

Following parts of ffmpeg line is not shown by htop. Just showing "ffmpeg -y -v error -i /var/www/gr/ru"
Could you please let me know is there a way to see entire command?


Thanks
Boris
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

running in background

i have a script called server.sh. how to run this script in backgroung using nohup command (5 Replies)
Discussion started by: ali560045
5 Replies

2. UNIX for Dummies Questions & Answers

how to detect my script is already running

I have a script which must not be run more than once at any given time. THis script will be scheduled to run every 20 mins as a cron job. In my script can i have logic to say if this script is already running from the previous cron, then exit. How do i go about doing that. If you describe the... (11 Replies)
Discussion started by: rmulchandani
11 Replies

3. UNIX for Dummies Questions & Answers

Running the Script in Background.

Gurus, Pls. help on this to run the script in background. I have a script to run the informatica workflows using PMCMD in script. Say the script name is test.sh & Parameters to the script is Y Y Y Y The no of parameters to the bove script is 4. all are going to be a flags. Each flag will... (2 Replies)
Discussion started by: prabhutkl
2 Replies

4. UNIX for Dummies Questions & Answers

kill a command I am running / then put it to background

I have a command running in the foreground (and so my term window is locked up) and I want to kill it, then resume it in the background and go home. It is creating a zip file, and the file will be written to the current directory - no std in / std out issues. How do I do this? Kill it with a... (3 Replies)
Discussion started by: hindesite
3 Replies

5. Shell Programming and Scripting

Running in background

Hello, I was trying to make some processes to run at background and went to a problem. First I tried just to loop in one line something like this: for i in {1..10}; do echo 'hello world' &; done; but it pops a syntax error, so I tried several ways to fix it but wasn't able to understand... (2 Replies)
Discussion started by: Rash
2 Replies

6. Shell Programming and Scripting

command to see process running at background

Hi , I want to see all the background process that are running in unix box machine...please guide me is there any specific command for that..since I am executing some scripts at background..!!:confused: (1 Reply)
Discussion started by: nks342
1 Replies

7. Shell Programming and Scripting

How to know the exact running time of script!

Hi All, newbie here, I'm just wondering how can i know the exact running time of my script? Please advise, THanks, (1 Reply)
Discussion started by: nikki1200
1 Replies

8. Solaris

running command in background

hi all i am running following command ufsdump 0ubf 512 /dev/rmt/0cbn /database/backup2/rman_backup/level1 >> /database/backup2/backup_tape/level1_rman_03aug12 2>&1; i want to run it in background how can i do it in this i am generating logs for backup. the problem occurs when i am... (3 Replies)
Discussion started by: nikhil kasar
3 Replies

9. UNIX for Dummies Questions & Answers

Sudo ssh with command running in background

I am trying to run a command. This is one of my attempts: for i in fileservera; do ssh -t $i 'sudo ls /';doneThis works, and I see the directories. However, what I want to do now is start a process on the remote server such as /usr/bin/connectproc -standalonesudo /usr/bin/connectproc... (1 Reply)
Discussion started by: newbie2010
1 Replies

10. Shell Programming and Scripting

Command to get exact tomcat process I am running ignoring other java process

Team, I have multiple batchjobs running in VM, if I do ps -ef |grep java or tomcat I am getting multiple process list. How do I get my exact tomcat process running and that is unique? via shell script? (4 Replies)
Discussion started by: Ghanshyam Ratho
4 Replies
FAKENECT-RECORD(1)						libfreenect manual						FAKENECT-RECORD(1)

NAME
fakenect-record - program to save dumps from kinect to file SYNOPSIS
fakenect-record [-h] [-ffmpeg] [-ffmpeg-opts options] outputdir DESCRIPTION
fakenect-record dumps the output of the kinect in outputdir folder. It saves the acceleration, depth, and rgb data as individual files with names in the form "TYPE-CURRENTIME-TIMESTAMP" where: * TYPE is either (a)ccel, (d)epth, or (r)gb * TIMESTAMP corresponds to the timestamp associated with the observation (or in the case of accel, the last timestamp seen) * CURRENTTIME corresponds to a floating point version of the time in seconds. The purpose of storing the current time is so that delays can be recreated exactly as they occurred. For RGB and DEPTH the dump is just the entirety of the data provided in PPM and PGM formats respectively (just a 1 line header above the raw dump). For ACCEL, the dump is the "freenect_raw_tilt_state". Only the front part of the file name is used, with the rest left undefined (extension, extra info, etc). A file called INDEX.txt is also output with all of the filenames local to that directory to simplify the format (e.g., no need to read the directory structure). Once started, the program will continue to acquire data from the kinect. When you want to stop it, hit Ctrl-C and the signal will be caught, runloop stopped, and everything will be stored cleanly. OPTIONS
-ffmpeg If present, send the the video stream to ffmpeg -ffmpeg-opts options When using ffmpeg, specify the options to be used with it. If unspecified, it will use the options "-aspect 4:3 -r 20 -vcodec msmpeg4 -b 30000k" -h Display the command-line help SEE ALSO
fakenect(1) OpenKinect 2012-05-21 FAKENECT-RECORD(1)
All times are GMT -4. The time now is 11:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy