10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
to kill a program in bash, for instance 'mousepad' I use
kill $(pidof mousepad);
or
pkill mousepad
But it only works if we use another bash window;
If it is started from the same bash, that does not work:
#mousepad;kill $(pidof mousepad);
In this case, it looks like mousepad hangs... (7 Replies)
Discussion started by: arpagon
7 Replies
2. Shell Programming and Scripting
I have written the following bash function prArgv
Suppose the calling sequence is as follows
prArgv VAL1 VAL2 DESC VAL3 VAL4 v2d1 s4 p15
The call will look at the tag k1v2, add the numbers together, in this case 2+1=3
This means that the function will look at the first 3 user arguments... (1 Reply)
Discussion started by: kristinu
1 Replies
3. SCO
I have two SCO servers. On one I can logon to the gui via console with no problem. However, on the other I can logon to the gui but after a few seconds it kicks me back out to the prompt. I asked previous admin about this and he seems to think its a license issue? (7 Replies)
Discussion started by: herot
7 Replies
4. UNIX for Dummies Questions & Answers
i'm writing a code that passes the shells process id and the time set till the pid is killed.
the argument from the terminal looks like this:
./timeout $$ 4
now $$ specifies the shell pid, how can insert that to kill(pid,signum) as an parameter? (0 Replies)
Discussion started by: l flipboi l
0 Replies
5. Shell Programming and Scripting
Hi
we are calling kill -9 $pid command from bash script it gives below output, but we need to hide the output. i tried /dev/null but ni luck. is there any alternate way to schive this.
../kill_scr.sh: line 42: 1891 Killed /tmp/anr_rest_mul_wc.sh
Soalris 10.
... (2 Replies)
Discussion started by: sachinbutala
2 Replies
6. Shell Programming and Scripting
Hi all,
How to:
Run a bash script, display on the screen and save all information in a file including error information.
For example:
I have a bash script called test.sh
now I want to run the test.sh and display the output on the screen and save the output including error info to a file.
... (1 Reply)
Discussion started by: Damon sine
1 Replies
7. Shell Programming and Scripting
I'm writing a bash script to log some selections from a sensors output (core temp, mb temp, etc.) and I would also like to have the current cpu usage as a percentage. I have no idea how to go about getting it in a form that a bash script can use. For example, I would simply look in the output of... (3 Replies)
Discussion started by: graysky
3 Replies
8. UNIX for Dummies Questions & Answers
I have a process that I'd like to kill. Doing a "ps -fu myusername" gives me:
UID PID PPID C STIME TTY TIME CMD
myusername 5443 1 0 10:05 ? 00:00:00 /bin/sh /some/path/crap.sh -s /yet/another/path/parentProcess
myusername 5593 5443 0 ... (2 Replies)
Discussion started by: mrwatkin
2 Replies
9. HP-UX
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
10. UNIX for Dummies Questions & Answers
Anybody can help me? I need to know a specified folder diskspace usage, that's how much bytes that folder and its files/folders below spend on my storage.
Thanks (2 Replies)
Discussion started by: nusajunus
2 Replies