Search Results

Search: Posts Made By: rajamadhavan
484
Posted By rajamadhavan
Pls check the cron logs sent to the mail of the...
Pls check the cron logs sent to the mail of the user running the cron.

I think you cron is not able to find the path of gdate and as a result '$d' will be a null string and the subsequent mget...
2,051
Posted By rajamadhavan
How are you doing POST and GET inside the perl...
How are you doing POST and GET inside the perl script ?

You can use LWP as it supports extensive http client operations.

LWP - search.cpan.org...
1,396
Posted By rajamadhavan
Your data has several characters without any...
Your data has several characters without any escape that perl interprets differently. Please use this way



$Data = <<EOF;
<html>
<head>
</head>
<body>
<table border=1 cellspacing=0...
1,396
Posted By rajamadhavan
Your $data string should have a semicolon. ...
Your $data string should have a semicolon.


$data = '<html>
<body>
<table>
<tr>
<td> Name: </td>
<td> </td>
</tr>
<tr>
<td> Age: </td>
<td> </td>
</tr>
<tr>
<td> Location:...
976
Posted By rajamadhavan
you may want to try prstat as well
you may want to try prstat as well
688
Posted By rajamadhavan
the standard way is to use h2xs to create an...
the standard way is to use h2xs to create an installable package.
1,328
Posted By rajamadhavan
Using Perl Tie::File #!/usr/bin/perl -w ...
Using Perl Tie::File


#!/usr/bin/perl -w

use strict;
use Tie::File;
my $i;
my @array;
my $file = "./test.xml";
tie @array, 'Tie::File', $file or die;

for($i=0;$i<$#array;$i++) {
...
2,537
Posted By rajamadhavan
The safest way to edit sudoers file without...
The safest way to edit sudoers file without changing its permissions is using visudo

This thread will give you some hint

linux - How do I edit /etc/sudoers from a script? - Stack Overflow...
843
Posted By rajamadhavan
You can check the source of the page, send the...
You can check the source of the page, send the submit input corresponding to the button with the wget request using --post-data option.
2,537
Posted By rajamadhavan
Looks to be a permission issue with your...
Looks to be a permission issue with your credentials on the remote machine. Are you sure the userid thats used with ssh login is part of sudoers on the remote machine ?

Also pls check permissions...
543
Posted By rajamadhavan
perl -lne 'print $1 if /(\d+\.\d+\.\d+\.\d+)/'...
perl -lne 'print $1 if /(\d+\.\d+\.\d+\.\d+)/' /var/log/maillog
2,348
Posted By rajamadhavan
the fact that it works outside the perl script...
the fact that it works outside the perl script with apache user, I believe it should work inside the script as well. May be try pushing the STDERR to the file that you are writing and check if the...
2,348
Posted By rajamadhavan
system() gives the actual exit code left shifted...
system() gives the actual exit code left shifted by 8. So 32512 means the actual exit code is 255. You may need to refer csso man page to refer what this means.
2,348
Posted By rajamadhavan
I dont think you need backticks. Just try with ...
I dont think you need backticks. Just try with


$cmd = qq(/path/to/csso stylesheet.css > stylesheet.min.css)


---------- Post updated at 06:06 AM ---------- Previous update was at 06:01 AM...
2,348
Posted By rajamadhavan
Did it work when you run it outside the perl...
Did it work when you run it outside the perl script on the shell ?
786
Posted By rajamadhavan
Post how you want to run the script..do you want...
Post how you want to run the script..do you want something like this ?


bash# ./replace.sh "pwd" "master" "Master_directory"
1,446
Posted By rajamadhavan
Cant make out whats going wrong. It works on my...
Cant make out whats going wrong. It works on my system. Please double check the contents of file1.

-Raja
1,446
Posted By rajamadhavan
cat file2 | xargs -L1 -I{} sed -e 's/XXXX/{}/g'...
cat file2 | xargs -L1 -I{} sed -e 's/XXXX/{}/g' file1
Monday home
Tuesday home
home Wednesday
Thursday home
Monday school
Tuesday school
school Wednesday
Thursday school
Monday cinema...
1,094
Posted By rajamadhavan
No, start server/run tests/stop server should...
No, start server/run tests/stop server should work within the same ant script.

refer this link and see if you are missing anything while defining targets

Automating Selenium testing with...
1,094
Posted By rajamadhavan
Can you close the tag and try ? <target...
Can you close the tag and try ?


<target name="run">
<java jar="${RELEASE_ROOT}/lib/selenium-server-standalone-2.26.0.jar" fork="true">
</java>
</target>
1,055
Posted By rajamadhavan
@Ajay, What issue do you see when you do ...
@Ajay,
What issue do you see when you do


#!/usr/bin/perl -w

use warnings;
use strict;
use Time::Local;
use File::Copy;

my @dirs = ();
open (my $fh, '<', 'test.txt') || die "Could not...
1,137
Posted By rajamadhavan
Two options, if the index is same (8th 9th and...
Two options, if the index is same (8th 9th and 10th) and the required values are in the 2nd line


awk -F, 'NR==2{gsub(/\"/,x);print $8,$9,$10}' file.csv


More generic one would be similar to...
1,137
Posted By rajamadhavan
@leghorn, You have not made it...
@leghorn, You have not made it "2013-08-07","02:01:50" bold. What is the logic on which you need to extract the date and time fields?
2,517
Posted By rajamadhavan
The best option for such requirement is Tie::File...
The best option for such requirement is Tie::File

In anyway, you need to seek to the beginning of the file before reading it again.


#! /usr/bin/perl -w

open FH, "+< testfile" or die "$@";...
1,055
Posted By rajamadhavan
You may need to cut down the trailing newline. ...
You may need to cut down the trailing newline.


#!/usr/bin/perl

use strict;
use warnings;
my @test;
open (my $fh, '<', 'test.txt') || die "Could not open test.txt: $!\n";
while(<$fh>)
{...
Showing results 1 to 25 of 275

 

Featured Tech Videos

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