system has an intern parameter that can be used to save output to a character vector:
test <- system("pa11y scuolafalconeborsellino.it; perl -e \"print unpack('c', pack('C', $?)), \\$/\"", intern = TRUE)
Please note that now system2 preferable and system should be avoided in the new code.
source share