Search Results

Search: Posts Made By: ennstate
6,076
Posted By ennstate
Thanks, I have locate command, I ll check the man
Thanks, I have locate command, I ll check the man
6,076
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,930
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,930
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,...
9,608
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
9,608
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,727
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,840
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
2,123
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,740
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,816
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
56,086
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...
56,086
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,671
Posted By ennstate
:) Thanks for your information Nagarajan G
:) Thanks for your information

Nagarajan G
28,265
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
28,265
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,671
Posted By ennstate
Using ypcat
Did you try,
ypcat passwd | grep -i <user>

Thanks
Nagarajan G
3,271
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,446
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,824
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))
...
75,569
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,988
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,571
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,713
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,713
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 04:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy