LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Porting shell scripts into a other language (https://www.linuxquestions.org/questions/linux-newbie-8/porting-shell-scripts-into-a-other-language-792308/)

martin729 03-01-2010 05:33 AM

Porting shell scripts into a other language
 
Hey all,
I have written some shells scripts. They basically create ssh tunnels between a my box and numerous nodes on a cluster. Which then allows me send Linux commands and receive output from far away nodes on my cluster.
E.g. Script:
Code:

#linux_command="uname -a"

#Create tunnel
ssh -A -q -o -L $PORT:$HOST2:22 Username@$HOST1 -N

#Send commands
ssh -A -q -p$PORT Username@localhost "$linux_command"


This is just a snippet.
But i wanted to rewrite this functionality in a new language,
hopefully one that will allow me to expand the usage of these tools and give them a bit more intelligence. But also one that won't take away easy access to system commands.

Thanks
Martin

penguiniator 03-01-2010 05:59 AM

Maybe... Python?

i92guboj 03-01-2010 06:09 AM

Python or perl would be good candidates for such a task.

At the end of the day it all comes down to what language(s) do you know/like better? Unless you want to learn something new, that's it.


All times are GMT -5. The time now is 01:16 AM.