Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-01-2010, 06:33 AM   #1
LQ Newbie
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
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:
#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.

Old 03-01-2010, 06:59 AM   #2
Registered: Feb 2004
Location: Olympia, WA
Distribution: SolydK
Posts: 442
Blog Entries: 3

Rep: Reputation: 60
Maybe... Python?
Old 03-01-2010, 07:09 AM   #3
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to ssh from a shell script ? For ppl who can write shell scripts. thefountainhead100 Programming 14 10-22-2008 07:24 AM
Basic programming language for Linux scripts nykey Programming 17 07-28-2006 09:33 AM
Convert shell scripts to other language vladmihaisima Programming 6 07-28-2005 03:25 AM
Change shell language linmix Linux - Software 9 07-26-2004 01:45 PM
What is the best language for Linux/Apache Scripts? 360 Programming 3 09-16-2001 10:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration