Hello, I'm changing the script postgresq-init.sh for postgresql-init.pl. I made all perl scripts for store the database names. But my doubt is the case.
In bash i have: #case $1 in # start) # $ECHO_N "Starting PostgreSQL: "$ECHO_C # su - $PGUSER -c "$DAEMON -D '$PGDATA' &" >>$PGLOG 2>&1 # echo "ok" # ;; In perl, How I to build it ? I saw : SWITCH: { if (/^abc/) { $abc = 1; last SWITCH; } if (/^def/) { $def = 1; last SWITCH; } if (/^xyz/) { $xyz = 1; last SWITCH; } $nothing = 1; } I don't imagine with use the switch for start the postgres. Do I have system command ? Best regards. Faria __________________________________________________ Fale com seus amigos de graça com o novo Yahoo! Messenger http://br.messenger.yahoo.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/