Thanks for the replies...

Two things though:
1. I'm just trying to learn how to run an OS command and use the output in a variable & or &&. I thought it was possible to do this in a select from dual; is this incorrect?

2. In the case of getting the host_name, we do not have select grants on v$session or v$instance, so these solutions don't work.

TIA!