output_file.md
This is executing a command to the container to list at the root (/) and then redirect stdout and stderr to "out.txt"
$ singularity exec salad_latest.sif ls / 2>&1| tee out.txt
bin
code
dev
environment
etc
home
lib
media
mnt
proc
root
run
sbin
singularity
srv
sys
tmp
usr
var
And confirm that's what is put there:
vanessa@vanessa-ThinkPad-T460s:/tmp$ cat out.txt
bin
code
dev
environment
etc
home
lib
media
mnt
proc
root
run
sbin
singularity
srv
sys
tmp
usr
var