Unix CLI root@ave:/home/admin/scripts/#: PSQL="psql -p 5555 mcdb -c \"update ev +_cus_prof set active='f' where epid='INIT_EV_HIGH_PRIORITY';\"" root@ave:/home/admin/scripts/#: su - admin -c "$PSQL" UPDATE 1 root@save:/home/admin/scripts/#: Perl script snippit ==================== Print_Success("\nDisabling ConnectEMC & Email Home\n"); my $PSQL="psql -p 5555 mcdb -c \"update ev_cus_prof set active=\'f\' w +here epid=\'INIT_EV_HIGH_PRIORITY\';\""; print "PSQL: $PSQL \n"; system("su - admin -c \"$PSQL\""); Perl Output ====================================================================== +============================= Disabling ConnectEMC & Email Home PSQL: psql -p 5555 mcdb -c "update ev_cus_prof set active='f' where ep +id='INIT_EV_HIGH_PRIORITY';" ERROR: syntax error at end of input LINE 1: update ^ sh: : command not found
In reply to processing PSQL with system command by g_speran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |