Search Results

Search: Posts Made By: hploh
2,149
Posted By hploh
yes, i just thinking of this..Anyway, thank for...
yes, i just thinking of this..Anyway, thank for your advise too. Going to try on it.Thanks!

---------- Post updated at 02:42 PM ---------- Previous update was at 02:25 PM ----------

Full path...
2,149
Posted By hploh
Thanks! sorry, was busy for other stuff. ...
Thanks! sorry, was busy for other stuff.

Here my final script.
#!/usr/bin/perl
use warnings;
use strict;
use diagnostics;
use Data::Dumper;
use LWP::UserAgent;
...
2,149
Posted By hploh
it work. filereindex content = 1 So, it...
it work.

filereindex content = 1
So, it print Number 1, after the print, I would like to write 0 to the filereindex and exit.

I know the simple writing to a file, but no idea how to put in...
2,149
Posted By hploh
I have the below when run the one you gave. ...
I have the below when run the one you gave.

#!/usr/bin/perl

open(FH,"<filereindex.txt");
my @file = <FH>;
close FH;
my $line;
foreach $line (@file){
if($line ~= m/1/){
print "NUMBER...
2,149
Posted By hploh
#!/usr/bin/perl open (FH,...
#!/usr/bin/perl

open (FH, '>filereindex.txt') or die 'Could not open file';
my @line = <FH>;
if ($line == 1) {
print "NUMBER 1";
} elsif ( $line == 0) {
print FH 1;

}

I m...
2,149
Posted By hploh
Perl SCript to read file content (if else statemenet)
Hi All,
I wanted to write a perl script to read the content in a file,the file content is either 0 (zero) OR 1. The idea is like this.


If (content =1), then it will proceed to perform some...
Forum: Web Development 03-31-2014
1,568
Posted By hploh
Apache redirection
Hi,

I have a setting below in my httpd.conf


RewriteEngine on
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^yapp-dev.abc.com$[OR]
RewriteCond %{HTTP_HOST} ^zapp-dev.abc.com$...
Showing results 1 to 7 of 7

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