Search Results

Search: Posts Made By: ennstate
5,544
Posted By ennstate
Thanks, I have locate command, I ll check the man
Thanks, I have locate command, I ll check the man
5,544
Posted By ennstate
Caching find command
Hi,

Is there a command which caches the results of the find, so the subsequent searches for file/file-pat are faster.

Thanks,
Nagarajan G
4,514
Posted By ennstate
Thanks for the pointing me to the right...
Thanks for the pointing me to the right direction,

Now I am exploring the option of using UMLGraph, which is text based, also uses Graphviz & Gnuplot.
4,514
Posted By ennstate
Parse Log & Create Flow Diagram - Ideas/Tools
Hi,

I would like to develop a script which parses the log file and generates a flow diagram ( graphical display ).

We have an application, for understanding the sequence of functions call made,...
8,923
Posted By ennstate
Good one! I didn't think about using exit when i...
Good one! I didn't think about using exit when i call the routine.

Thanks,
Nagarajan G
8,923
Posted By ennstate
How to get the return code of subroutines executed as standalone as command line in Perl ?
How to do I get the return code of a subroutine in a perl module if invoke the subroutine as standalone,

I have an module say TestExit.pm and in that i have a subroutine say myTest() which is...
13,195
Posted By ennstate
Counting the ldapsearch results
Hi,

Is there way to count the number of results in the ldapsearch, looking at the manpages i dont see an option,

Using the following ldapsearch command to list attribute (User-Id=100) under my...
Forum: IP Networking 02-13-2010
3,122
Posted By ennstate
Douglas Comer - Books
Hi,

I've many my colleagues suggesting Comers books for TCP/IP, though I haven't read I still have a strong opinion for the same

Thanks,
Nagarajan G
1,974
Posted By ennstate
v_test=`echo $v_output | awk -F"\" '{print...
v_test=`echo $v_output | awk -F"\" '{print $5}'|sed 's/ //g' `

this command give me null value.

can someone help me with correct awk command?[/QUOTE]

The catch here is "\test" being...
2,355
Posted By ennstate
Try something like this, echo "Are you Bill...
Try something like this,

echo "Are you Bill ?" | sed 's/.* \(.*\) ?/My name is \1/g'


Thanks
Nagaraj G
4,535
Posted By ennstate
man lsof
Hi,
Am not sure if the unix version has "lsof" command,but if you have then I guess i should be quite easier

man lsof

Thanks
Nagarajan G
55,706
Posted By ennstate
Using exec & pipe
Hi,
I managed to get that working using exec & pipes.The following is the script which i hope to work for you as well,

#!/bin/bash
#Objective : To redirect the stdout & stderr to two different...
55,706
Posted By ennstate
Use exec
I could do that with "exec", but I couldn't get that work to write to a file and stdout simultaneously,

Here is the snippet,

#!/bin/bash
exec 1>/tmp/log
log() {
echo `date` : "$@"
}
log...
1,534
Posted By ennstate
:) Thanks for your information Nagarajan G
:) Thanks for your information

Nagarajan G
27,466
Posted By ennstate
I meant the keystrokes for getting ^M is ( you...
I meant the keystrokes for getting ^M is ( you have to Hold Ctrl key and press v and then M )
Thanks
Nagarajan G
27,466
Posted By ennstate
I doubt that the pattern you are matching.Did you...
I doubt that the pattern you are matching.Did you try,
:%s/$/^M/g
Where,^M - Ctrl-v+Ctrl-M

Thanks
Nagarajan G
1,534
Posted By ennstate
Using ypcat
Did you try,
ypcat passwd | grep -i <user>

Thanks
Nagarajan G
3,106
Posted By ennstate
You have not mentioned how many iterations of top...
You have not mentioned how many iterations of top should run,so this will keep blocking on that statement.
Also the assignment line is incorrect.

Try this approach,
set -A proc $(top -n 5 |...
3,271
Posted By ennstate
Using rsh/ssh with command argument
You can make use of "rsh" or "ssh",they accept commands to be executed on the remote host.

Thanks
Nagarajan G
2,589
Posted By ennstate
What about this approach? #!/bin/ksh ...
What about this approach?


#!/bin/ksh
count=0
found=0
for PAT in cable wire wireless ; do
((count=count+1))
if [[ $(grep -wc "$PAT" /tmp/111 ) -gt 0 ]] ; then
((found=found+1))
...
74,453
Posted By ennstate
Try providing full path instead of relative path
In case the script is executed from the different directory,then "$i" will expand to MQ.log and not the full path to it,so it throws an error.Either you can try running the script from the directory...
12,810
Posted By ennstate
I guess you want to capture the terminal...
I guess you want to capture the terminal session,you can make use of script command.

In your shell prompt,
script capture-this-session.txt
man script for more info.

Thanks
Nagarajan G
4,404
Posted By ennstate
I guess that globbing is disabled in your...
I guess that globbing is disabled in your script,do you find anything of this sort
set -f or set noglob in your script?

Thanks
Nagarajan G
2,346
Posted By ennstate
The values set by executing the PCP file is...
The values set by executing the PCP file is available only for that shell,as your shell script will spawn a new shell to execute the values exported in the PCP file are not available to the Shell...
2,346
Posted By ennstate
Hi You may trying sourcing the PCP file from...
Hi

You may trying sourcing the PCP file from within this script,so that you can access the definitions of the same.

For ksh,
. ~/yourPCPFile
For Csh
source ~/yourPCPFile


Thanks...
Showing results 1 to 25 of 227

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