# Triggering remote UNIX shell script from Remote desktop

**URL:** <https://community.unix.com/t/triggering-remote-unix-shell-script-from-remote-desktop/321069>\
**Category:** Shell Programming and Scripting\
**Created:** [December 10, 2012, 5:50am UTC](https://community.unix.com/t/triggering-remote-unix-shell-script-from-remote-desktop/321069 "2012-12-10T05:50:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![navsan](https://community.unix.com/user_avatar/community.unix.com/navsan/32/2773_2.png) [@navsan](https://community.unix.com/u/navsan)\
**Post date:** [December 10, 2012, 5:50am UTC](https://community.unix.com/t/triggering-remote-unix-shell-script-from-remote-desktop/321069/1 "2012-12-10T05:50:29Z")

</div>

I m trying to run a batch script in remote desktop which executes unix commands on the unix server...the problem is i wnt the output in HTML format.so in my batch script i m giving the cmd like

```nohighlight
ssh hostname path ksh HC_Report.ksh>out.html

```

...but it generates the HTML file in  
remote desktop .i wnt the same cmd(ksh HC\_Report.ksh\>out.html) to be executed on unix server..s der any possibilities????

---

<div class="post-metadata">

**Author:** ![rdcwayx](https://community.unix.com/letter_avatar/rdcwayx/32/6_22734026db12803ebb3e059622ac3534.png) [@rdcwayx](https://community.unix.com/u/rdcwayx)\
**Post date:** [December 10, 2012, 6:03am UTC](https://community.unix.com/t/triggering-remote-unix-shell-script-from-remote-desktop/321069/2 "2012-12-10T06:03:42Z")

</div>

```nohighlight
ssh hostname "path ksh HC_Report.ksh>out.html"

```

---

<div class="post-metadata">

**Author:** ![navsan](https://community.unix.com/user_avatar/community.unix.com/navsan/32/2773_2.png) [@navsan](https://community.unix.com/u/navsan)\
**Post date:** [December 10, 2012, 6:27am UTC](https://community.unix.com/t/triggering-remote-unix-shell-script-from-remote-desktop/321069/3 "2012-12-10T06:27:53Z")

</div>

thnx a ton buddy.🙂 it worked 😃
