I got OP by removing " " in above statement. since there is no space in my
file path no need of putting " "....
User Profile
Collapse
-
-
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...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....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....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....Leave a comment:
-
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... -
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.........Leave a comment:
-
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...Leave a comment:
-
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...Leave a comment:
-
Perl Script
how to compare two file and update the second file with comparing to first file?
plz help
No activity results to display
Show More
Leave a comment: