Search Results

Search: Posts Made By: ranton
Forum: Programming 09-16-2008
15,509
Posted By ranton
RE: __throw
__THROW is a macro which is setup by the headers to evaluate to blank in C and throw() in C++. That throw() does is specify the list of types of exceptions that the function may throw. With nothing...
Forum: Cybersecurity 08-22-2008
2,826
Posted By ranton
If you use ! you probably need to quote it,...
If you use ! you probably need to quote it, because it has special meaning in bash, and on my box you seem to have to quote it as '-p!' icmp instead of -p '!icmp'

Also the other problem is if the...
Forum: Programming 08-22-2008
2,508
Posted By ranton
Class variable scope does not work the same as...
Class variable scope does not work the same as local scope.

The variable resolves within the scope of the class. That means that all member variables of the class are declared effectively before...
17,516
Posted By ranton
FOP is best I have tried but not quite ideal
Yes, that's what I have been using to do it is Apache FOP after doing XSLT transforms from DocBook using some code to call the Xalan-C library.

It works pretty well, the problems usually come in...
5,953
Posted By ranton
declare not found
Sorry, first line needs to be #!/bin/bash instead. of #!/bin/sh

/bin/sh is a link on my linux system to /bin/bash so I failed to notice I had put bash specific syntax in there.

Just pipe the...
5,953
Posted By ranton
Re: Shell Script Required? Pls. help me
Try this, I am sure there are shorter ways to do this, but this one works fine and is easy to follow


#!/bin/sh

declare -i lineno
declare -i hadmatch=0
while read line; do
#echo $line
...
Showing results 1 to 6 of 6

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