I'm looking for a command that does this basically:
indisplay.sh cmd display
Code:
#!/bin/bash
DISPLAYTMP=$DISPLAY
export DISPLAY=$2
(eval $1)&
export DISPLAY=$DISPLAYTMP
Yes, I realize I just wrote myself a shell script that does what I'm asking for, but this seems so basic there must be a default command for it.