Running commands on Linix/Unix systems?


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

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

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

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

Thanks much!!
After some complications with the ssh keygen, I finally set it up and works like a charm :slight_smile:

you always learn something new in these forums.

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?

.........

Angus, is the SSH feature implemented now?

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.

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.

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.

I have a similar situation with omanske.

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 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.