Thursday, December 12, 2013

Send Interactive Commands to a Cloud Foundry App with websocketd

on my way home from work tonight i saw the tweet below about connecting STDIN and STDOUT from remote processes with websocket. i tried it out quickly locally and it worked streaming count.sh output of numbers from 1 to 10 sent to STDOUT 1 second apart over websocket using localhost. can i apply this to cloud foundry easily?  it turns out the answer is yes!
you can easily include the small linux 64bit websocketd binary and this bash.sh script with your app and remotely send commands over websocket that will execute in the app container and stream the STDOUT from the command back over websocket to the browser. this is helpful for sending commands like rake db:migrate or to explore the linux container file system after the buildpack has run. see the screenshot and video below. for the impatient, skip to about 3:00 of the short demo.

more instructions are on github. also see the websocketd project.




11 comments:

akhil sharma said...

thanks for share this great post
valentine wishes
valentine message for husband
valentine message for wife

Rahul Singh said...

nice
happy valentine day
valentine day wishes for boyfriend
valentine day poems for girlfriend
valentines day message for wife
valentine day message for girlfriend

Bobby Chahal said...

You can check your Tnpsc Group 4 hall ticket

Bobby Chahal said...

RSMSSB Lab Assistant Admit Card

Haxie 100 said...

HAPPY NEW YEAR 2017 Wish
HAPPY NEW YEAR 2017 HD Images
HAPPY NEW YEAR 2017 SMS

Ranjit Ram said...

Want to know about Veterans Day,which is a day to celebrate the great officers of the US army,just checkout my blog Happy Veterans Day and stay updated.

sana khna said...

If U Like Me Then Click On the Photo Nd Call On ym no
Be Fast I em Waiting For U
Then I will Chnage My Mobile No
http://www.girl4dosti.com/

Peter said...


Valentine Week 2017

Unknown said...

Thanks for sharing. share good information Tutuapp

ston sen said...


Very Interesting and wonderful information keep sharing this post kindly check
windows 10 iot core web service

Unknown said...

just information we only provide information for those who need it cara menggugurkan kandungan
A. obat telat datang bulan
B. posisi berhubungan agar cepat hamil
C. makanan dan minuman agar cepat hamil
D. panduan agar cepat hamil
E. cara agar cepat hamil
F. cara agar cepat hamil setelah selesai haid
G. cara alami untuk segera mendapat kehamilan