# Running commands on Linix/Unix systems?

**URL:** https://www.finalbuilder.com/forums/t/running-commands-on-linix-unix-systems/185
**Category:** Discussion
**Created:** [September 2, 2006, 12:02pm UTC](https://www.finalbuilder.com/forums/t/running-commands-on-linix-unix-systems/185 "2006-09-02T12:02:04Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [September 2, 2006, 12:02pm UTC](https://www.finalbuilder.com/forums/t/running-commands-on-linix-unix-systems/185/1 "2006-09-02T12:02:04Z")

</div>

I’m looking at FinalBuilder to see if it will work for helping to automate builds at my company. One of the first steps that we do is run a script on a Linux system, and afterwards a number of steps need to happen on a Windows box. Is there a way to have FinalBuilder remotely execute commands on a \*nix system?  
  
 Thanks,  
  
 Keith Hearn  
 Build/Release Engineer  
 Devicescape Software

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [September 4, 2006, 1:18am UTC](https://www.finalbuilder.com/forums/t/running-commands-on-linix-unix-systems/185/2 "2006-09-04T01:18:02Z")

</div>

Hi Keith,  
  
We have a Telnet action which can be used to log into a remote Unix machine and execute commands. This should be able to do what you need.  
  
If you need a secure connection, it may be possible to automate a command line ssh client. We are planning to add SSH support in the future.  
  
Regards,  
  
  
Angus

---

<div class="post-metadata">

### Author: ![nirsilgi](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/a6a055/32.png) [@nirsilgi](https://www.finalbuilder.com/forums/u/nirsilgi)
#### Post date: [September 5, 2006, 4:22am UTC](https://www.finalbuilder.com/forums/t/running-commands-on-linix-unix-systems/185/3 "2006-09-05T04:22:36Z")

</div>

Hi.  
  
I am in the same situation where we have both Unix and Windows environments that I have to run actions on. Currently I didn't implement the Unix part yet (I'm waiting for the SSH connection anxiously :)), but I was able to run PUTTY with command line from FinalBuilder on Linux machines... the problem is that I have no feedback whether the actions succeeded or not.  
  
Angus: when u have the SSH action ready for beta, I'd be happy to give it a run.  
  
Cheers

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [September 12, 2006, 12:34pm UTC](https://www.finalbuilder.com/forums/t/running-commands-on-linix-unix-systems/185/4 "2006-09-12T12:34:56Z")

</div>

Thanks for the suggestions. I got it working by using Cygwin’sssh from a “Run DOS Command” action. It even gives me correct exitcodes, so I can tell if the command succeeded or failed.  
  
Here is one of the commands that I use:  
c:\cygwin\bin\ssh rc@gobble 'cd/home/rc/p4/depot/components/wireless/wpa\_supplicant/foo\_wimax; make -fMakefile.linux clean libwpa\_supplicant.a main\_api\_test\_wifi’  
  
You need to have Cygwin installed, and use ssh-keygen to set up yourSSH keys so you don’t get prompted for passwords. But once you havethat set up, it works pretty well.  
  
 Keith

---

<div class="post-metadata">

### Author: ![nirsilgi](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/a6a055/32.png) [@nirsilgi](https://www.finalbuilder.com/forums/u/nirsilgi)
#### Post date: [September 12, 2006, 3:44am UTC](https://www.finalbuilder.com/forums/t/running-commands-on-linix-unix-systems/185/5 "2006-09-12T03:44:27Z")

</div>

Thanks much!!   
After some complications with the ssh keygen, I finally set it up and works like a charm 🙂  
  
you always learn something new in these forums.

---

<div class="post-metadata">

### Author: ![rtaylor](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/91b2a8/32.png) [@rtaylor](https://www.finalbuilder.com/forums/u/rtaylor)
#### Post date: [January 23, 2009, 12:20pm UTC](https://www.finalbuilder.com/forums/t/running-commands-on-linix-unix-systems/185/6 "2009-01-23T12:20:27Z")

</div>

Hi,

I have a similar problem, I need to execute linux scripts to generate some RPM and use them in windows build. So when using the command, I think i need to write some command to execute the script in the ssh;

ssh root@xxx.xxx.xxx.xxx "password" "cd /script-directory/script.sh"

is this correct? can somebody comment on this?

.........

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 5, 2009, 9:49am UTC](https://www.finalbuilder.com/forums/t/running-commands-on-linix-unix-systems/185/7 "2009-03-05T09:49:06Z")

</div>

Angus, is the SSH feature implemented now?

---

<div class="post-metadata">

### Author: ![omanske](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/omanske/32/84_2.png) [@omanske](https://www.finalbuilder.com/forums/u/omanske)
#### Post date: [March 19, 2009, 10:41am UTC](https://www.finalbuilder.com/forums/t/running-commands-on-linix-unix-systems/185/8 "2009-03-19T10:41:29Z")

</div>

I would appreciate an update on this also. I need to access a loadbalancer (coyotepoint) via commandline / SSH and was told that putty would work. I might try Cygwin also.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [March 21, 2009, 1:07am UTC](https://www.finalbuilder.com/forums/t/running-commands-on-linix-unix-systems/185/9 "2009-03-21T01:07:29Z")

</div>

We don’t have a solution for this yet. It’s still on the todo list, unfortunately I cannot say when we will get to it.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 12, 2010, 9:42am UTC](https://www.finalbuilder.com/forums/t/running-commands-on-linix-unix-systems/185/10 "2010-03-12T09:42:54Z")

</div>

I’d like to add my voice to the requests for native SSH support. I’m getting it running using cygwin’s ssh.exe, like Keith, but built-in support would have been much easier and more maintainable.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [May 17, 2010, 8:02am UTC](https://www.finalbuilder.com/forums/t/running-commands-on-linix-unix-systems/185/11 "2010-05-17T08:02:21Z")

</div>

I&nbsp;have a similar situation with [omanske](https://www.finalbuilder.com/forums.aspx?afv=profile&uid=4540).  
  
My situation for now is that we need to send inputs to a Kemp LoadBalancer which uses SSH. Cygwin is unable to connect to it since it opens a kindof "popup" of which we have no control. Please also note that Cygwin is working fine with our current solutions.  
  
For this particular problem, I&nbsp;don't think native ssh would help since the popup would still wait our input idefinetly as FBServer cannot interface with it. But don't get me wrong, native ssh would be a +++ to FB.  
  
This is were my knowledge ends. I would like to know of any way this could be resolved.  
  
Thank you.
