in reply to Re^3: processing PSQL with system command
in thread processing PSQL with system command

Thank you Kindly!!!

The following worked
my $PSQL = q{psql -p 5555 mcdb -c \"update ev_cus_prof set act +ive='f' where epid='INIT_EV_HIGH_PRIORITY';\"}; system(qq{su - admin -c "$PSQL"});