Hello,

>
>$aux = `ls /opt`;

This is not good since Perl has built-in function for read a dir.
see:
perldoc -f opendir
perldoc -f readdir



>  su postgres -c "/usr/local/pgsql/bin/pg_ctl start -D
>@bancos[$i]";

'su' is not Perl's function.This is a unix shell command,you need to call it 
with system() function.try:

system "su postgres -c "/usr/local/pgsql/bin/pg_ctl start -D $bancos[$i]";


Also remind:

Please always add the 'use strict' and/or 'use warnings' at the begin of your 
scripts.

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


Reply via email to