In my script, I am trying to use find cmd (Solaris 8 OS)   to change
the permission and ownership of a file. I don't know how to get it
working as I get 'find incomplete statement'.

To make things simpler, here is a small modified snippet of my code..

#!/bin/perl
use warnings;

my $tagname="XYZ";
my $user="orauser";
my $seq=01;

system( "echo  find  /${tagname}_$seq/oradata/$tagname -user 29334 -
exec chown $user {} \\\; ");

output:
find /XYZ_01/oradata/XYZ -user 29334 -exec chown orauser {}  ;

What I really wanted is:

find /XYZ_01/oradata/XYZ -user 29334 -exec chown orauser {}  \;

(please notice '\'  just before semi-colon).


I used 'echo' statement just to show you what is the problem. In
reality, I wanted to use find cmd to change the permission say,

system( " find  /${tagname}_$seq/oradata/$tagname -user 29334 -exec
chown $user {} \\\; ");



Please let me know why the escape character does n't work for me? Any
help to resolve the problem is much appreciated.

Thanks
pad





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to