java for scripts

B

balajee

I am new bee to Java. Basically I am TCL pogrammer, write scripts to
automate interactive applications such as telnet,ftpetc. Can we use
Java
also for the same purpose? as scripting language for above
applications?
 
M

markspace

balajee said:
I am new bee to Java. Basically I am TCL pogrammer, write scripts to
automate interactive applications such as telnet,ftpetc. Can we use
Java
also for the same purpose? as scripting language for above
applications?


You can, somewhat, but Java is not a scripting language and doesn't
really work like TCL, Python, Perl, etc. Basically Java is a lot like C
or C++, not so much like TCL.

I'd encourage you to try Java. Make a small test that is similar to one
application that you have now, and see for yourself if Java really
brings any extra benefit.
 
A

Arne Vajhøj

I am new bee to Java. Basically I am TCL pogrammer, write scripts to
automate interactive applications such as telnet,ftpetc. Can we use
Java
also for the same purpose? as scripting language for above
applications?

The Java language is not really that well suited for the scripting
tasks you mention.

The Java platform support several scripting languages that
may be better for you.

Groovy, Python and JavaScript are some of the more popular.

Arne

PS: Note that Python for Java platform is called Jython.
 
D

Daniel Pitts

markspace said:
You can, somewhat, but Java is not a scripting language and doesn't
really work like TCL, Python, Perl, etc. Basically Java is a lot like C
or C++, not so much like TCL.

I'd encourage you to try Java. Make a small test that is similar to one
application that you have now, and see for yourself if Java really
brings any extra benefit.
I agree whole heartedly with markspace.

I just want to add that Java excels at long-running server processes,
and is decent at think-client GUIs. There is a relatively high constant
time overhead for starting up a JVM, which makes it less idea for
scripting situations, but it doesn't prevent it entirely.

Java really is a language designed for bigger programs, not few-liner ones.
 
B

balajee

This thread has taken wrong direction. I posted in C++ forum also just
to look for right input. As I mentioned in other forum, we are just
evaluating the available options other than TCL and PERL. We choose
the better one among all the options. I have no idea about C++ and
Java. So, I posted in these forums. Any suggessions are welcome.

Thanks,
Balajee
 
A

Arved Sandstrom

balajee said:
This thread has taken wrong direction. I posted in C++ forum also just
to look for right input. As I mentioned in other forum, we are just
evaluating the available options other than TCL and PERL. We choose
the better one among all the options. I have no idea about C++ and
Java. So, I posted in these forums. Any suggessions are welcome.

Thanks,
Balajee
Don't leave out the shells, like the UNIX shells (sh, bash, ksh etc) and
Windows PowerShell. And on Mac OS X, in addition to having the UNIX
shells, you've got AppleScript. If you are targeting a specific
environment, which is often the case, these are very powerful options.

AHS
 
A

Arne Vajhøj

This thread has taken wrong direction. I posted in C++ forum also just
to look for right input. As I mentioned in other forum, we are just
evaluating the available options other than TCL and PERL. We choose
the better one among all the options. I have no idea about C++ and
Java. So, I posted in these forums. Any suggessions are welcome.

Neither Java nor C++ is designed for these purposes. They can be
used, but I believe there are better languages.

I think you should look at Python. And Python can work very nicely with
Hava using Jython if you have a requirement for that.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,197
Latest member
Sean29G025

Latest Threads

Top