Search Results

Search: Posts Made By: srijith
1,236
Posted By srijith
Cron job problem
I have a perl script which Im planning to run every minute.
I have set the cron job as

* * * * * PATH= /usr/local/bin:/usr/bin:/usr/sbin:/usr/lib; perl /dm2/www/html/isos/pre5.3/autoDownload.pl ...
7,456
Posted By srijith
I have given full control permission in my...
I have given full control permission in my windows 7. Is there any other thing I have to do. ?
7,456
Posted By srijith
Im getting the message Unable to open...
Im getting the message
Unable to open verInfo.txt
7,456
Posted By srijith
Unable to open a file in perl
Not able to open a file using this code

why not?


use strict;
use warnings;
my $file = "verInfo.txt";
unless(open FILE, $file) {
# Die with error message
# if we can't open it.
...
2,390
Posted By srijith
Hi thnank you so much.. I used != and it seem to...
Hi thnank you so much.. I used != and it seem to be working fine. another problem was $oldversion and $oldVersion in IF loop.
2,390
Posted By srijith
Yes I get it, but whether to use != or ne ....
Yes I get it, but whether to use != or ne . Becuase $version is in the form of string and $oldversion is integer.
So eventhough both are equal the IF condition is getting TRUE and the file is...
2,390
Posted By srijith
Ok, But where is it overwritting ? it can only be...
Ok, But where is it overwritting ? it can only be in


if($version =! $oldVersion )

so here its getting changed. But why ?

Also the IF statement is comparing with the new overwritten...
2,390
Posted By srijith
Ok, I see some wired behaviour, ...
Ok, I see some wired behaviour,

#!/usr/bin/perl

use LWP::Simple;
my $oldversion =36;

$pageURL="http://www.google.com/isos/preFCS5.3/LATESTGOODCVP/";
my $simplePage=get($pageURL); ...
2,390
Posted By srijith
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<title>Index of /isos/preFCS5.3/LATESTGOODCVP</title>
</head>
<body>
<h1>Index of /isos/preFCS5.3/LATESTGOODCVP</h1>...
2,390
Posted By srijith
Hi I tried your code this way ...
Hi I tried your code this way


#!/usr/bin/perl

use LWP::Simple;
my $oldversion =36;

$pageURL="http://www.google.com/isos/preFCS5.3/LATESTGOODCVP/";
my $simplePage=get($pageURL); ...
2,390
Posted By srijith
Hi Ranga, I did not understand some of your...
Hi Ranga,
I did not understand some of your lines

1) my $simplePage ="CTP-LATEST-5.3.0.37.iso";

why are you hard coding this ?

I need to get this srting from webpage, get only "37" part...
2,390
Posted By srijith
searching a sub-string in a string
Im trying to download a file from a website.

But i want to download only if the file version is latest than the same file I have.

The file name is CTP-LATEST-5.3.0.37.iso

I need to...
1,550
Posted By srijith
File downloading help in perl
Im trying to write a perl code to do the following task.

I have a website which is located in a diffirent country.
I want to download a file from that site everyday.
The file name keeps on...
914
Posted By srijith
This might work fine with Linux... But not in...
This might work fine with Linux... But not in windows... Because windows doesn't know about "cp"

---------- Post updated at 06:01 PM ---------- Previous update was at 05:56 PM ----------

Its...
914
Posted By srijith
#!/usr/bin/perl use File::Copy; ...
#!/usr/bin/perl
use File::Copy;

$filetobecopied = "myhtml.html.";
while(n<500)
{
$random_generated_name = Generate a random string here

$newfile = $random_generated_name".html."; ...
914
Posted By srijith
Advanced perl help in windows
Hi guys,
Im trying to write a perl code to do the following task.

prerequisites:-
1) some media files(say boys.mp3 or gaga.mpeg or snoop.flv) is located in C:\videos\
2) The perl code is also...
3,935
Posted By srijith
Print the current directory using perl
Hi I have this code to print the current directory using Perl


use Cwd qw(abs_path);
my $path = abs_path($0);
print "$path\n";


But it is displaying my perl source code file along with the...
2,733
Posted By srijith
Print file information using ffmpeg in perl
I am trying to print file information using ffmpeg tool in perl

Here is my code

use strict;
use warnings;

use IPC::Open3;

# example
my $filename = $ARGV[0];
my %videoInfo =...
2,481
Posted By srijith
perl script to print file information - newbie
Hi
I have a perl script that prints all the video and audio file information(playing duration).

It works fine in one of my friends linux laptop.

But it doesn't work in my both windows and...
1,475
Posted By srijith
Ok, Thanks for the help. I appreciate it. Now...
Ok, Thanks for the help. I appreciate it.
Now I have generated 4 types of names similarly like the above example.
I am able to insert 1st generated data into the database. But how will I insert...
1,475
Posted By srijith
Beginner Perl help Please
Hi I am trying to generate random names using perl script.

First let me post my code


#!/usr/bin/perl
my $name;
my @charset = (('A'..'Z'), ('a'..'z'));
my $range = $#charset + 1; ...
Forum: Programming 12-29-2010
2,480
Posted By srijith
shell scripting problems involving operations with remote machine
Hi,
i have been developing a shell script to transfer a set of files from one ubuntu system to another.

Task: while executing the script the files ( ls, dir, cat) in the source machine should...
Showing results 1 to 22 of 22

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