LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-01-2010, 05:33 AM   #1
martin729
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:
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
 
Old 03-01-2010, 05:59 AM   #2
penguiniator
Member
 
Registered: Feb 2004
Location: Olympia, WA
Distribution: SolydK
Posts: 442
Blog Entries: 3

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

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


Reply



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 06:24 AM
Basic programming language for Linux scripts nykey Programming 17 07-28-2006 08:33 AM
Convert shell scripts to other language vladmihaisima Programming 6 07-28-2005 02:25 AM
Change shell language linmix Linux - Software 9 07-26-2004 12:45 PM
What is the best language for Linux/Apache Scripts? 360 Programming 3 09-16-2001 09:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:44 PM.

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