Search Results

Search: Posts Made By: gvsreddy_539
1,569
Posted By gvsreddy_539
Hey ZB, that works like a charm. using "...
Hey ZB,
that works like a charm.
using " instead of ' solved my issue.

Thanks.

--Venkat.
1,569
Posted By gvsreddy_539
Sed substistution
Folks,
I am trying to put in a sed command in my script to update the curent time value. It throws me syntax error..but If i execute the same command with the value substituted from outside, it...
19,633
Posted By gvsreddy_539
Thanks guys. Murphy, yes..better I should...
Thanks guys.

Murphy, yes..better I should code my expect script correct.
Below is the peace of code @ the end of my .exp script.

******************************************

expect "*Next\]>...
19,633
Posted By gvsreddy_539
Thanks Cameron. But the problem is my script is...
Thanks Cameron.
But the problem is my script is not coming out of that expect call.
exit inside expect is not working for me.

I just want to comeout of expect call after 2 mins and proceed...
19,633
Posted By gvsreddy_539
Time out in shell script for a stament/line
Folks,
In shell script, can I mention a timeout for a command execution, afterwhich I want to exit from that particular line and proceed furthur.

I have part of my script as below:...
6,748
Posted By gvsreddy_539
Thanks Portor. Yes, I see different "cksum"...
Thanks Portor.

Yes, I see different "cksum" for 2 files. but still I am not understanding why they r differing though the content is same?

Any more clues?
6,748
Posted By gvsreddy_539
Diff command problem
Folks,
I am Diff'ing 2 identical files..and the result is, it shows all the lines from 2 files (saying nothing is being matched).

If I copy the content from 1 of the file and paste in a newly...
7,032
Posted By gvsreddy_539
Wow..this is another cool feature..I tried it now...
Wow..this is another cool feature..I tried it now and works.

Thanks radoulov.
So, then we can use any seperator in Sed?
7,032
Posted By gvsreddy_539
Thx Portor. I am prefixing it with \ now. ...
Thx Portor.
I am prefixing it with \ now.
Please note that need to prefix with 2 slashes.

************************************
bash-2.05$ export VAL=\\/home\\/venkat
bash-2.05$ echo $VAL...
7,032
Posted By gvsreddy_539
Env Variable substituion in Sed (-s option)
Folks,
I've been trying to use the ENV variable with slashes(/) in its value inside the sed substitution..

Sed 's/myval/'$MYVAL'/' file1 >> file.tmp

If MYVAL=<sometext>, it works.
if...
14,071
Posted By gvsreddy_539
Thanks Vino.. Could u pls give me ur mail-id...
Thanks Vino..

Could u pls give me ur mail-id (either office / personel).
14,071
Posted By gvsreddy_539
Vino, Then we ll filter it out using 1 more...
Vino,
Then we ll filter it out using 1 more grep level as below.

pstree -p 3887 | grep -o '([0-9]*)'|grep -o '[0-9]\{1,5\}'|xargs kill -9


I think above one should be ok to filter out that...
14,071
Posted By gvsreddy_539
Thx Vino..
Thx Vino..
14,071
Posted By gvsreddy_539
Vino, Ur command simply worked well.. ...
Vino,
Ur command simply worked well..
Thanks a lot.

I just put in a simple way.

pstree -p <pid>|grep -o '[0-9]\{2,5\}' | xargs kill -9

(pid : pid of ur start script)

u...
14,071
Posted By gvsreddy_539
Let me make it clear. I want 2 avoid...
Let me make it clear.

I want 2 avoid manullly picking up those ids and killing.

if its less,manual is ok.

but is its more (say > 20), it takes bit time time.right?

instead we can process...
14,071
Posted By gvsreddy_539
Vino, Thx for the quick reply. pstree lists...
Vino,
Thx for the quick reply.
pstree lists all the pids of sub processes with pnames.

anyhow,we need 2 again manually pick-up those pids and kill.right?

after pstree...we can procees that...
14,071
Posted By gvsreddy_539
Is there any cmd to kill a process including its childs ( or sub processes spawned by
Dear Unix Gurus,
Here is my query.
If i start a script,it inturn calls many other scripts ..and most of them continue to run in parallel.

Suppose,if i want to stop my script for some...
Showing results 1 to 17 of 17

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