Search Results

Search: Posts Made By: thms_sum
Forum: Ubuntu 02-13-2008
3,163
Posted By thms_sum
installing hula on ubuntu
i trying to install hula onto my ubuntu but it seems to be not working. i follow through every instructions which i found from the net but is still not working. As i have already install allthe...
8,130
Posted By thms_sum
thanks Lakris!! it works!!! thanks!!! but if...
thanks Lakris!! it works!!! thanks!!!

but if i wanted to grep the input from user and kill the process how should i do it? i try but couldnt work!!!


echo "enter program name"
read input
...
8,130
Posted By thms_sum
i wanted to kill the process from entering the...
i wanted to kill the process from entering the program name instead of the pid, how can i do so?

eg. when i do a "ps -f U username" it will print out all pid,ppid,C,stime,tty,stat,time,cmd. but i...
8,130
Posted By thms_sum
kill process help
i wanted to kill a process by entering the process name. How am i able to kill the process that allows user to enter the process name and kills it?
5,789
Posted By thms_sum
Karthikeyan_113, below is wat i get the error...
Karthikeyan_113, below is wat i get the error when i run the script "head: 2:6563: invalid number of lines"


ubuntu@ubuntu:$ bash test.sh


PID PPID USER CMD ...
5,789
Posted By thms_sum
yup!!! i try use awk when i enter "1" or "2" it...
yup!!! i try use awk when i enter "1" or "2" it will display the whole data. Is there any way that i can limit my search to only the entered digit and display only the row


echo "enter pid"
read...
5,789
Posted By thms_sum
sorry that i ddint specify clearly... is there...
sorry that i ddint specify clearly... is there any way of either using awk or grep to retrive only the result from the user input?

eg. the user enter "1" and it matches from the data file pid...
5,789
Posted By thms_sum
hi Karthikeyan_113! i have error when i run the...
hi Karthikeyan_113! i have error when i run the code.

error shown:
head: unrecongonized option `-:'
5,789
Posted By thms_sum
display result from user input
how can i only display the result according to user input?

For example:
i have a data file(in the attachement), when the user enter "1" it will only display whole records with pid from the data...
3,632
Posted By thms_sum
oic... so is counting from the back of the field...
oic... so is counting from the back of the field that doesnt contain any space!!! Thanks a lot radoulov!!!
3,632
Posted By thms_sum
thanks radoulov!!! its works!!! but can u explain...
thanks radoulov!!! its works!!! but can u explain y got to NF-2?
3,632
Posted By thms_sum
i have attached a sample of my data file. i would...
i have attached a sample of my data file. i would like to only display cpu which is above 0 from the data file. how can go with awk to make it display?
3,632
Posted By thms_sum
print out result from data file
i got a data file which contains all the pid,ppid,user,command,pcpu,start_time,status. I wanted to display out the pcpu which is greater than 0.

i uses awk'{if($5 > 0){print}}' filename.txt but is...
Showing results 1 to 13 of 13

 
All times are GMT -4. The time now is 02:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy