system("xterm -e bash --rcfile /path/to/my/file.pl") && die "XTERM FAIL: $!\n"; #### system("xterm -e bash --rcfile /path/to/my/file.pl &") && die "XTERM FAIL: $!\n"; #### system("xterm -e bash --rcfile /path/to/my/file.pl -i -c \"$acommandstringtoexec && exec bash\" &") && die "XTERM FAIL: $!\n";