I
ittay.dror
Hi,
I have the following script:
#!/usr/bin/perl -w
while($line = <>){
if($line =~ /^ENDMDL/){
print $line;
exit(0);
}
print $line;
}
simple right?
and it works with 'cat <somefile> | <script>' (meaning, it prints the
lines from 'somefile')
now i do 'chmod a+s <script>'
now when i run as in the above, perl complains 'setuid script changed',
and the script doesn't run. meaning, nothing is printed to the screen.
please help,
thanx,
ittay
I have the following script:
#!/usr/bin/perl -w
while($line = <>){
if($line =~ /^ENDMDL/){
print $line;
exit(0);
}
print $line;
}
simple right?
and it works with 'cat <somefile> | <script>' (meaning, it prints the
lines from 'somefile')
now i do 'chmod a+s <script>'
now when i run as in the above, perl complains 'setuid script changed',
and the script doesn't run. meaning, nothing is printed to the screen.
please help,
thanx,
ittay