Hi Barry, I already tried adding print commands, but even if I put the print command right under "myscript <- function()", there is no printed output in the shell... sophie -- View this message in context: http://r.789695.n4.nabble.com/export-variable-from-bash-to-R-tp4647749p4647897.html Sent from the R help mailing list archive at Nabble.com.