Should be a couple of ways to do it. I haven’t personally tried them, though.
@arnb knows more than I do.