Visit Our UNIX and Linux User Community

tracing processes in shell

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting tracing processes in shell
# 1  
Old 03-04-2009
tracing processes in shell

Is there a way to have the output from:
strace -p 10101

placed in a text file so we can download it and look it over?

# 2  
Old 03-04-2009
strace -p 10101 2>output.strace

Previous Thread | Next Thread
Test Your Knowledge in Computers #600
Difficulty: Medium
Functions in C do not need be declared before they can be used.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with shell script handling processes

Hello I have a file which has around 120 lines of commands. I am trying to write a shell script like which reads the 'command' file and executes line by line with some additional (common argument) with maximum 6 commands active at a time. Each of these commands when executed takes time... (5 Replies)
Discussion started by: JackyShane_36
5 Replies

2. Shell Programming and Scripting

Wait for one processes to complete in a shell script

Let's say I start process, then start process I call both of them in my How can I make sure that B starts its execution only after finishes. I have to do this in loop.Execution time of may vary everytime. It is a parameterized script. (17 Replies)
Discussion started by: rafa_fed2
17 Replies

3. UNIX for Dummies Questions & Answers

How to kill all processes except shell window?

Hi i was referring to an article given in following website. Basic shell scripting questions | TechInterviews I was surprise to know that i can kill all running processes by using kill o. However when i tried running the command nothing happened. How would i establish this task? my machine... (5 Replies)
Discussion started by: pinga123
5 Replies

4. Shell Programming and Scripting

shell script for getting pid of spawn processes from shell

Hi, I am new this forum. I request you peoples help in understanding and finding some solution to my problem. Here it goes: I need to perform this set of actions by writing a shell script. I need to read a config file for the bunch of processes to execute. I need to fecth the pid of... (4 Replies)
Discussion started by: sachin4sachi
4 Replies

5. Shell Programming and Scripting

turn on shell tracing of a makefile

hey, within a shell script file I know how to turn on tracing using "-x" #!/bin/bash -x now I have a complicated makefile which contains lots of `command`, and i would like to trace these `command`, where shall i put the option "-x"? thanks! (1 Reply)
Discussion started by: patiobarbecue
1 Replies

6. Solaris

Tracing a shell script!!!

Hi all, I would like to know how to trace a shell script.. I meant i used the set -x command and also tried, $ bash -xv <script name> but the problem is am a newbie and did not understand what those + and ++ meant at the beginning of each line...(once the execution of the script starts),... (1 Reply)
Discussion started by: wrapster
1 Replies

7. Programming

Background processes in a dummy shell...

Hey guys, I am writing a very simple dummy shell in C++ and I am having trouble getting a process to run in the background. First of all, the shell has to recognize when I input a "&" at the end of the command, then it has to stick it in the background of the shell. I understand that if I want... (6 Replies)
Discussion started by: icer
6 Replies

8. Shell Programming and Scripting

Shell script creating too many processes.

I have a shell script that I am running every 60 seconds, but it is creating this process to the point that it is causing the server to perfrom poorly. Below is my script, what can I change to prevent this? while true do java -classpath .....( all my classes here) >/dev/null 2>&1 ... (3 Replies)
Discussion started by: Miller_K
3 Replies

9. UNIX for Advanced & Expert Users

Spawing multiple display processes from one shell.

Question: Suppose I want to, from the terminal, use a shell script that would do the display image.jpg command to load multiple images from a directory all at the same time. One terminal, and for example 10 image files. Basically I want to execute 10 different commands simultaniously all from the... (4 Replies)
Discussion started by: JoeTheGuy
4 Replies

10. UNIX for Dummies Questions & Answers

different shell programs,processes

Hi, why do we have 3 types of shell programs. I read that the k-shell is supposed to be the latest replacement of the Bourne shell with additional features. But why call it K-shell when one can call it as a different version of Bourne shell say bourne2. what do we have the C shell for? Is... (1 Reply)
Discussion started by: ramyar
1 Replies

Featured Tech Videos