User Profile

Collapse

Profile Sidebar

Collapse
senthilkumars
senthilkumars
Last Activity: Feb 25 '08, 05:24 AM
Joined: Feb 11 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I got OP by removing " " in above statement. since there is no space in my
    file path no need of putting " "....
    See more | Go to post

    Leave a comment:


  • senthilkumars
    replied to Acessing HTML files
    SSI, or Server Side Includes, were first developed to allow Web developers to "include" HTML documents inside other pages. If your Web server supports SSI, it's easy to create templates for your Web site.

    1. Save the HTML for the common elements of your site as separate files. For example, your navigation section might be saved as navigation.html or navigation.ssi.
    2. Use the following SSI tag to include that...
    See more | Go to post

    Leave a comment:


  • hi boss now i am getting the output correctly.
    i forgot to remove " " in new.pl. after removed it i
    got the output.
    thnx for ur help....
    See more | Go to post

    Leave a comment:


  • again i am getting the same problem....
    See more | Go to post

    Leave a comment:


  • i can't get it clearly.
    As u said paths.txt i wrote like
    /root/sss/shadow /root/.htpasswd
    /root/sss/shadow /root/.htpasswd1
    /root/sss/shadow /root/.htpasswd2

    then new.pl
    [CODE=perl]#!usr/bin/perl
    while(<>)
    {
    `perl script.pl "$_" ` ;
    }[/CODE]

    but i get error like
    cannot open: No such file or directory in script.pl at line 2....
    See more | Go to post
    Last edited by eWish; Feb 15 '08, 02:43 PM. Reason: Please use [CODE][/CODE] tags

    Leave a comment:


  • i need to give all the inputs in one file and read from that file.
    u said to pass all arguments simultaneously, but i want to write those argument
    in a file read from that....
    See more | Go to post

    Leave a comment:


  • senthilkumars
    started a topic how to read inputs from file for perl script?
    in Perl

    how to read inputs from file for perl script?

    i am running my perl script as
    "perl script.pl /root/sample/shadow .htpasswd"
    now i need to pass these inputs in separate file
    and read from that file.

    for eg
    content of file may be
    /root/sample/shadow .htpasswd
    /root/sample/shadow .htpasswd1
    /root/sample/shadow .htpasswd2
    /root/sample/shadow .htpasswd3

    and my script is for comparing two files listed...
    See more | Go to post

  • senthilkumars
    replied to Perl Script
    in Perl
    thanks. i got exactly which i need. thanks boss, here the output comes in
    single line it self.i need a break in it to print it in next line.
    Thanks for ur help.........
    See more | Go to post

    Leave a comment:


  • senthilkumars
    replied to Perl Script
    in Perl
    thanx i got it.but i need to change like this. here i need to update like this
    for example original file content like this

    karthick:$1$$R TqB41oJHFmaKtHK TQzFh1:12922::9 9999::::

    and the second file content like

    karthick:$1$HV DD6786KGDjbscsc c.a0

    here while comparing these two file content i need to update only upto
    2nd colon starts. ie name followed by ':' and then followed...
    See more | Go to post

    Leave a comment:


  • senthilkumars
    replied to Perl Script
    in Perl
    hi i am new to perl. i need to compare to files and make an update if any changes happen in second file, i need to update it in first file. more probably two files are in same format. i use these following code to remove line which are not in etcshadow and present in another file. but i need to update if any word changes in etcshadow and to the new file.
    [code=perl]
    #!usr/bin/perl

    open (etcshadow, $ARGV[0]) || die "cannot...
    See more | Go to post
    Last edited by numberwhun; Feb 11 '08, 01:43 PM. Reason: add code tags

    Leave a comment:


  • senthilkumars
    started a topic Perl Script
    in Perl

    Perl Script

    how to compare two file and update the second file with comparing to first file?
    plz help
    See more | Go to post
No activity results to display
Show More
Working...