system("su - admin -c \"$PSQL\"");
You have multiply nested double quotes. Don't even try to do that.
system("su - admin -c '$PSQL'");
I am trying to execute a psql command via the system command within perl
Why? There's DBD::Pg so you don't have to do horrible stuff like that.
🦛
In reply to Re: processing PSQL with system command
by hippo
in thread processing PSQL with system command
by g_speran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |