10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
topfunc()
{
top
}
topfunc
Here i used the top command inside a function,and i called the function.
when executing this bash file i get all the process which are using by the kernel
i just want to display only the first 5 running process.
is it possible? (7 Replies)
Discussion started by: Meeran Rizvi
7 Replies
2. Shell Programming and Scripting
Hi ,
i have a file wich have 50+ of numbers like :
0.014544106
0.005464263
0.014526045
0.005484374
0.014539412
0.005467600
0.014558349
0.005452185
i would like to display the list from the 6th bit to the end for example
0.005452185 (should become) 2185.
I've tried with ... (4 Replies)
Discussion started by: Board27
4 Replies
3. Shell Programming and Scripting
I'm trying to create a ksh script to do the following:
1) Ask the user what process they want to search for.
2) Have the script read the input as a variable and use it to search for the process.
3) Display the current time & date, the working directory of the process, and finally display the... (6 Replies)
Discussion started by: seekryts15
6 Replies
4. Shell Programming and Scripting
Store args passed in array but not the first 2 args.
# bash
declare -a arr=("$@")
s=$(IFS=, eval 'echo "${arr}"')
echo "$s"
output:
sh array.sh 1 2 3 4 5 6
1,2,3,4,5,6
Desired output:
sh array.sh 1 2 3 4 5 6
3,4,5,6 (2 Replies)
Discussion started by: iaav
2 Replies
5. UNIX for Advanced & Expert Users
how to display pid and other parameters of current process in linux platform ?
i know it can be done through a linux commmand ps -F
but i want it done through kernel program
thanks in advance (1 Reply)
Discussion started by: vaibhavkorde
1 Replies
6. Shell Programming and Scripting
Hello,
I have to create shell script being myself real novice in scripting...
I was looking on the Internet for some script examples, but I don't have the basic understanding of the shell. I was trying to do something with “ps” command without success.
For exemple total number of... (2 Replies)
Discussion started by: mr_awd
2 Replies
7. Programming
Hi , Could you tell me if I am right
1. Using fork(), pipe(), execlp() and dup() (see man 2 dup), write a C program executing the command ps -j in a parent process, displaying the result in a child process.
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
#include <unistd.h>... (7 Replies)
Discussion started by: remid1985
7 Replies
8. AIX
On AIX 5.2, I use "ps -ef " command to display the process status, the field of command looks like: , the detailed contents are:
# ps -ef |grep rtesfmrt
Display:
osa 32455 1 0 18:20 - 1:57
The origianl format shoud be:
osa 32455 1 0 18:20 - 1:57 ... (2 Replies)
Discussion started by: Frank2004
2 Replies
9. UNIX for Dummies Questions & Answers
hi,
everytime i use the "ps -elf" command to monitor the processes, i always encounter one problem.
some process names are just to long and was truncated.
what command should i use to display the full command/process that is running.
pls help me. urgent.
thanks:rolleyes: (1 Reply)
Discussion started by: champion
1 Replies
10. UNIX for Dummies Questions & Answers
when i am giving ls command it displays all the files and directories how can we the list of directories in the current directory? (3 Replies)
Discussion started by: indianguru
3 Replies