Hi,
This 3-4 line code does my job for now.
But its not a very generic thing. Say, I get a requirement that, I have to remove top 3 and bottom 2 lines of a file. Or, depending on the contents of file, the lines I need to chop is going to change etc etc
Just out of interest I want to explore if...
Hi 1DMF,
You are right. $cur_lino ++ does nothing.
When I wrote the script for the first time, there was some other logic, which I removed. That line is just there because I have not deleted it, please ignore it.
Thanks
Hi All,
My requirement is, I want to remove first and last line of a text file.
I did it like,
###################################################
open READ_FILE ; # This is file I am reading
open WRITE_FILE ; # This is file I am writting
$cur_lino = 0 ;
$prev_lino = 0 ;
$prev_line = "" ...
Hi All,
I have an issue with my broadband connection.
I am in UK and is using broadband internet from my cable operator NTL. The cable comes out of the cable box, goes into the cable modem and that is connected to my Win98 PC on USB port.
This all worked fine till recently, but 2 days back my...
Hi All,
Thanks for your reply.
Actually, I was not able to find syntax of string comparison in the <xsl:if . Everywhere I see on the internet, all the examples were showing numeric comparisons.
But, now its sorted out.
I can easily do it without using variables.
I can simply do it by...
Hi all,
I have a XML like ,
<info>
<type>A</type>
<value1>ZZZZZZZ</value1>
<value2>YYYYYYY</value2>
</info>
<info>
<type>B</type>
<value1>ZZZZZZZ</value1>
<value2>YYYYYYY</value2>
</info>
With XSLT I would like to code logic like,
if value of <type> is 'A'
then...
Hi Guys,
Thanks for all these thaughts.
My problem is, I have to run a java code from inside a perl script.
This java code connects to Oracle using JDBC and do not have a way to use the OPS$ account which Oracle provides. I have to give the oracle username/password on the command line, if I...
Hi,
A security related question on Solaris.
Suppose I am running some command on command line e.g.
java -v -user xyz -file filename.ext
Now, while this command is running, some other user logs on to the same machine and he gives command like "ps -aef" or "ps -fu some_username", he can see...
Hi,
We have a typical setup.
A production server where we run our batch processes.
There are a set of read only users, which can login to the server for monitoring purpose and support.
Now, the user which runs processes, runs a process e.g.
$ some_executable_program -param1 -param2 -param3...
Hi All,
I have a question about the system command.
If I run some OS command from Perl script like ,
system("java -user ABCD -pass XYZ -deb") ;
The command I am running will execute, thats fine. But while the command is running, if some other user on the Unix box gives command like "ps...
Hi PHV,
Thanks for the reply.
Initially I thaught of this option, but actually, I have nearly 10 possible words to replace and the words are made up of 10 to 20 charactors each.
Basically, I have no option other than what you have suggested. But, previously on AIX and other Unix flavours I...
Hi,
I am on Sun Solaris and struggling with a very simple sed command.
I want to search and replace, ignoring the case.
Lets say, I have a file,
Abcd
abCd
abcD
And I issue a command,
sed -e 's/abcd/CORRECT/i' my_file
This should give output like,
CORRECT
CORRECT
CORRECT
But, my above sed...
Hi,
Thanks a lot.
That was very usefull, I am now thinking of going for Jetty.
My application will be a fault/problem logging system (broadly) for my office, which will have at the most 5 to 10 concurrent users, sitting on Oracle 10 database.
So, if I have one software which is web server and...
Hi,
I am working on a Access 2000 project developed by somebody else. There are some forms which I am trying to study.
What I have to find is on which table/query the form(s) is based? I am going to the form's design mode and click the "Field List" button on the tool bar. I can see the list of...
Hi sedj,
I have no claim what-so-ever that, I am clever then you.
You are completely and absolutely correct,
http://www.apache.org/foundation/licence-FAQ.html#IsItFee
My whole point was, I want to make sure 101% before I start doing any work using Tomcat.
Thanks for your help.
Hi,
To be honest, I have a doubt.
I was not able to find the licensing details on Tomcat's web site.
Also, I heard from one of my friend that, its free for development and not for production. But he has also not seen the actual terms from Tomcat.
Please guide.
Regards
Hi all,
I work for a small business. We are around 5 to 10 people in the office.
I want to build a small application which we all can access in office, over network. Can I use Tomcat for this purpose?
Technically, Yes, I know its a http server along with application server, so I can use it to...
Hi,
I am new to Access and stuck with a problem.
My concept of Access database is, there is one MDB file which hold everything i.e. tables, data, forms, reports, queries etc.
I am changing an existing MDB file. I have taken a copy of the original one and added one report to it. But in the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.