how to redirect command in export display in shell script
Steve Cowles
steve at stevecowles.com
Fri Sep 3 14:01:47 UTC 2004
Vipul Ramani wrote:
> HI , ALL,
> i want to write 1 scripts which basically export local display
> in local only after that run xterm & n run few command on that
> expoert display i tired but i wont run.so any one plz let me know..
> #!/bin/sh
> DISPALY=127.0.0.1
> export DISPLAY
> xterm &
> date
>
> while i run this script date command print in same terminal instead of
> exported xterm i want to run date command in new exported xterm
> window.
> thanks in adv.
>
Vipul,
Please see: man xterm
The answer to your question lies there. hint: the -e command line option.
Steve Cowles
More information about the redhat-list
mailing list